[Waiting for user feedback] things not working after update
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
We were unable to replicate this problem entirely. On our test site, the error "Sorry, you are not allowed to access this page" only occurred when clicking the " Translate Taxonomies >" button. Our second-tier supporter debugged this problem and provided a workaround for it. Here is what you need to do.
1. Take a complete site backup in case something goes wrong.
2. Edit the functions.php file of your theme with a code editor.
3. Insert this function in the file.
/**
* Expand translation manager caps to be able to translate taxonomies
*/
add_filter( 'user_has_cap', 'wssupp_boost_caps', 10, 1 );
function wssupp_boost_caps( $allcaps ){
$newcaps = array();
if ( isset( $allcaps['manage_translations'] ) && $allcaps['manage_translations'] ) {
$newcaps = [
"wpml_manage_taxonomy_translation" => true
];
}
return array_merge( $allcaps, $newcaps );
}
4. Save the file.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
Now, the problem should be solved.
Please check if it has also solved the problem of clicking the "Translate Products >" button.
We can try and help further.
If you want further help from us, can you please do one of the following?
1. Let us create a test shop manager on your site to see the problem.
2. Let us access a staging site where the problem occurs and allow us to check things on it, including deactivating plugins and switching the theme.
3. If needed for further investigations, allow us to take a copy of your site. To do this, we must install a plugin like Duplicator or All In One Migration. Please let me know if you agree.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply. Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--
If you need further help with this issue, please refer to the requests from my previous reply.
If you need further help with this, please share the access details to your site with me. I'm enabling a private message for the following reply. Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ **IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--