WebsiteBaker Community Forum

WebsiteBaker Support (2.13.x) => General Help & Support => Topic started by: laurens on January 10, 2023, 12:14:52 PM

Title: after automatc update 2.13.3
Post by: laurens on January 10, 2023, 12:14:52 PM
There was an uncatched exception
database::escapeString(): Argument #1 ($unescaped_string) must be of type string, null given, called in /public_html/modules/wbstats/class.count.php on line 211
in line (257) of (/framework/class.database.php):
Title: Re: after automatc update 2.13.3
Post by: dbs on January 10, 2023, 01:01:13 PM
If you have a problem with a module go to the module/author page and search for a newer version.
I'm sure your wbstats is old.
Title: Re: after automatc update 2.13.3
Post by: hgs on January 10, 2023, 01:53:26 PM
Which php version is installed on the server?
WebsiteBaker 2.13.3 runs only from php 8.0 to php 8.1

Here is the link to the current version of wbstats (https://dev4me.com/modules/minidownload/download.php?u=0AD7C616)
Title: Re: after automatc update 2.13.3
Post by: sternchen8875 on January 10, 2023, 02:20:51 PM
Quote
escapeString(): Argument #1 ($unescaped_string) must be of type string, null given,

this function is waiting for a string in argument #1, but it get's nothing, the value is empty

The latest version of wbstats has the solution for this and defines an (empty) value as a string, so the function can also work with an empty value, for example if the user wants to hide his personal data like browser type etc

the problem has nothing to do with the WB version, but the latest version is required when working with PHP 8.1
Title: Re: after automatc update 2.13.3
Post by: laurens on January 10, 2023, 05:32:18 PM
Old WPstats was the reason, thanks hgs and dbs  (php 8.1 was and is running)