Skip Navigation

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

Problem:
You are experiencing issues with the flag icon not appearing in the main menu after switching to 'auto translate everything' mode in WPML, despite not clicking the 'Sync Menu' button or manually creating translations. Additionally, you encountered a PHP Fatal error indicating an exhausted memory limit.
Solution:
First, increase the WordPress memory limit by adding the following lines to your wp-config.php file:

/** Memory Limit */<br />define('WP_MEMORY_LIMIT', '512M');<br />define('WP_MAX_MEMORY_LIMIT', '512M');

Add these lines above the '/* That's all, stop editing! Happy blogging. */' line. This adjustment should help resolve the memory issue and allow for smoother operation of WPML functionalities.

Next, ensure your site key is correctly registered to use automatic updates. If updates are not working, generate a new site key by deleting the current site URL from your WPML account at https://wpml.org/account/sites and re-adding it. This action will provide a new site key. Then, unregister and re-register WPML on your site with the new key by navigating to Plugins -> Add New -> Commercial tab and following the prompts to update or enter the new site key.

If these steps do not resolve your issue or if the solution seems outdated or irrelevant to your specific case, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open 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 55 replies, has 2 voices.

Last updated by Lauren 10 months ago.

Assisted by: Lauren.

Author Posts
August 5, 2024 at 6:18 pm #16041145

jamesC-69

Background of the issue:
I chose the 'Easy and Customizable' translation mode to conserve translation credits and avoid translating posts already in a bilingual layout. When the flag icon did not appear in the main menu, I switched to 'auto translate everything' mode, which translated almost everything but used up most of my credits. The menu still did not display the flag icon. I did not click the 'Sync Menu' button or create a translation manually in the menus list due to a warning in the documentation.

Symptoms:
The flag icon is not appearing in the main menu despite switching to 'auto translate everything' mode.

Questions:
Did I screw up the auto translate function because I first started in 'Easy and Customizable' mode?
How can I fix the problem of the flag icon not appearing in the menu?

August 5, 2024 at 7:43 pm #16041750

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I would like to request temporary access (wp-admin and FTP) to your site to take 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

August 6, 2024 at 3:57 am #16042393

jamesC-69

?

August 6, 2024 at 2:30 pm #16044461

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Please send me the link to login to your staging site. The typical wp-login.php and wp-admin are showning me 404 pages on your staging site. I have marked the next reply so that you can securly share the details.

August 7, 2024 at 1:30 pm #16048258

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I don't see an auto login link anywhere and when I try these credentials I get the error "ERROR: The username or password you entered is incorrect.". Please update your previous reply with correct credentials and I will try again.

August 7, 2024 at 6:45 pm #16049711

jamesC-69

sorry, my mistake... gave you the wrong URL. This one is correct and the log in credentials work.

hidden link

ALSO, after login in, I just noticed that the staging site wants me to "connect the automatic translation credits between the two copies of this site."
However, when I click the link to get the migration code, I get a 404 error... this is the URL of the link that doesn't work:
hidden link

so for now, I can't complete the translation migration. Not sure what to do next. I'm still working on getting SFTP access for both of us.

ALSO note: the site had a previous subscription to WPML that expired over a year ago. I inherited admin role about 4 months ago and started a new WPML subscription under my name. Is it possible that some old WPML files are conflicting with the newer files ??

thanks

August 8, 2024 at 1:30 pm #16053012

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

It looks like there might be some errors happening behind the scenes. Can I install a file management plugin to see if I can enable and look at the debug log?

Also, we will need to test in minimal settings. Is it possible on this staging site to temporarily disable non WPML plugins and switch to a default theme? This way we can rule out a conflict or possilby determine the cause if there a conflict happening somewhere.

Also, as for the 404 link, you need to log in to your live site, go to WPML -> Translation Management -> Tools and grab the migration code from there. THe other link is not working because you use a custom login URL.

August 8, 2024 at 8:50 pm #16054341

jamesC-69

OK I copied / pasted the migration code successfully.

Because of the problems with the live site, I had to deactivate all WPML plugins.

I have now deactivated all non-WPML plugins from the staging site, except for Word Fence security plugin. you can deactivate that if you need to while you do your site investigation.

I also left Elementor active but if you need to deactivate it for test purposes that's fine.

I also left Hide Admin active since your login credentials are tied to that URL.

I did change themes to the default wordpress theme.

Yes you can install your debug plugin.

thanks again for your help

August 12, 2024 at 1:53 pm #16062534

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

When I tried to deactivate Elementor, I get a critical error on the site.

WordPress includes a debug mode that helps reveal PHP problems. Let's enable this and see if there are any errors we can locate.

To enable it, open your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

In this case the errors will be saved to a debug.log log file inside the /wp-content/directory.

The wp-config.php is located in your WordPress root directory. It’s the same file where the database configuration settings are. You will have to access it by FTP or SFTP in order to edit it.
If you open wp-config.php and that define statement is not there, you can add it right before this line:

/* That's all, stop editing! Happy blogging. */

Please note that you’ll see everything, not only related to our Plugins. This will most likely include messages from other plugins, your theme, and sometimes even WordPress core. The messages appear all over the place.
Sometimes they appear right on top, but they can also appear in the middle of the page.

DOC:
https://codex.wordpress.org/Debugging_in_WordPress

After enabling the debug mode, please try to replicate the issue. Navigate to the page where the error message being displayed. The errors will be either displayed on the screen or logged in the debug.log log file inside the /wp-content/directory.

Paste the latest lines here. No need to paste the entire log file, just 50 lines or so will do. Please censor any sensitive information.

August 13, 2024 at 2:58 am #16064271

jamesC-69

This is the debug message I received:
Fatal error: Uncaught Error: Class "Elementor\Core\Schemes\Color" not found in /www/latinojewishrelations_535/public/wp-content/mu-plugins/fixed-schema-color.php:12 Stack trace: #0 /www/latinojewishrelations_535/public/wp-includes/class-wp-hook.php(324): Elementor\{closure}('') #1 /www/latinojewishrelations_535/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /www/latinojewishrelations_535/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /www/latinojewishrelations_535/public/wp-settings.php(555): do_action('plugins_loaded') #4 /www/latinojewishrelations_535/public/wp-config.php(172): require_once('/www/latinojewi...') #5 /www/latinojewishrelations_535/public/wp-load.php(50): require_once('/www/latinojewi...') #6 /www/latinojewishrelations_535/public/wp-admin/admin.php(34): require_once('/www/latinojewi...') #7 /www/latinojewishrelations_535/public/wp-admin/index.php(10): require_once('/www/latinojewi...') #8 {main} thrown in /www/latinojewishrelations_535/public/wp-content/mu-plugins/fixed-schema-color.php on line 12

I opted to reinstate a back up of the staging site so we could at least access wp-admin. This back up is from Aug 5.

However, I could not reestablish the sharing of credits because an error message kept popping up. The 'copy migration code' was not working. It worked when I first did it a week ago, but not now. So although WPML is active on the staging site, it is not working, and it does not appear in the list of my WPML sites.

I had to deactivate WPML from the live site because it's not displaying the Home link or News link while in Spanish mode.

if it's any help, the SFTP credentials are as follows:
host = 34.71.83.227
port = 46166
user = latinojewishrelations
pw = Bx1sXGCI3IRYbVz

what's next ?

August 13, 2024 at 7:05 pm #16067787

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

My login is no longer working. Can you please add it back so that I can login and take another look? Thanks!

August 14, 2024 at 3:20 am #16068619

jamesC-69

sorry didn't realize reinstating the backup wouldn't have your user profile. All good now, tested your previous credentials and login will work now.

August 15, 2024 at 5:27 pm #16075636

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Just tried again and the credentials are still not working.

August 16, 2024 at 2:06 am #16076524

jamesC-69

I just tried it again and it works.
You have to be at the staging site, not the live site admin.
hidden link

does NOT use WP-admin

Also, I noticed page load times were very slow after logging in. And log in time seemed to stall but eventually kicked in and loaded.

something is not right.

here is a screen grab showing that I'm logged in as Lauren. Note the URL. This is the error message I get when trying to share credits between live and staged sites.

thanks...

Logged in as Lauren.png
August 16, 2024 at 1:04 pm #16078332

Lauren
WPML Supporter since 10/2015

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

When I click the link in your latest response, it takes me to a 404 page (see attached screenshot). Can you please double check the correct URL for me to login?

Screenshot 2024-08-16 at 8.53.19 AM.png