• Resolved kickoff3pm

    (@kickoff3pm)


    Here’s the problem;

    I moved hosts and install WP using the host apps (fantasico or whatever)

    I didn’t realise that one of the plugins I use has hard code database tables and for a few days I’ve been trying to workout why the admin area is so slow. I realised that the prefix to the tables so the problem.

    I changed the refix and all worked fine except I made a mistake uploading the wrong file and when I accessed the site it ask for a new install. I thought this was normal after changing the table prefix so I wen ahead.

    Problem is now – “You do not have sufficient permissions to access this page.”

    Been searching for a solution, I need the old options table because I have 15,000 posts on the site. How do I create a new admin login which keeps the existing structure ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Look at your WordPress database using phpMyAdmin. Find the posts table that has those ~ 15,000 posts. If that table is named wp123_posts then your wp-config.php $table_prefix should be set to wp123_

    And of course you have database backups if you really screw-up, right? See WordPress Backups.

    Thread Starter kickoff3pm

    (@kickoff3pm)

    I’ve been using phpadmin and I can’t seem to resolve the problem.

    The problem is the plugin that created the posts expects wp_ prefix.

    I didn’t know that and used another more secure prefix.

    I changed the prefix to wp_ tp get the plugin working but couldn’t then login to the admin (as I say above). Now I can get in the admin but onlu as the new admin user. Under that user I dn’t have the posts or options stucture.

    So if you are going to continue to use that plugin and it requires the $table_prefix to be wp_ then change your wp-config.php to the ‘secure prefix’ login and use Tools->Export to export your posts.

    Then change your $table_prefix to wp_ then login and do Tools->Import with the file created above.

    Thread Starter kickoff3pm

    (@kickoff3pm)

    That might have worked at the beginning but I’ve moved on from that. To get the site back up I simply changed the prefix in both wp_config and the tables themselves. But when I accessed the site it came up with install.

    Now what I need is a way of creating an admin account.

    Thats as I see because the change forced a re-install and now the only way I can access the dashboard is with this new user and all the options gone.

    I tried simply renaming the old table wp_users, wp_option etc to bring back the old data thinking the old admin account would still work but all I get is the permissions statement.

    I have a fully working front end now but no way to access the admin area.

    If you can help with that that would be great, but eitherway thinks for your time so far.

    Thread Starter kickoff3pm

    (@kickoff3pm)

    I have that already in the database.

    Is the a help file which tell me exactly how users are setup, everything I try I come up against “You do not have sufficient permissions to access this page.”

    Either before I login or after, I need to edit the database tables to get around that. I have the old tables but when I copy them over I get the permissions message so the is something I’m missing.

    Thread Starter kickoff3pm

    (@kickoff3pm)

    Ok I’ve resolved this, thanks again for your help.

    For any clots that fall into this whole this is how I solved it.

    I had moved the 3 tables I needed and changed their prefix to the default – wp_users, wp_usermeta and wp_options.

    I thought all the login details would be contained in them but what I didn’t know was within wp_options the is a field. This field uses the same prefix as your tables. So I athough I had changed the table prefix this field hadn’t been changed.

    So I needed to change the field to ‘wp_user_roles’ when I did that the old login worked and everything is fine in the world.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Really buggered this admin – help please’ is closed to new replies.