Skip Navigation

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

Problem:
The client was experiencing a white screen when trying to configure translations in a WordPress site using the Divi theme, even after disabling other plugins and switching themes. The issue persisted despite adding debug code to wp-config.php. A DOMException error related to cross-origin stylesheet access was noted in the browser console.

Solution:
We recommended enabling WordPress debugging to capture any PHP errors that might be causing the white screen. This involved editing the wp-config.php file to include:

define('WP_DEBUG', true);<br />define('WP_DEBUG_LOG', false);<br />define('WP_DEBUG_DISPLAY', true);

We also suggested inspecting the page using the browser's developer tools to check for JavaScript errors in the console and reviewing the ATE error logs in the WPML support section. Additionally, we explored the possibility of a cross-domain issue if different domains were used per language and recommended testing the directory format in WPML settings.

Ultimately, the problem was resolved by creating a new admin user and accessing the site with the Chrome browser, suggesting a potential corruption in the old user profile in the database.

If this solution does not apply or is outdated, we recommend checking related known issues at https://wpml.org/known-issues/, verifying you have the latest versions of themes and plugins, and if needed, open a new support ticket at WPML support forum for further assistance.

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 9 replies, has 3 voices.

Last updated by Bobby 8 months ago.

Assisted by: Bobby.

Author Posts
August 27, 2024 at 3:42 pm #16111033

katjaL-4

Background of the issue:
I want to configure my translations, but only get a white screen. All other Plugins are off, I use Divi, but changing to a WP Theme did not fix the issue.

Symptoms:
clicking a translation in order to configure it, gives a white screen

Questions:
why is nobody answering my ticket? it's been 2 weeks. This is the second ticket

August 27, 2024 at 4:41 pm #16111432

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

Receiving a blank page usually means that there is a chance of a fatal error taking place or an existing incompatibility issue between WPML and (at least) one of the active plugins or the active theme.

Can you please enable the WordPress debug feature and recreate the issue to see if you are getting an actual error message instead of just the blank page?

This will allow us to see if any PHP errors are being produced.

More Info: https://codex.wordpress.org/Debugging_in_WordPress

In order to do that, edit the wp-config.php file inside your WordPress directory and insert the following lines:

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

Now please reproduce the issue once again.

Now, see if you see more information than just a blank screen and if you do, please share a screenshot with us so that we can see what is the error that is causing that blank page to show up.

Please let us know how that goes and if following these steps helped you get some extra information.

We will be waiting for your response.

Mihai

August 27, 2024 at 9:04 pm #16112237

katjaL-4

I have added the code into wp-config.php, but it's still just a white screen, nothing changed.

August 27, 2024 at 10:27 pm #16112263

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating us!

When viewing the blank page, right-click and inspect -> click on the console tab, do you see an error? If yes, share it with me, please.

Go to WPML->Support->ATE Error logs and share with me the top 5 errors logged there.

---- Did you recently migrate your site?

August 27, 2024 at 10:40 pm #16112267

katjaL-4

DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet
t hidden link
t hidden link
A hidden link
j hidden link
sY hidden link
vn hidden link
ws hidden link
Gr hidden link
Wr hidden link
Vr hidden link
Ir hidden link
Rt hidden link
unstable_runWithPriority hidden link
jt hidden link
Rt hidden link
Nt hidden link
V hidden link
be hidden link
application-7d03af4f2d5fa2f745580e64e6a43306d45a0f663eda1494a66fa4438938a80d.js:14:119
lr hidden link
callback hidden link
Gt hidden link
gr hidden link
$r hidden link
unstable_runWithPriority hidden link
jt hidden link
Kr hidden link
Ir hidden link
Rt hidden link
unstable_runWithPriority hidden link
jt hidden link
Rt hidden link
Nt hidden link
V hidden link
be hidden link
Uncaught DOMException: CSSStyleSheet.cssRules getter: Not allowed to access cross-origin stylesheet
t hidden link
t hidden link
A hidden link
j hidden link
sY hidden link
vn hidden link
ws hidden link
Gr hidden link
Wr hidden link
Vr hidden link
Ir hidden link
Rt hidden link
unstable_runWithPriority hidden link
jt hidden link
Rt hidden link
Nt hidden link
V hidden link
be hidden link
application-7d03af4f2d5fa2f745580e64e6a43306d45a0f663eda1494a66fa4438938a80d.js:81
t hidden link
forEach self-hosted:160
t hidden link
A hidden link
j hidden link
sY hidden link
vn hidden link
ws hidden link
Gr hidden link
Wr hidden link
Vr hidden link
Ir hidden link
Rt hidden link
unstable_runWithPriority hidden link
jt hidden link
Rt hidden link
Nt hidden link
V hidden link
be hidden link

##################

There are no error logs. I have been building the site with Divi for the past few months.

August 28, 2024 at 9:08 pm #16117193

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you,

Few cross domain issues, are you using a different domain per language?

Please go to WPML->languages->switch to use directory format as a test and let me know your results.

August 30, 2024 at 7:41 am #16123335

katjaL-4

No the domain is the same. I have changed the setting you suggested and it still has the same error

August 30, 2024 at 9:20 pm #16126354

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

September 3, 2024 at 10:30 am #16134928

katjaL-4

The problem was resolved by making a new admin user and logging into it with the Chrome browser.

September 3, 2024 at 10:44 pm #16138059

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I wonder if the old user was possibly corrupted in the database.

Thank you for sharing this with us!