• Resolved bkjproductions

    (@bkjproductions)


    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)

    • This topic was modified 4 years ago by bkjproductions. Reason: update path and add PHP version
Viewing 1 replies (of 1 total)
  • Plugin Author videogallery

    (@videogallery)

    Thanks for the detailed report @bkjproductions ! I just updated the plugin to 2.1.2 which should correct this issue, but let me know how it goes on your end.

Viewing 1 replies (of 1 total)
  • The topic ‘strpos(): Non-string needles’ is closed to new replies.