WordPress.org

Ready to get started?Download WordPress

Forums

Mobile theme switch
[resolved] Permissions (5 posts)

  1. sorensenss
    Member
    Posted 3 years ago #

    Receiving a 'You do not have sufficient permissions to access this page.' when trying to access the Mobile Theme Switcher Page in Dashboard - am logged in as the admin.

  2. It sounds like your account may have lost admin privileges for some reason.

    Access your database via phpMyAdmin (most hosting providers offer this in their control panel), go to the wp_users table and find the row for your user_login . Note the ID of this row. Now, go to the wp_usermeta table and find the wp_capabilities row for your user_id . Set the value of this row to a:1:{s:13:"administrator";b:1;}

  3. sorensenss
    Member
    Posted 3 years ago #

    Seems to already be set right - user id 1 (verified this was me) is already set to a:1:{s:13:"administrator";b:1;}.

  4. Taylor
    Member
    Posted 3 years ago #

    The problem is with the plugin. Open mobile-theme-switcher.php. Towards the bottom (should be line 109) find the line

    add_theme_page("Mobile theme switch", "Mobile theme switcher", 1, "Mobile theme switcher", "mts_show_admin");

    and change it to

    add_theme_page("Mobile theme switch", "Mobile theme switcher", 1, "mobile-theme-switcher", "mts_show_admin");

  5. marchenko.alexandr
    Member
    Posted 3 years ago #

    Yep, problem is in 4 param of add_theme_page that can not contain spaces, change it to anything and all will be ok

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic