[Resolved] Automatic translate mode changed back to what you choose
This thread is resolved. Here is a description of the problem and solution.
Problem: The client was experiencing an issue where the translation mode kept reverting to 'Translate what you choose' after setting it to translate everything automatically. Additionally, there was a suspicion of a server block preventing communication with WPML servers, and a potential issue with the HelloWP license handler affecting WPML functionality.
Solution: 1. We identified that the site was behaving as if it was on a multilingual blog license, which it wasn't, causing settings to revert. Disabling and re-enabling the plugin helped to clarify that 'Translation Management' was not activated. 2. We corrected the WP_OPTIONS table setup and addressed a potential server block by asking the client to check with their hosting provider. 3. We discovered a suspicious database entry that our developers investigated, which appeared to be related to the issue. 4. We found that the HelloWP service was forcing a multilingual blog setting, creating the problem. We advised the client to speak with the HelloWP team. 5. As a final step, we suggested re-registering the site and installing String Translation from the 'Add New' section under 'Plugins > Commercial'.
If you're experiencing similar issues, we recommend checking with your hosting provider for any server blocks and ensuring that no external services are forcing settings that conflict with WPML. Additionally, you can try disabling and re-enabling WPML to reset the 'Translation Management' activation.
Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, 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.
I set the translation mode to translate everything automatically, but after I refresh the Settings page is is reverted to Translate what you choose.
Can you help me solve this, please?
Languages: English (English )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hi,
Thanks for contacting us.
Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.
Can you please test minimal, using a default theme and with all non-WPML plugins disabled to see if the error persists. If possible make a backup of the site before doing it or test on a staging copy.
Also, according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)
You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:
In addition to that, I'd like your help enabling the debug mode to help us track the error down, please add the following code to the wp-config.php file:
// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
// Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
define( 'SCRIPT_DEBUG', true );
After adding the code above, please try to reproduce the issue again by updated the translation mode and check if you'll find a debug.log file inside the wp-content folder.
If you locate it there, please send us the last lines here in the ticket.
After you send the WP debug logs, we'll analyze them and get back to you with further steps.
Looking forward to helping you resolve this issue.
I did what you wrote, but there is no debug.log file in the wp-content folder. If you need access I can give you the credentials or a duplicator package.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Hello,
Please tell me the following:
1) What option in translate everything did you choose? translate only the new content or translate even the old content?
2) I would like to ask for credentials but that means that i have to set "translate everything", thus, it will use credits, so it's essential you answer the point 1
3) Can you confirm you also tested on minimal as suggested by Mateus?
Can you please test minimal, using a default theme and with all non-WPML plugins disabled to see if the error persists. If possible make a backup of the site before doing it or test on a staging copy.
4) Can you let me know if this site is live already? from the ticket it seems the site is still under construction. i ask this to understand if i can do certain things like publish a post or disable a plugin or a theme.
5) Please confirm you have created a backup before you allow me access to the site.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
I might've found the root of the problem and it's that someone seems to have touched or messed up with your site somehow. either that or well, there's a problem in a specific entry in the database.
the license seems to point to this url: hidden link do you know that website, by any chance?
I took the website from duplicator but it keeps timing out so with your permission i'd like to create another backup with a different plugin or in a different way. can you confirm i can do it?
in the meantime i'm working on your site, but you can enable your plugins and continue working as needed.
You are allowed to do the backup you need.
I know the wpml.hellodevs.dev, it belongs to the HelloWP plugin manager, they offer different licenses to different plugins. The also own WPML subscription which can be used by us as subscribers, but it should be overwritten by the license of the homverK account.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Well, there's more than one issue
1) Your WP_OPTIONS table was not setup correctly. i fixed that now
2) The main issue seems to stem from the fact that there is a delay or a missing connection to our servers only because it seems to be that something in the server is blocking the connection.
You were blocked on our end and we fixed that, yet there might be some rule on your server that is also trying to block calls going to our server. could you ask your hosting about it?
3) There is an entry in the database that looks a bit suspicious and our developers are looking into that. that entry seems to never be updated and it's related to the problem you're having so we're trying to figure out why it's still not updating even after having fixed problem 1 and 2 on your site.
You can work normally on your site in the meantime because we have a copy where we're running tests.
If you see that you can't access WPML > Translation Management, disable WPML, wait a few minutes and then enable it and you'll be able to continue working.
the HelloWP license handler gave me an option that might solve the problem. I added a line to wp-config.php (define( 'HP_DISABLE_PLUGINS', 'plugin-folder-name' );). Can you please check and add wpml plugin folder names to it? It will disable the license handling to the described plugins.
We can check if it solves the problem. And please enable the plugins which was disabled during the debug.
Languages: English (English )Spanish (Español )Italian (Italiano )
Timezone: Europe/Rome (GMT+02:00)
Hi! did you change the site's user/password because i can't access it anymore.
i checked the code you gave me but since it's coming from a third party plugin or service and i couldn't find documentation of it, i had to use my logic to make it work but i can't really test it without access to the website.
I saw you had added a few plugins to the list but you only need one "sitepress-multilingual-cms", plus, are you sure you can add many plugins divided by a comma? is that the correct way to do it if there are more than one?
By the way, last week, when i entered last, i had left all the plugins enabled when i finished. our devs needed access to the site which worked until yesterday so maybe they were testing (i have to ask confirmation from them).
Can you please make sure the credentials you gave me before are still working?