Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 3 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 8 months ago.

Assisted by: Mateus Getulio.

Author Posts
March 17, 2023 at 1:46 pm #13269985

Helen

I read an editor cannot edit a translated page that another user created.

I tried this (it's recommended in other issues):

add_filter('wpml_user_can_translate', function ($user_can_translate, $user){
if (in_array('editor', (array) $user->roles, true) && current_user_can('translate')) {
return true;
}

return $user_can_translate;
}, 10, 2);

but no results.

How can I give an editor the rights to edit the translated page of another user?

March 17, 2023 at 9:04 pm #13272865

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Welcome to the WPML support forum!

Let's try a possible solution by resetting the user roles capabilities. Please follow these steps:

- Make sure to have a website backup
- Get access to your files and edit the your-theme-directory/functions.php file
- Add this line of code:

if ( !function_exists( 'populate_roles' ) ) {
  require_once( ABSPATH . 'wp-admin/includes/schema.php' );
}

populate_roles();

This WordPress function should directly rebuild the roles and their capabilities. Please give it a try and check again if the Editor is able to open the translations now.

Thanks,
Mateus.

March 20, 2023 at 9:06 am #13281869

Helen

Hi, thanks,
it workes partially.

The situation is: there is a specific page in Dutch en it is translated to English.

When I edit the Dutch page and then change to English in the top menu, I get the English page and I can edit. That's great!

But... When I go to the overview of the English pages, I look for the same Enlish page in the overview , then I cannot edit. The button "edit" doesn't react then.

March 20, 2023 at 8:36 pm #13288055

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

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 make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

The topic ‘[Closed] Role editor wants to edit translated page’ is closed to new replies.