Hi @knubew
Thanks for reporting! I’ve created a simple patch that should address this, could you let me know if this works for you:
https://github.com/pods-framework/pods/pull/7076
Cheers, Jory
Thread Starter
knubew
(@knubew)
Thank you very much for the patch. I will test it and then report to you.
Thread Starter
knubew
(@knubew)
The patch works. The error message no longer occurs. Thanks very much.
However, I encountered some other error messages in the error_log file involving pods. I’ll list them here now (with shortened paths):
PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-content/plugins/pods/includes/general.php on line 1408;
PHP message: PHP Deprecated: strlen(): Passing null to par
ameter #1 ($string) of type string is deprecated in .../wp-content/plugins/pods/includes/general.php on line 1577;
Got error '.../wp-content/plugins/pods/includes/general.php on line 1577; PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in …/wp-content/plugins/pods/includes/general.php on line 1585;
PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-content/plugins/pods/includes/general.php on line 1589;
PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-content/plugins/pods/includes/general.php on line 1592;
Thread Starter
knubew
(@knubew)
Hello,
I can well imagine that the use of “strlen” in the entire pods code could possibly be checked, because there are so many error messages under PHP 8.x – or what do you think?
I have fixes for many PHP 8 things in Pods 3.0 already but I’ll see if I can backport a few into Pods 2.9.14
Resolved in Pods 2.9.14 (to be released this week) and merged that into Pods 3.0 too for the next public beta.
Thread Starter
knubew
(@knubew)
Resolved in Pods 2.9.14 (to be released this week)
That’s great. Thank you very much.
Thread Starter
knubew
(@knubew)
F.y.i. I just found another one:
PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../wp-content/plugins/pods/classes/PodsField.php on line 907;
Fixing that one in Pods 2.9.15 out today along with a few others that follow that pattern too.
Pods 2.9.15 is now out with those fixes
Thread Starter
knubew
(@knubew)
I receive:
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/pods/classes/fields/pick.php on line 2959
I’m on Php 8.2.7, WordPress 6.3.1, Pods 3.0.1.
Thank you!
Riccardo
Sorry for writing in pieces, also Pods.php
at line 741.
Thank you!
Riccardo
Both those are fixed in Pods 3.0.2 which will go out this week as soon as I finish a couple of other important fixes for folks.