Title: PHP error : strpos(): Empty delimiter
Last modified: August 20, 2016

---

# PHP error : strpos(): Empty delimiter

 *  Resolved [Matt Biscay](https://wordpress.org/support/users/skyminds/)
 * (@skyminds)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-error-strpos-empty-delimiter/)
 * Hi there,
 * I get tons of PHP errors like this one :
 * `PHP Warning: strpos(): Empty delimiter in /wp-content/plugins/asynchronous-javascript/
   asynchronous-javascript.php on line 134`
 * The plugin works fine but it cripples the error logs. Hope it can get sorted.
 * Thanks,
 * [http://wordpress.org/extend/plugins/asynchronous-javascript/](http://wordpress.org/extend/plugins/asynchronous-javascript/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [Matt Biscay](https://wordpress.org/support/users/skyminds/)
 * (@skyminds)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-error-strpos-empty-delimiter/#post-3463403)
 * In case you want to fix it in a later version :
 * find line 134 :
    `if(strpos($depend['src'], $file) !== false){`
 * change it with :
    `if(!empty($file) && strpos($depend['src'], $file) !== false){`
 * Basically, it makes sure the delimiter ($file) is not empty.
 * Cheers,
 * Matt
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-error-strpos-empty-delimiter/#post-3463415)
 * Thanks for coming up with a patch, if you could issue a pull request with that
   fixed, I will be glad to pull it in, otherwise I will update when I get a chance.
 * [https://github.com/parisholley/wordpress-asynchronous-javascript/](https://github.com/parisholley/wordpress-asynchronous-javascript/)
 *  Plugin Author [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * (@parisholley)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-error-strpos-empty-delimiter/#post-3463484)
 * change added in 1.3.1

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP error : strpos(): Empty delimiter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/asynchronous-javascript_e3541a.svg)
 * [Asynchronous Javascript](https://wordpress.org/plugins/asynchronous-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asynchronous-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asynchronous-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/asynchronous-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asynchronous-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asynchronous-javascript/reviews/)

## Tags

 * [strpos](https://wordpress.org/support/topic-tag/strpos/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paris Holley](https://wordpress.org/support/users/parisholley/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/php-error-strpos-empty-delimiter/#post-3463484)
 * Status: resolved