WordPress.org

Forums

MnCombine
[resolved] Warning: strstr(): Empty delimiter in class-plugin-mncombine.php on line 663 (2 posts)

  1. RubensBen
    Member
    Posted 1 year ago #

    Hi, First of all thank you for this great plugin, exactly what wordpress needs :)

    So I bumped in this error, it appears x3 on every js file I want to combine:

    Warning: strstr(): Empty delimiter in /var/www/vhosts/site/wp-content/plugins/mncombine/class-plugin-mncombine.php on line 663

    No problem with jss compress, css combine and compress.

    I tried all the options (development/production) etc.. but doesnt change.
    I also cleared the cache but same.

    Im on a vps with nginx / apache / apc php

    Any clues?

    Bless

    https://wordpress.org/plugins/mncombine/

  2. mneil
    Member
    Plugin Author

    Posted 1 year ago #

    Odd, that would mean that one of the registered script src is empty in WP which shouldn't be the case. For now, you can suppress the message by opening the file it's referencing /var/www/vhosts/site/wp-content/plugins/mncombine/class-plugin-mncombine.php, go to line 663, and change it from:

    if( strstr( $js, $use ) )

    TO:

    if( @strstr( $js, $use ) )

    I have done the same in the source so when I push an update you won't have to worry. If I can find out why this is happening, or can think of a better way to handle this, then I will. But for now that will solve your issue and I'll make sure it doesn't show back up in future versions.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MnCombine
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic