Change WordPress user roles and capabilities › Forums › Bug Reports › Unable to Import Roles › Reply To: Unable to Import Roles
07/09/2019 at 05:50 #5917
Import process stops on the step of decoding data back to JSON. It fails due some incorrect (for JSON) characters inside.
So I need to investigate and fix 2 things:
1) why error message is not shown;
2) what’s happening with JSON formatted data.
For item 2) I need raw roles data from the database. Can you send me exported record from wp_options table?
You can extract needed record with this command:
SELECT * FROM wp_options WHERE option_name='wp_user_roles';
‘wp_’ is your db prefix in table name and in option name value, so if it’s not equal to ‘wp_’ replace ‘wp_’ to your own db prefix value from wp-config.php file.