Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing issues with a custom user role 'Shop Manager' in WooCommerce, which could not edit translations or behave as an editor.

Solution:
1. We identified that this was a known issue and it has been resolved in the latest WPML version.
2. We recommended updating WPML to version 4.6.9, which can be manually downloaded from the client's WPML account.
3. We provided a code snippet that could potentially resolve the issue if the client did not want to update:

add_filter('wpml_user_can_translate', function ($user_can_translate, $user){<br />    if (in_array('shop manager', (array) $user->roles, true) && current_user_can('translate')) {<br />        return true;<br />    }<br />       <br />    return $user_can_translate;<br />}, 10, 2);

4. We also suggested emptying the translation queue by going to the Jobs tab and filtering the jobs.
5. If the client had already added custom code in the theme's functions.php file or added Jac to the translation managers list, we advised removing them after the update.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

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.

This topic contains 2 replies, has 2 voices.

Last updated by Ilyes 1 year, 6 months ago.

Assisted by: Ilyes.

Author Posts
January 10, 2024 at 3:52 pm #15169930

mickS-3

Shop manager can't translate everything

January 10, 2024 at 7:47 pm #15171409

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

I have opened your next reply to be in private so you can share your credentials safely,

Looking forward to your reply,

Best,

January 12, 2024 at 12:48 am #15177036

Ilyes
Supporter

Languages: English (English ) French (Français ) Arabic (العربية )

Timezone: Pacific/Easter (GMT-06:00)

Hello again,

Thank you for your patience,

It turns out this was a known issue reported recently : https://wpml.org/errata/wpml-custom-role-based-on-the-editor-role-cannot-edit-translations-and-behave-as-editor/

It got fixed in the newest version of WPML 4.6.9 , I tested it under your site copy and updated WPML plugins too, it seems to be working now.

So please save a backup of your site and update WPML to version 4.6.9, you can manually download this version from your account : https://wpml.org/account/downloads/

I hope this fixes your issue, if it does, you can remove Jac from the translation managers list and the custom code you added in the theme's functions.php file.

Best,

January 16, 2024 at 7:59 am #15188086

mickS-3

Updating the WPML CMS to version 4.6.9 fixed the issue.

Thanks for the help!