Author Topic: visitor statistics?  (Read 303 times)

Offline gba

  • Posts: 46
visitor statistics?
« on: December 17, 2022, 08:29:37 PM »
What happened to visitor statistics?

I use it on an other installation (WB2.12.1) and wanted to use it on a new installation, but I can't find it in the add-on section of WB.
My older version 0.1.11 doesn't work.

I get this error message:
There was an uncatched exception
Argument 1 passed to database::escapeString() must be of the type string, null given, called in /www/htdocs/w013bc51/dasyware/modules/wbstats/class.count.php on line 176
in line (257) of (/framework/class.database.php):

Offline dbs

  • Betatester
  • **
  • Posts: 8777
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: visitor statistics?
« Reply #1 on: December 17, 2022, 10:26:05 PM »
You can find it on the authors site.
https://dev4me.com/modules-snippets/opensource/wbstats/
Hope it helps.

Offline gba

  • Posts: 46
Re: visitor statistics?
« Reply #2 on: December 17, 2022, 11:22:15 PM »
Thanks, it helped  :-)

Offline Cazz

  • Posts: 93
Re: visitor statistics?
« Reply #3 on: December 18, 2022, 12:06:13 PM »
Hi
I was a little curious about this visitor statistics and did install it and add the line in my index.php file (Line 2 after <?php)
But I did get this error

same error that gba have.

Any idea what it can be. was just curious :)

Offline hgs

  • Betatester
  • **
  • Posts: 1687
    • EFG MG
Re: visitor statistics?
« Reply #4 on: December 18, 2022, 02:48:25 PM »
What WB version
What php version
What wbstats version
and
which line did you insert where?
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline Cazz

  • Posts: 93
Re: visitor statistics?
« Reply #5 on: December 18, 2022, 03:29:41 PM »
WB version: 2.13.2 r133
PHP version 8.1.2
webstats version: 0.2.5.3

Line 2 in index.php, after
Code: [Select]
<?php

Offline paulchen

  • Posts: 185
  • Gender: Male
    • PV-Steuer-Shop
Re: visitor statistics?
« Reply #6 on: December 18, 2022, 08:00:31 PM »
And you are quite sure that you have adjusted the template for the frontend?


Offline hgs

  • Betatester
  • **
  • Posts: 1687
    • EFG MG
Re: visitor statistics?
« Reply #7 on: December 18, 2022, 08:15:53 PM »
WB version: 2.13.2 r133
PHP version 8.1.2
webstats version: 0.2.5.3

Line 2 in index.php, after
Code: [Select]
<?php


This works for me on all websites without any problems with these versions.

Then we need the access data to the backend as "SuperAdmin" via pm
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

Offline Cazz

  • Posts: 93
Re: visitor statistics?
« Reply #8 on: December 18, 2022, 08:24:28 PM »
And you are quite sure that you have adjusted the template for the frontend?

Hmm not sure what you mean about that. I did just add the line in index.php

Offline Cazz

  • Posts: 93
Re: visitor statistics?
« Reply #9 on: December 18, 2022, 09:31:10 PM »
WB version: 2.13.2 r133
PHP version 8.1.2
webstats version: 0.2.5.3

Line 2 in index.php, after
Code: [Select]
<?php

Going to upload a new WB site (I have to see if menu works) and give you access to it.

This works for me on all websites without any problems with these versions.

Then we need the access data to the backend as "SuperAdmin" via pm

Offline sternchen8875

  • Posts: 97
Re: visitor statistics?
« Reply #10 on: December 19, 2022, 12:21:34 AM »
And you are quite sure that you have adjusted the template for the frontend?

Hmm not sure what you mean about that. I did just add the line in index.php

right place for this code
Code: [Select]
include (WB_PATH.'/modules/wbstats/count.php');is in the index.php of the in this project used frontend-templates
(remember: in WB, it is possible, to use seperates frontend-templates for every single page and if you use more then one frontend-template, you've to add this code in all used frontend-templates.)

not the right place is (for example) the index.php in the root-folder of this installation.

Offline Cazz

  • Posts: 93
Re: visitor statistics?
« Reply #11 on: December 19, 2022, 05:46:20 PM »
ahh yes I have add that code to index.php

 

postern-length