Support » Plugin: WP STAGING - Backup Duplicator & Migration » Fatal error at activation

  • Resolved Jos Klever

    (@josklever)


    When I activate the plugin directly after installation, I get the following error:
    Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /.../wp-content/plugins/wp-staging/Framework/Analytics/AnalyticsSender.php:32 Stack trace: #0 /.../wp-content/plugins/wp-staging/Framework/AnalyticsServiceProvider.php(89): WPStaging\Framework\Analytics\AnalyticsSender->maybeSend() #1 /.../wp-content/plugins/wp-staging/Framework/DI/ServiceProvider.php(10): WPStaging\Framework\AnalyticsServiceProvider->addHooks() #2 /.../wp-content/plugins/wp-staging/vendor_wpstg/lucatume/di52/src/tad/DI52/Container.php(433): WPStaging\Framework\DI\ServiceProvider->register() #3 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(76): WPStaging\Vendor\tad_DI52_Container->register() #4 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(191): WPStaging\Core\WPStaging->bootstrap() #5 /.../wp-content/plugins/wp-staging/Core/WPStaging.php(187): WPStaging\Core\WPStaging::getInstance() #6 /.../wp-content/plugins/wp-staging/bootstrap.php(83): WPStaging\Core\WPStaging::getInstance() #7 /.../wp-content/plugins/wp-staging/freeBootstrap.php(53): require_once('...') #8 /.../wp-includes/class-wp-hook.php(303): {closure}() #9 /.../wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #10 /.../wp-includes/plugin.php(470): WP_Hook->do_action() #11 /.../wp-admin/plugins.php(193): do_action() #12 {main} thrown in /.../wp-content/plugins/wp-staging/Framework/Analytics/AnalyticsSender.php on line 32

    I’m using PHP 8.0 and WP 5.8.3. I haven’t tested it without other plugins, because I wanted to create a staging environment to test some things without plugins. Testing with the Health Check & Troubleshooting plugin isn’t possible, because you can only test plugins that are already active. So I hope that this error already gives an idea of the cause.

    Last week I had the same error on another website (different hosting, PHP 7.4, WP 5.8.3) but we used an alternative method to clone the website.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rene Hermenau

    (@renehermi)

    @josklever I d like to send you a new version in advance tomorrow morning. Could you contact us at support at wp-staging.com?

    Cheers
    Rene

    Thread Starter Jos Klever

    (@josklever)

    I’ve just sent you an email. Thanks!

    Plugin Author Rene Hermenau

    (@renehermi)

    Closing here as it has been solved via mail.

    Thread Starter Jos Klever

    (@josklever)

    For others who might get the same error…

    Cause: an older version of WP Staging was installed on the website before leaving soms incompatible settings in the database.

    Workaround: remove the option_name wpstg_settings from wp_options table in the database and the plugin can be activated without errors.

    Solution: this should be fixed in a coming update

    Thanks for the quick response and the good talk! 🙂

    Plugin Author Rene Hermenau

    (@renehermi)

    Thank you for sharing the solution @josklever

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.