You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the message "Kirby\Cms\App::page(): Argument #1 ($id) must be of type ?string, int given, called in /.../site/plugins/simplestats/src/models/Stats.php on line 938" in backend.
I have some page IDs with numbers only (e.g. "360"), so PHP seems to treat $uid as int in this case. I was able to work around by making sure that $uid is string ($uid = strval($uid); before line 938). The diagram creation process now works as expected.
I'm running Kirby 4.1.0 on PHP 8.2.15, so I don't know if it's a case for the Kirby 4 incompatibility list or just a PHP issue.
Anyway, thanks for this great plugin!
The text was updated successfully, but these errors were encountered:
sciloqi
changed the title
Error in stats.php with page IDs consisting only of numbers
[K4] Error in stats.php with page IDs consisting only of numbers
Feb 7, 2024
I get the message "Kirby\Cms\App::page(): Argument
#1
($id) must be of type ?string, int given, called in /.../site/plugins/simplestats/src/models/Stats.php on line 938" in backend.I have some page IDs with numbers only (e.g. "360"), so PHP seems to treat $uid as int in this case. I was able to work around by making sure that $uid is string (
$uid = strval($uid);
before line 938). The diagram creation process now works as expected.I'm running Kirby 4.1.0 on PHP 8.2.15, so I don't know if it's a case for the Kirby 4 incompatibility list or just a PHP issue.
Anyway, thanks for this great plugin!
The text was updated successfully, but these errors were encountered: