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.

This topic contains 6 replies, has 2 voices.

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

Assisted by: Mateus Getulio.

Author Posts
July 18, 2023 at 12:36 pm #14059201

michelleW-8

None of the content will translate the error says

None of your content can be automatically translated until you map your default language to a supported language.

But there are no languages to select on the drop-down.

July 18, 2023 at 8:35 pm #14062027

Mateus Getulio
Supporter

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

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

Hey there,

Thanks for your contact and welcome to our support forum!

By looking at your debug info, it is possible to see that the WP Memory Limit is set to 40M, while the recommended is 256. Changing it can solve the problem. Please follow these steps:

- Find your wp-config.php file in the root directory of your WordPress installation
- Open the wp-config.php file with a text editor, then locate the line that includes: define('WP_DEBUG', false)
- Then add after it, the below line of code: define ('WP_MEMORY_LIMIT', '256M');
- Save the wp-config.php file, then refresh your website

If you're still stuck, we might be facing an interaction issue with a third-party functionality, in this case:

- Deactivate all the plugins that are not related to WPML
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Could you please tell me the results of this investigation? Also, can you enable the debug mode? Just add the following code in your 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 );

Please check the following links to read more about debugging with WordPress.
- https://codex.wordpress.org/Debugging_in_WordPress
- https://codex.wordpress.org/Debugging_in_WordPress#Example_wp-config.php_for_Debugging

After adding the code above, try to reproduce the issue again and check if you'll find a debug.log file inside the wp-content folder. If you locate it there, kindly send us the last lines here in the ticket.

Regards,
Mateus.

July 21, 2023 at 10:12 am #14078265

michelleW-8

Ok the error has now gone but there is a page for every single language in the admin area I don't think there used to be and we can no longer switch between languages on the front end of the website (the language switch is only available on the English version).

July 21, 2023 at 8:25 pm #14082093

Mateus Getulio
Supporter

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

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

Hi there,

Thanks for your reply.

About your first question: there is a page for every single language in the admin area I don't think there used to be

If I got it correctly, you're referring to the backend switcher and the languages inside it. If so, this is expected, we can change the language in the backend (for instance, in order to see a second language list of pages/posts).

Now, for the other issue: we can no longer switch between languages on the front end of the website (the language switch is only available on the English version)

Please try this:

- Go to your affected page, and do a minor modification to the original language content
- Try to translate that page again and see if it'll work fine this time

Looking forward to your reply. Thank you.

July 31, 2023 at 12:13 pm #14126967

michelleW-8

This has not resolved the issue. For example if you visit: hidden link

Then switch to french it says page not found and the language switcher is not longer there.

July 31, 2023 at 7:11 pm #14129275

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.

August 4, 2023 at 4:17 pm #14156015

Mateus Getulio
Supporter

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

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

Hi there,

Thank you for providing the credentials.

It seems the problem only happens if we choose 'Plain' in the Settings -> Permalinks -> Permalink structure. I have changed it to 'post name' and now it works fine: hidden link

Do you need it set as 'plain', by chance? Or can we keep this change? Please let us know. Thank you.

Regards,
Mateus.

August 7, 2023 at 3:16 pm #14164879

michelleW-8

Thank you that has worked.