Author Topic: after automatc update 2.13.3  (Read 1924 times)

Offline laurens

  • Posts: 4
after automatc update 2.13.3
« 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):

Offline dbs

  • Betatester
  • **
  • Posts: 8829
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: after automatc update 2.13.3
« Reply #1 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.

Offline hgs

  • Betatester
  • **
  • Posts: 1799
    • EFG MG
Re: after automatc update 2.13.3
« Reply #2 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
LG Harald

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

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline sternchen8875

  • Posts: 316
Re: after automatc update 2.13.3
« Reply #3 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

Offline laurens

  • Posts: 4
Re: after automatc update 2.13.3
« Reply #4 on: January 10, 2023, 05:32:18 PM »
Old WPstats was the reason, thanks hgs and dbs  (php 8.1 was and is running)

 

postern-length