strpos(): Non-string needles
-
Using WP 5.5.3 and this plugin 2.1.1, encountered this warning:
[type] => 8192 [message] => strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior [file] => /wp-content/plugins/vimeography/lib/init.php [line] => 55
While I couldn’t find the strpos() on line 55, looks like around line 34:
if ( strpos( $robotstxt, 'Disallow: ' . $blocked_asset_path === FALSE ) ) {
Possibly add parentheses around the test of blocked_asset_path == FALSE:
if ( strpos( $robotstxt, 'Disallow: ' . ($blocked_asset_path === FALSE ) ) ) {
PHP 7.3.22-1+ubuntu18.04.1+deb.sury.org+1)
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘strpos(): Non-string needles’ is closed to new replies.