Solved

Word Press 3.2.1 permissions issue

Posted on 2011-09-13
17
417 Views
Last Modified: 2012-05-12
Greetings Experts,

recently upgraded to Word Press 3.2.1 (Windows Server 2003 / MySQL).
Followed these instructions: http://codex.wordpress.org/Updating_WordPress

After upgrade users and administrators are unable to create news posts and the administrator seems to have lost all permissions to edit/create users, etc.

If an Admin/User creates a post in this manner: POSTS > ADD NEW POST the following message is displayed on page post.php: "You are not allowed to edit this post."

If an Admin/User creates a post in this manner: DASHBOARD > QUICKPRESS they are able to create a new post and then are able to save, edit publish.

Admin/User can edit pre-upgrade posts.

I have access to the database tables if the solution needs to happen in the DB.

Thanks!
0
Comment
Question by:hammermcphee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
17 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36533727
Hi hammermcphee,

Have you tried disabling plugins to see if that fixes the issue?

If not, I would reinstall WordPress...it sounds like the update went bad.
0
 

Author Comment

by:hammermcphee
ID: 36533773
Thanks Jason1178,

Disabling the plugins has failed to solve the issue.
Since the initial install I've downloaded the zip file and reinstalled the pages (recommended on wp support pages), no change.

I am using the settings in the 3.2.1 wp-config-sample.php.

0
 
LVL 4

Expert Comment

by:h4hardy
ID: 36535757
i think you have to reinstalled it..
0
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

 

Author Comment

by:hammermcphee
ID: 36535862
I'll restore the pre-upgrade database and try again. I'll report back results.
0
 

Author Comment

by:hammermcphee
ID: 36545675
I restored the previous database then updated the Word Press database with no change in result. For the moment I have fallen back to the previous working version: 2.6.5. and it's running fine...except...

I noticed that running 2.6.5 an exception is generated when attempting to create a new user. I wonder if that has anything to do with upgrade problem and users only having limited permissions?

I'll try and troubleshoot that and then try an update.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36545734
What versions of PHP and MySQL are you running?
0
 

Author Comment

by:hammermcphee
ID: 36545824
PHP: 5.2.11
MySQL: 5.1.39
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36545878
Yeah, I don't know.  There should be no reason for this to be happening short of the upgraded database breaking something in the core functionality...
0
 

Author Comment

by:hammermcphee
ID: 36546001
I can't imagine it's an IIS/WIN2003K permissions issue since creating a User or Post writes to the database...
0
 

Author Comment

by:hammermcphee
ID: 36546851
Now focusing on the "An unidentified error has occurred" when trying to add a new user I do find the new user I created in table: wp_usermeta but with a user_id of 0. The new user does not show up at all in table wp_users.
0
 
LVL 31

Expert Comment

by:gwkg
ID: 36582729
Are you using a dedicate windows server or using shared hosting at GoDaddy (or somewhere else)

Have you checked the error logs in your control panel for something more detailed than the error your browser is reporting?
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 36583068
Maybe you should also turn the debugger on in WordPress:

http://andrewnacin.com/2010/04/23/5-ways-to-debug-wordpress/
0
 

Author Comment

by:hammermcphee
ID: 36584322
Thanks all for helping.
Dedicated Server, have not checked the logs.

Turning on debugging revealed the exception thrown when user creation failed.
“WordPress database error: [Field 'user_activation_key' doesn't have a default value]”

Used the error to find this entry: http://remy.supertext.ch/category/php/
"Can’t save new post with WordPress 3.0"

Repair suggested in article:
ALTER TABLE `wp_users` CHANGE `user_activation_key` `user_activation_key` VARCHAR( 60 ) DEFAULT 'NOT NULL'

The repair was successful, users can now be created, edited and deleted nominally.
The post suggests a similar cause and repair for the problem creating a new post (3.2.1 in my case).

I'll check this out, post upgrade to 3.2.1 and report back – thanks everyone!
0
 

Author Comment

by:hammermcphee
ID: 36601403
Upgrade to 3.2.1 seems to be successful, we are able to add posts and users, however the following database error was generated:

WordPress database error: [Out of range value for column 'post_parent' at row 1]
ALTER TABLE wp_posts CHANGE COLUMN post_parent post_parent bigint(20) unsigned NOT NULL default '0'

This is how the field is currently configured:
FIELD: post_parent,  TYPE: bigint(20),   NULL: Yes, DEFAULT: 0

0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36669248
Check the values of the column, see if there are any NULLs.
0
 

Author Comment

by:hammermcphee
ID: 36716666
Negative on NULL values, when I run the following query, no records are returned:
SELECT ID, post_parent
FROM wp_posts
WHERE post_parent IS  NULL;
0
 

Author Closing Comment

by:hammermcphee
ID: 36895006
Thanks for your help everyone.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question