Support » Fixing WordPress » Why is my ‘export’ option missing?

  • My tools>export option has vanished – even when reverting to the default TwentySeventeen theme and no active plugins.

    Direct access to /wp-admin/export.php delivers ‘Sorry, you are not allowed to access this page.’ I’m wondering ‘why’, and what the fix is.

    And yes…

    I’m logged-in as admin.
    Also created another admin and tried that – no different.

    Seemed to happen while making various changes (but same issue with default theme suggests that’s not the cause), including switch to SSL (though can’t imagine why that’d be an issue).

Viewing 4 replies - 1 through 4 (of 4 total)
  • UPDATE…

    I’ve just seen that the ‘wp_users’ table is empty – despite various users viewable in wp-admin/users.php.

    Because ‘export’ vanished from WP when I was testing various support-desk plugins, I’m wondering if that’s the cause of this issue.

    Hmm, that does seem odd. Did you already deactivate all of those support-desk plugins?

    @jricketts4… thanks.Yes, they were trialed one-at-a-time and then deactivated.

    UPDATE… Although the export option is still absent, the possible cause isn’t as outlined above.

    I was mistaken/wrong about the ‘wp_users’ table being empty – it’s not. I’d inadvertently looked at the wrong database. (Duh!)

    • This reply was modified 3 years, 2 months ago by gulliver.
    • This reply was modified 3 years, 2 months ago by gulliver.

    Further update…

    I restored the missing option by adding this to functions:

    
    $admin_role = get_role( 'administrator' );
    $admin_role->add_cap( 'export', true );
    

    And now, even when that code is commented-out, ‘export’ is available.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why is my ‘export’ option missing?’ is closed to new replies.