Support » Fixing WordPress » FATAL ERROR:

  • Fatal error: Cannot redeclare class Mobile_Detect in /home/karysabr/public_html/wp-content/plugins/wp-mobile-edition/admin/includes/Mobile_Detect.php on line 29

    This pops up when anyone tires to view my site. I also cannot access my site at all to try and fix the error. I contacted my host but no answer yet as they said everything should be find. From what you can read on the error, i tried to upload a plugin and it went strait to this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have this plugin installed WP Mobile Edition . Login to your backend and rename the /wp-content/plugins/wp-mobile-edition to /wp-content/plugins/wp-mobile-editionbak or something. this will disable the plugin for a while. you should be able to access the backend

    Looks like a simple tweak in line 103 of the um-init.php file, from:

    require_once um_path . 'core/lib/mobiledetect/Mobile_Detect.php';
    

    to

    if (!class_exists('Mobile_Detect')) {
          require_once um_path . 'core/lib/mobiledetect/Mobile_Detect.php';
        }
    Moderator Steve Stern (sterndata)

    (@sterndata)

    Forum Moderator & Support Team Rep

    Using FTP, access your host and delete the directory wp-content/plugins/wp-mobile-edition

    That will restore your site.

    Then go to https://wordpress.org/support/plugin/wp-mobile-edition to report the issue you ran into.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘FATAL ERROR:’ is closed to new replies.