Mobile_Detect class causes a fatal error
-
Hi guys
I’ve just helped someone out where another plugin loads the Mobile_Detect class. Your plugin doesn’t have a check in place to make sure the class isn’t loaded more than once, so a fatal error is thrown when activated.
You can workaround this by going to video-capture/includes/functions.php and scroll down to line 176. This can be changed from
require_once plugin_dir_path( VIDRACK_PLUGIN ) . 'includes/class.mobile-detect.php';
to
if( !class_exists( 'Mobile_Detect') ){ require_once plugin_dir_path( VIDRACK_PLUGIN ) . 'includes/class.mobile-detect.php'; }
Hope this helps a bit for other users ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Mobile_Detect class causes a fatal error’ is closed to new replies.