Fatal error: Cannot redeclare class Mobile_Detect
-
Hi,
I’m using AVADA theme version 3.7.2.
When I tried to activate the plugin I received the error:
Fatal error: Cannot redeclare class Mobile_Detect
I got it activated by putting this code:
if ( !class_exists( 'Mobile_Detect' ) ) {
right beforeclass Mobile_Detect
in ultimate-member/core/lib/mobiledetect/Mobile_Detect.php and putting
}
at the very end of that file. Then I got it activated without a hitch.I’m sure either the theme (AVADA) or some other plugin is calling for Mobile_Detect also and that is the reason for this error.
Thought you’d like to know.
Pete
- The topic ‘Fatal error: Cannot redeclare class Mobile_Detect’ is closed to new replies.