- This topic has 5 replies, 2 voices, and was last updated 3 years, 5 months ago by .
Hi, I have problem with redeclaring class. I use metabox built-in theme plugin and after installing WPML pluging fatal error occurs. All files included using “include_once” inside “class_exist()” condition but error still occurs.
if( !class_exists('RWMB_Autoloader') ) include_once( 'inc/meta-box/meta-box.php' );
Fatal error: require(): Cannot redeclare class rwmb_autoloader in /usr/home/example.com/web/wp-content/plugins/brooks_core/inc/meta-box/inc/autoloader.php on line 179
- You must be logged in to reply to this topic.