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.