WordPress.org

Forums

WP Mobile Detect
Fatal error: (5 posts)

  1. pako69
    Member
    Posted 1 year ago #

    Fatal error: Cannot redeclare class Mobile_Detect in /home/sites/www.mydomain.com/web/wp-content/plugins/wp-mobile-detect/mobile-detect.php on line 35

    :-(

    https://wordpress.org/plugins/wp-mobile-detect/

  2. Updula
    Member
    Posted 1 year ago #

    Me too!

  3. Uwingu
    Member
    Posted 1 year ago #

    Same here. Would love to use it but cannot.

    I have the Blogolife Pro installed. on another WP instance it works for me

  4. pako69
    Member
    Posted 1 year ago #

  5. Nick Wingfield
    Member
    Posted 1 year ago #

    I've also had exactly the same fatal error message.

    In my case it happened after updating my Theme: OneTone 1.2.2 to 1.2.3

    Problem is that the new version of the theme has added a file called Mobile_Detect.php in a folder called includes. I've tried contacting the theme provider but they haven't responded yet.

    Any ideas what I can do other than stick with the earlier version of the theme? I've read the solution above but I'm still none the wiser. For one thing, the example is for Mobble - not WP Mobile Detect.

    Is there some code I could put in my theme to fix things? I'm open to all suggestions ...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Mobile Detect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.