• Resolved Jarryd Long

    (@jarryd-long)


    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)
  • Plugin Author Ryan Parent

    (@vidrack)

    Hey Jarryd,

    Thanks a lot for sending this! I have forwarded it to our developers and we will include this in our next update. Really appreciate it!

    Stay tuned for our next update!

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile_Detect class causes a fatal error’ is closed to new replies.