PHP Fatal error: Cannot declare class after plugin activation
-
After installing and activating the plugin in a Local by WP Engine instance I got a fatal error.
PHP 8.1.23
WP 6.5.3
imoje 4.6.0[27-May-2024 14:28:56 UTC] PHP Fatal error: Cannot declare class ComposerAutoloaderInit20238b54c7f11e178375fb4176f96fe0, because the name is already in use in /app/public/wp-content/plugins/imoje/includes/libs/Payment-core/vendor/composer/autoload_real.php on line 5
debug.log2024-05-27T14:30:14+00:00 CRITICAL Cannot declare class ComposerAutoloaderInit20238b54c7f11e178375fb4176f96fe0, because the name is already in use CONTEXT: {“error”:{“type”:64,”file”:”\/app\/public\/wp-content\/plugins\/imoje\/includes\/libs\/Payment-core\/vendor\/composer\/autoload_real.php”,”line”:5},”backtrace”:[{“file”:”\/app\/public\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php”,”line”:348,”function”:”critical”,”class”:”WC_Logger”,”type”:”->”},{“function”:”log_errors”,”class”:”WooCommerce”,”type”:”->”}]}
woocommerce log
The topic ‘PHP Fatal error: Cannot declare class after plugin activation’ is closed to new replies.