WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: gba on December 17, 2022, 08:29:37 PM

Title: visitor statistics?
Post by: gba 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):
Title: Re: visitor statistics?
Post by: dbs 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.
Title: Re: visitor statistics?
Post by: gba on December 17, 2022, 11:22:15 PM
Thanks, it helped  :-)
Title: Re: visitor statistics?
Post by: Cazz 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 :)
Title: Re: visitor statistics?
Post by: hgs on December 18, 2022, 02:48:25 PM
What WB version
What php version
What wbstats version
and
which line did you insert where?
Title: Re: visitor statistics?
Post by: Cazz 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
Title: Re: visitor statistics?
Post by: paulchen on December 18, 2022, 08:00:31 PM
And you are quite sure that you have adjusted the template for the frontend?

Title: Re: visitor statistics?
Post by: hgs 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
Title: Re: visitor statistics?
Post by: Cazz 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
Title: Re: visitor statistics?
Post by: Cazz 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
Title: Re: visitor statistics?
Post by: sternchen8875 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.
Title: Re: visitor statistics?
Post by: Cazz on December 19, 2022, 05:46:20 PM
ahh yes I have add that code to index.php