Intermittently unable to import roles. The URE admin page reloads and no success or error message appears. Sometimes if I switch between Chrome and Safari I can get one to successfully import. (Also have to rename the .dat file from .dat.pdf to .dat when exporting from Safari)
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.
I am pretty sure this failure to import occurs when I base a new role on an existing one. Ones created from scratch can be imported but this is a pain as I have a long series of roles that are similar except they are restricted to different site sections via post id in Posts Edit dialog.