Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Did you have a look at your PHP error logs?

    Thread Starter Augustin56

    (@augustin56)

    Hey, Jordy!

    Here’s what I’m getting:

    Catchable fatal error: Object of class WrappedClosure could not be converted to string in /home/pwdtest/public_html/charlie/wp-content/plugins/media-cleaner/wpmc_settings.php on line 62

    Does that help?

    Thanks!

    Steve

    Plugin Author Jordy Meow

    (@tigroumeow)

    I don’t know why this happens but as a quick fix, could you try to modify those lines:

    $allshortcodes = array_diff( $shortcode_tags, array(  ) );
        $my_shortcodes = array();
        foreach ( $allshortcodes as $sc )
          if ( $sc != '__return_false' ) {
            if ( is_string( $sc ) )
              array_push( $my_shortcodes, str_replace( '_shortcode', '', (string)$sc ) );
          }
        $my_shortcodes = implode( ', ', $my_shortcodes );

    into :

    try {
          $allshortcodes = array_diff( $shortcode_tags, array(  ) );
          $my_shortcodes = array();
          foreach ( $allshortcodes as $sc )
            if ( $sc != '__return_false' ) {
              if ( is_string( $sc ) )
                array_push( $my_shortcodes, str_replace( '_shortcode', '', (string)$sc ) );
            }
          $my_shortcodes = implode( ', ', $my_shortcodes );
        }
        catch (Exception $e) {
          $my_shortcodes = "";
        }

    in the wpmc_settings.php file? Modify those files and active the plugin. You can reinstall it first, it will crash but modify this. If it doesn’t help, just remove it again.

    Thread Starter Augustin56

    (@augustin56)

    Well, okay. I tried that, and got the same results. ??

    Thread Starter Augustin56

    (@augustin56)

    I’m running PHP version 5.6, if that matters…

    Plugin Author Jordy Meow

    (@tigroumeow)

    That happens because of another plugin or theme, but I am not sure which one at all. Mmm. How we could do this. Do you have another install with a different theme that could try the plugin with?

    Thread Starter Augustin56

    (@augustin56)

    Yeah. Let me just install a test site with no other plugins active, and see what happens…

    Thread Starter Augustin56

    (@augustin56)

    Okay. Good news! It worked fine on a new install with no other plugins active. So, I went back to one of the sites where it didn’t run, deactivated all the plugins, activated the Media Cleaner plugin, then began activating the plugins one by one till it crashed. Then, I deactivated that plugin, and continued. Two plugins were incompatible with this plugin: Intense Word Plugin and Shortcodes Ultimate plugins. I’m not sure why it didn’t like those two, but I can work around them. They weren’t critical.

    Plugin Author Jordy Meow

    (@tigroumeow)

    I have installed Shortcotes Ultimate, but it doesn’t break my website, running along with my plugin. Mmm, any way I could get Intense Word from the author you think? I would like to try it with my plugin. Whatever it is, I don’t like the idea my plugin to break because of something else, it’s better to avoid that issue or display a friendly error message. I am willing to do it but I need first to replicate the issue. If you want to help, please do, or maybe another day when you have time ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Media Cleaner Plugin Crashes sites’ is closed to new replies.