Open oldrup opened 11 months ago
I'm facing the same deprecation warning, however I'm not getting colons and hashes.
I think I fixed it but am not PHP-savvy enough to make a Pull Request. Passing a Null value instead of string seems to have been deprecated in PHP 8.1 and should be fixed by type casting with (string)
in the offending line.
function pods_mb_strlen( $string ) {
if ( function_exists( 'mb_strlen' ) ) {
return mb_strlen( (string) $string );
}
I'm also getting the same error.
Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /www/wordpress/wp-content/plugins/pods/includes/data.php on line 1597
This is the field setting:
Server Info:
Server architecture Linux 6.1.85+ x86_64 Web server nginx/1.24.0 PHP version 8.2.16 (Supports 64bit values) PHP SAPI fpm-fcgi PHP max input variables 1000 PHP time limit 90 PHP memory limit 512M Max input time 60 Upload max filesize 100M PHP post max size 32M cURL version 8.5.0 OpenSSL/3.1.3 Is SUHOSIN installed? No Is the Imagick library available? Yes Are pretty permalinks supported? Yes Current time 2024-09-16T07:01:03+00:00 Current UTC time Monday, 16-Sep-24 07:01:03 UTC Current Server time 2024-09-16T12:31:00+05:30
Description
When creating a new post with a website field, this deprecation warning is being shown:
Also, when I in fact insert an URL, a rogue colon (highlighted in yellow) is inserted after the domain, and a hashtag is appended.
My website field options are per default:
Is that something you can reproduce
Version
3.0.6
Testing Instructions
No response
Screenshots / Screencast
No response
Possible Workaround
Site Health Information
Pods Package
No response