PHP Fatal error: Cannot redeclare class Mobile_Detect

  • Published in FAQs
  • Updated 27 Oct, 2015

Responsive Scroll Triggered Box is using Mobile Detect, a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

The Problem

In order to avoid conflicts and PHP errors, It loads the Mobile Detect Class ONLY if it's not already loaded by another component/plugin/template. However, there are many Joomla extensions out there which don't make this check as a result the following PHP fatal error.

Fatal error: Cannot redeclare class Mobile_Detect in /home/../Mobile_Detect.php on line X

The Solution

Go to Joomla Plugins Manager and find the Responsive Scroll Triggered Box - Render plugin. Then try to re-order it at the end.

If the problem persists please contact the extension's support team and ask them to fix the error.

Get Engage Box for Joomla! for just 29€ Get it now!
Don't miss a thing!
Stay up-to-dated with my latest blog articles
Receive updates for my Joomla Extensions
No Spam! It's a promise.