Skip Navigation

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

Problem:
If you're experiencing a black screen on the language version of your site, it might be due to a conflict with a plugin.
Solution:
In this specific case, the issue was caused by a must-use plugin (mu-plugin) named "Plugin Load Filter." Disabling it or enabling the "Language switching per post" option within the plugin resolved the issue.

If this solution does not apply to your case, or if it seems outdated, we highly 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. If the problem persists, please open a new support ticket.

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 8 replies, has 2 voices.

Last updated by Mateus Getulio 10 months, 2 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
July 2, 2024 at 7:12 pm #15877715

irebu

Background of the issue:
I am experiencing a black screen on the language version of my site hidden link. I have disabled all plugins before checking.

Symptoms:
black screen

Questions:
Why is there a black screen on the language version of my site?
How can I resolve the black screen issue on the language version?

July 2, 2024 at 8:22 pm #15878044

Mateus Getulio
Supporter

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

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

Hi,

Thanks for contacting us.

Can you please test minimal, using a default theme(if applicable) and with all non-WPML and essentials 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.

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 );

Please check 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, please 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, 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.

July 2, 2024 at 9:07 pm #15878206

irebu

the screen with the error

Zrzut ekranu z 2024-07-02 23-06-16.png
July 2, 2024 at 9:10 pm #15878221

Mateus Getulio
Supporter

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

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

Hi.

Thank you for sharing that error log.

Please, try to follow these steps to try to fix the issue:

1. Take a backup of your Database.
2. Go to WPML -> Support -> Troubleshooting (link).
3. Once on the troubleshooting screen press the following buttons and check if it helps.
Press each button at a time and wait for the process to complete.
- 'Disable cache for language switcher templates'
- 'Clear the cache in WPML'
- 'Remove ghost entries from the translation tables'
- 'Fix element_type collation'
- 'Set language information'
- 'Assign translation status to duplicated content'
- 'Set language information'
- 'Fix terms count'
- 'Fix post type assignment for translations'

If it doesn't work, 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

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

July 3, 2024 at 11:15 am #15883542

Mateus Getulio
Supporter

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

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

Hello there,

I tried accessing the WordPress login page but I got the following error:

Error 403
You do not appear to be authorised to access these resources.
If you think you should have access to this site - contact the site administrator!

Can you please review it?

If you need to add my IP to the allow list it is this: 179.0.72.149

Thank you,
Mateus

July 3, 2024 at 11:37 am #15883649

irebu

can you check again ?

July 3, 2024 at 5:10 pm #15886212

Mateus Getulio
Supporter

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

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

Hello there,

Thank you for sharing that information. I'm still investigating it to try to find a fix.

I'd like to ask permission to make a copy/staging version of your site where I can debug this closely without affecting the live site. I need to update settings, disable plugins and theme, etc.

I'll make sure to delete this copy as soon as we get this issue fixed.

I'm afraid of debugging directly on the live site and cause issues to your visitors. Also, it is important to test a different setup as part of the troubleshooting.

Thank you, please let us know.
Mateus

July 4, 2024 at 9:16 am #15890487

irebu

i have a backup with updraft, you can disable, but i check plugins before,
i go few time the same problem with wpml, but i don't know what you change in wpml,

July 4, 2024 at 4:56 pm #15893436

Mateus Getulio
Supporter

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

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

Hello there,

Upon further inspection, the issue was caused by a mu-plugin(must use plugin) named: "Plugin Load Filter".

Upon disabling it I noticed that the secondary languages loaded just fine.

I tested it and it looks like there's an option in this plugin: "Language switching per post" that was disabled. Upon checking this option the issue stopped happening even with the plugin being enabled.

Please test it and confirm that it is fixed now.

Thank you,
Mateus