Title: Another &#8217;empty needle&#8217; issue
Last modified: October 27, 2017

---

# Another ’empty needle’ issue

 *  [luxinterior](https://wordpress.org/support/users/luxinterior/)
 * (@luxinterior)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/another-empty-needle-issue/)
 * 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)

 *  [Saša](https://wordpress.org/support/users/stodorovic/)
 * (@stodorovic)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/another-empty-needle-issue/#post-9634543)
 * Hi [@luxinterior](https://wordpress.org/support/users/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 8 years, 7 months ago by [Saša](https://wordpress.org/support/users/stodorovic/).
 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/another-empty-needle-issue/#post-9636852)
 * Even though most people probably have .php in that setting I fixed it in [#437](https://github.com/Automattic/wp-super-cache/pull/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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/another-empty-needle-issue/#post-9636852)
 * Status: not resolved