Skip to content Skip to sidebar

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

Problem:
After pushing the website to production, the client is facing issues with WPML: the WPML edit button is not visible in the backend, and attempts to edit products redirect back to the homepage. Despite registering the site and installing all WPML plugins, it still indicates some plugins are not installed.
Solution:
We identified that a custom function in the theme, designed to remove all notices in the WordPress dashboard, was causing the issue. We recommend commenting out this function:

add_action('admin_head', function() {
        remove_all_actions('admin_notices');
        remove_all_actions('all_admin_notices');
    });

After doing so, navigate to WPML → Translation Management and follow the migration banner. This should resolve the issue and allow WPML to function normally.

If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum.

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.

Tagged: 

This topic contains 15 replies, has 0 voices.

Last updated by Andrey 6 months, 3 weeks ago.

Assisted by: Andrey.

Author Posts
September 22, 2025 at 2:19 pm #17422283

doctorO

Hi My Previous issues are solved Thank you for this.

But now i am facing a new issue

After pushing my website to production, I’m facing the following issues with WPML:

The WPML edit button is not showing in the backend.

When I try to edit products through Product > Edit > WPML section, it just reloads and redirects me back to the homepage.

Although I’ve already registered my production site and installed all WPML plugins, it still shows that some plugins are not installed.

This is blocking me from editing products, and I need to go live urgently. Could you please help me fix this issue?

September 22, 2025 at 2:20 pm #17422285

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

September 23, 2025 at 3:18 am #17423469

doctorO

Hi I have to delete this server due to some issue..

making new server please share detail box again so i can share it again.

September 23, 2025 at 7:21 am #17423652

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for updating me.

The following message is private so that you can share new access credentials.

September 24, 2025 at 7:33 am #17427637

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for sharing the details.

Since you migrated your site, you should normally see a migration banner in WPML → Translation Management prompting you to run the migration for the new site URL. Did you see this banner?

If you didn’t see it and only encountered an empty page, another plugin is likely interfering and hiding it.

Please try the following steps:

1. Register the current site with a new site key:
1. Go to Plugins → Add New → Commercial tab and click Unregister WPML from this site.
2. Once the page reloads, click Register WPML. A message will appear asking for the site key. Click Get a key for this site.
3. In your WPML account, complete the site key wizard and set it to Production site.
4. Copy your new key and paste it into the Commercial tab. Once done, you can delete the old site key in your WPML account.

2. Check Translation Management:
• Go to WPML → Translation Management.
• If the page is still empty, please temporarily deactivate all plugins except WPML and check again.

September 24, 2025 at 2:47 pm #17429576

doctorO

I already have done this..

But its nit solved.. already tried it..

I have registered my Production site with new key as you can see in my WPML account.

September 24, 2025 at 2:58 pm #17429629

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

Is this a staging site? Can I enable the debug.log to review its contents? Also, can I activate and deactivate plugins?

September 25, 2025 at 5:34 am #17430540

doctorO

Yes its a staging site you can do it...

Please do it ASAP i need to complete it by today

September 25, 2025 at 1:45 pm #17432774

doctorO

Hi I need to go live please inform me

September 25, 2025 at 1:46 pm #17432792

doctorO

If you cant do it please refund my amount its not professional way

September 25, 2025 at 1:47 pm #17432797

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I am looking at this. Can I make a copy to test this in the local environment?

September 25, 2025 at 2:01 pm #17432836

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I appreciate your patience.

I was able to identify the cause of the issue. Your theme contains a custom function that removes all notices in the WordPress dashboard. This is why I previously mentioned that something in your setup was interfering.

Please temporarily comment out the following function in your theme:

add_action('admin_head', function() {
        remove_all_actions('admin_notices');
        remove_all_actions('all_admin_notices');
    });

After commenting it out, go to WPML → Translation Management and follow the migration banner. Once the migration is completed, WPML will continue working normally on your website.

I’ve attached a screenshot for your reference.

Translation-Dashboard-‹-DoctorOnCall-Malaysia-—-WordPress.png
September 26, 2025 at 2:05 am #17434154

doctorO

I Have tried it but nothing was here.. its just a blank screen please check..

I need to fix it early as i told you..

its just causing delay..

Please fix it if you cant just refund my money

1.PNG
September 26, 2025 at 2:43 pm #17436478

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I went to your theme's functions.php file and commented out the following function:

// add_action('admin_head', function() {
//         remove_all_actions('admin_notices');
//         remove_all_actions('all_admin_notices');
//     });

Please go to WPML → Translation Management and finish the migration.

Translation-Dashboard-‹-DoctorOnCall-Malaysia-—-WordPress.png
September 28, 2025 at 9:03 am #17438665

doctorO

Yeah its working on SIT but not working on my PROD site can you do it here to??

I have upload this in functions.php you can see there