Can’t change the role of users
-
Hi, I’m moved recently my WP application to a new server (called newS) and I want to keep my old server as a backup server (lets call it backup1S)with the same appearance as the new one (newS). I uploaded all the information from the databases from (newS) to (backup1S) except the table wp_usermeta which is giving me a lot of trouble.
Every time I try to change the role of one of my users (which are loaded in the table wp_users) is giving me the following error on the log:WordPress database error Subquery returns more than 1 row for query UPDATE
wp_usermeta
SETmeta_value
= ‘a:1:{s:12:\”customrole1\”;b:1;}’ WHEREuser_id
= 763 ANDmeta_key
= ‘wp_capabilities’ made by edit_user, wp_update_user, wp_insert_user, WP_User->set_role, update_user_meta, update_metadataMy question is simple, what I’m doing wrong?
The funny thing is that if I create a new user (from the admin dashboard) with exactly the same information it’s allowing me to create it perfectly. Makes no sense to me that my database is failing with this error because there is only one register in the table with the query :
Select * from wp_usermeta WHERE
user_id
= 763 ANDmeta_key
= ‘wp_capabilities’
- The topic ‘Can’t change the role of users’ is closed to new replies.