• Resolved creativecomponent

    (@creativecomponent)


    I’ve never seen this happen, but for the past two days, when I log-into my wp-admin area, all of my options are gone. What I mean is — I look like a vanilla user. Ok, I lied . I do have some options: *sign-out*& *my account*.

    Every posting appears to be in-tact, and I can edit all of them. I am the only user on my site, with no other admins.

    I don’t want to play the “is someone up to foul play card”, but now that you know it’s in my hand, do you think I should play it?

    Thanks!

Viewing 14 replies - 16 through 29 (of 29 total)
  • I was always partial to Smurfette…

    Say, I just stumbled over this think here in another thread. Never heard of it and can’t find mention of it at the redalt site, but… if’n y’all are mighty brave (and backed up your db *cough*) might be worth a shot.

    http://redalt.com/downloads/wp2/restore-admin.zip

    There’s on file in that zip and if you open it up, the instructions are built in as comments at the top of it. It says it works for 1.6 which is what became 2.0 as I recall.

    Oher than that, I got nuttin’.

    Thread Starter creativecomponent

    (@creativecomponent)

    K. Thanks. I dropped Dreamhost a note. I imagine the problem lies somewhere in WP though.

    Well yeah. I’d agree. My previous post was a bit garbled — did you try that link?

    I got a good laugh out of you guys and the back and forth…. I’m wondering if DH had a problem on your server, and reloaded an older backup. Not a good idea….

    And that’s about all I can even think to offer. Except that once you get this sorted and you’re back in business, make a db dump and store it locally at least once a week, ‘kay?

    Thread Starter creativecomponent

    (@creativecomponent)

    I did backup db when moving to v2. I guess backing-up now might be fruitless, but I guess since everything is “functional” as far as posts, I’ll do a backup now, then I’ll try the restore tool.

    I know DH does incremental backups, so I’ll see what’s up in that department. Great advice on the weekly procedure.

    I’ll Holla. I cannot think of any good Smurf references; just the names Gargamel and Azrael come to mind, and it makes me long for the days of good cartoons… like… Scooby-Doo perhaps?. Yes! new I could bring us back on topic.

    Oh, I just miss the AD&D cartoon…. and a really really lovely b&w one from the mid-50s which I of course do not have any clue as to the name of now, and a truly truly wonderful comic strip from the early 70s about some people trapped in the world in a drop of amber….

    Hmm… I can’t recall any good AD&D cartoons. Perhaps I missed one!

    And hell, the 70s had the 90 minute “Bugs Bunny / Road Runner Show.” What more did we need for cartoons?!?

    *meep meep*

    Keep us posted Creative and I might just get around to grabbing that podcast…

    I didn’t say it was a GOOD one.

    Thread Starter creativecomponent

    (@creativecomponent)

    Ok… I unzipped the file linked above, and there were no instructions; there was one PHP file, whith the following {below}… It looks like this will restore admin, but if I already have admin… no clue, rooby-roo.

    get_var("SELECT ID from {$wpdb->users} WHERE user_login = '{$adminuser}';"); if(!$adminid) { die("
    Uh, oh... The username '{$adminuser}' does not exist in your database. Try again.
    "); } $admin = new WP_User($adminid); $admin->add_cap('edit_users'); $admin->add_cap('read'); wp_redirect("wp-admin/profile.php"); ?>

    Preview post would be cool here. Silly backticks.

    From that same file:

    RESTORE ADMINISTRATOR PERMISSIONS
    =================================

    So, you’ve messed with the Role Manager (or some database properties) and you’ve locked yourself out of WordPress… Well done!

    Follow these instructions to get yourself back into the system:

    1. Edit this file and change the value for $adminuser that appears just below these instructions. Set $adminuser equal to your admin’s username. Save it.

    2. Upload this file to your WordPress directory as “restore-admin.php”. It should be in the same directory as your wp-config.php file.

    3. Access this file from your web browser using the URL similar to http://example.com/restore-admin.php . You should be redirected to a login page or a profile page. Login as the specified user and verify on the login page that the additional capability “edit_users” is now set.

    4. The user you have specified should now have edit_users permissions, and should be able to change user permissions as necessary to restore any required access. Note that this DOES NOT restore edit_users permission to a ROLE, only to the user specified below. To restore edit_users permission to a Role, use the Role Manager plugin.

    5. Optionally delete this file. Although this file will only ever add edit_users capabilties to a single user as hardcoded in the file, it seems safer not to tempt fate by leaving it around for hackers to attempt to tamper with it.

    I dunno… But heck, what do you have to lose at this point 😉

    Thread Starter creativecomponent

    (@creativecomponent)

    Ran it, and all is the same. $#gerfuffle*&!

    Looks like I need to reinstall WP.

    Having never done this, I’m skeered. Might not be that difficult, as the update was easy-peasy.

    I think the db is all good still, but then who knows?

    At-least this is my site, and no-one paying me! Guess the backup lesson is learned here. *sniff*

    Thread Starter creativecomponent

    (@creativecomponent)

    Okeydonkey. I cleared-out, and reloaded WP completely. It was actually pretty easy, and forced me to clean-up a bunch of stuff.

    Consider this one closed. Thanks for the excellent assistance!

    WordPress ROCKS. You know this.

    Yay! (about time :-p ) Glad you got it all going again in spite of my helpful advice. 😉

    Shaambaala! Another case closed, watson….

Viewing 14 replies - 16 through 29 (of 29 total)

The topic ‘Admin options are missing’ is closed to new replies.