WordPress.org

Ready to get started?Download WordPress

Forums

Asynchronous Javascript
[resolved] PHP error : strpos(): Empty delimiter (4 posts)

  1. Matt
    Member
    Posted 1 year ago #

    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/

  2. Matt
    Member
    Posted 1 year ago #

    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

  3. Paris Holley
    Member
    Plugin Author

    Posted 1 year ago #

    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/

  4. Paris Holley
    Member
    Plugin Author

    Posted 1 year ago #

    change added in 1.3.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic