• I’ve seen a few of these already posted but this is one that is all over my error logs. I’ve fixed it for myself but of course, it will get overwritten on updates and so needs to be addressed in the core.

    PHP Warning: stristr(): Empty needle in /home/xxxxxxx/public_html/wp-content/plugins/wp-super-cache/ossdl-cdn.php on line 38

    Lux

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @luxinterior,

    I didn’t notice it on my installations. I’m guessing that’s issue related to your setting – Exclude if substring. Default is .php which will be converted to array( '.php' ), but something like this: .php,,.php5 will be converted to array( 'php', '', '.php5' ). In this case it’s possible reproduce same PHP warning as you’ve seen in the log.

    Please check first extra commas inside Exclude if substring ( Settings -> WP Super Cache -> CDN).

    Sasa

    • This reply was modified 6 years, 5 months ago by Saša.

    Even though most people probably have .php in that setting I fixed it in #437.

    And replaced stristr with stripos which is faster so that’s a bonus.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Another ’empty needle’ issue’ is closed to new replies.