• Resolved Randy King

    (@randyking)


    I have been using this plugin all over the place with absolutely no issues. Today I installed it on a site and got this error stream:

    Plugin could not be activated because it triggered a fatal error.
    
    Fatal error: Uncaught TypeError: unserialize(): Argument #1 ($data) must be of type string, array given in .../plugins/wp-mail-catcher/src/Models/Settings.php:28
    
    Stack trace: #0 .../plugins/wp-mail-catcher/src/Models/Settings.php(28): unserialize(Array)
    #1 .../plugins/wp-mail-catcher/src/Bootstrap.php(65): WpMailCatcher\Models\Settings::get('auto_delete')
    #2 .../plugins/wp-mail-catcher/src/Bootstrap.php(17): WpMailCatcher\Bootstrap->registerCronTasks()
    #3 .../plugins/wp-mail-catcher/WpMailCatcher.php(18): WpMailCatcher\Bootstrap->__construct()
    #4 .../public_html/wp-admin/includes/plugin.php(2314): include_once('/home2/frienfj2...')
    #5 .../public_html/wp-admin/plugins.php(192): plugin_sandbox_scrape('wp-mail-catcher...')
    #6 {main} thrown in .../public_html/wp-content/plugins/wp-mail-catcher/src/Models/Settings.php on line 28
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author JWardee

    (@wardee)

    Hi Randy, is there anything specific about this setup that would cause the issue to happen only on that site as opposed to the others?

    It looks like your settings value for mail catcher has some how been corrupted. If you’re comfortable to edit the database you can delete the entry “mailcatcher_settings” in the wp_options table and then re-install the plugin which should resolve the issue.

    Failing I can to write a code snippet for you to paste into your theme to delete the options value for you. But you’ll need to remove the snippet once it has run.

    Thread Starter Randy King

    (@randyking)

    OK, I can certainly do that with the database. Yeah, very bizarre seeing as how this has worked 100% everywhere else. I will confirm in this thread after I fire up the SQL engine. ??

    Plugin Author JWardee

    (@wardee)

    Hey Randy, I’m going to close this to keep the support forum organised. Feel free to report any other bugs on the GitHub tracker ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal Error on Install’ is closed to new replies.