• Resolved sorensenss

    (@sorensenss)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    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;}

    Thread Starter sorensenss

    (@sorensenss)

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

    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");

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Mobile theme switcher] Permissions’ is closed to new replies.