• Resolved Newt Labs

    (@newtlabs)


    Hi, FYI your latest plugin update causes the following fatal error:

    Fatal error: Uncaught Error: Call to undefined function Automattic\Jetpack\wp_rand() in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php:161 Stack trace: #0 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(99): Automattic\Jetpack\A8c_Mc_Stats->build_stats_url() #1 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(124): Automattic\Jetpack\A8c_Mc_Stats->get_stats_urls() #2 /wp-content/plugins/woocommerce/includes/class-woocommerce.php(414): Automattic\Jetpack\A8c_Mc_Stats->do_server_side_stats() #3 [internal function]: WooCommerce->log_errors() #4 {main} thrown in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php on line 161

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author empproduct

    (@empproduct)

    Thread Starter Newt Labs

    (@newtlabs)

    Hi,

    It seems to be a conflict between your plugin and Yoast SEO Premium:

    I get the following error when activating the “WooCommerce emerchantpay Payment Gateway Client” plugin:

    Fatal error: Uncaught Error: Call to undefined function Automattic\Jetpack\wp_rand() in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php:161 Stack trace: #0 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(99): Automattic\Jetpack\A8c_Mc_Stats->build_stats_url() #1 /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php(124): Automattic\Jetpack\A8c_Mc_Stats->get_stats_urls() #2 /wp-content/plugins/woocommerce/includes/class-woocommerce.php(414): Automattic\Jetpack\A8c_Mc_Stats->do_server_side_stats() #3 [internal function]: WooCommerce->log_errors() #4 {main} thrown in /wp-content/plugins/woocommerce/vendor/automattic/jetpack-a8c-mc-stats/src/class-a8c-mc-stats.php on line 161

    When “Yoast SEO Premium” is deactivated the error doesn’t show. However If I deactivate “Yoast SEO Premium”, activate “WooCommerce emerchantpay Payment Gateway Client”, then try to reactivate “Yoast SEO Premium” I get the following:

    Plugin could not be activated because it triggered a fatal error. Fatal error: Uncaught Error: Call to undefined method Composer\Autoload\ClassLoader::setClassMapAuthoritative() in /wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php:43 Stack trace: #0 /wp-content/plugins/wordpress-seo-premium/vendor/autoload.php(7): ComposerAutoloaderInit42a00a4ee82636814e937c49e791ee2d::getLoader() #1 /wp-content/plugins/wordpress-seo-premium/wp-seo-premium.php(67): require(‘…’) #2 /wp-admin/includes/plugin.php(2387): include_once(‘…’) #3 /wp-admin/plugins.php(194): plugin_sandbox_scrape() #4 {main} thrown in /wp-content/plugins/wordpress-seo-premium/vendor/composer/autoload_real.php on line 43

    If there’s anything you can do including pointing me in the right direction please let me know, in the meantime I will contact Yoast.

    Thread Starter Newt Labs

    (@newtlabs)

    I have contacted Yoast to see if there’s anything they can do. In the meantime please can you confirm why the previous version of your plugin works fine but this version does not?

    Plugin Author empproduct

    (@empproduct)

    Hello @newtlabs

    we have changed a bit the autoloading in our plugin, based on the second error this could be an issue.

    Thank you for your report. We will check it.

    Try using the previous version until we publish a new one, please.

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