Skip Navigation

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

Problem:
If you're trying to enable the WPML plugin on your site but cannot access the wp-admin after doing so, it might be due to a compatibility issue with other plugins or your theme. Specifically, you might encounter an error message preventing access to the wp-admin.

Solution:

First, ensure you are using WPML version 4.7.6 and enable the WordPress Debug log to collect more details about the issue. Modify your wp-config.php file as follows:

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

After enabling debugging, reproduce the issue and check the debug.log file in the /wp-content/ directory for any errors related to WPML. If you find errors such as a PHP Fatal error related to the SimpleXML extension, this indicates that the SimpleXML extension is not active on your server. Contact your hosting provider to enable the SimpleXML extension. For more information, visit the following links:

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 needed, 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 4 replies, has 0 voices.

Last updated by jeronimo-joseD 5 days, 19 hours ago.

Assisted by: Bigul.

Author Posts
July 1, 2025 at 10:05 pm #17190267

jeronimo-joseD

Background of the issue:
I am trying to enable the WPML plugin on my site, but it does not work. After enabling the plugin, I cannot access the wp-admin. The WordPress version I am using is 6.8.0, and the theme is BlogHash version 1.0.21. Link to a page where the issue can be seen: hidden link

Symptoms:
I get an error message that does not allow me to use the wp-admin site.

Questions:
Why can't I access the wp-admin after enabling the WPML plugin?
Is there a compatibility issue with WordPress version 6.8.0 or the BlogHash theme version 1.0.21?

July 2, 2025 at 5:28 am #17190715

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you resolve the issue.

This may be a compatibility issue with other plugins or the theme. We hope you are configuring WPML for the first time on this site and you are using the 4.7.6 version of the plugin.

Please share the WordPress debug.log (not WPML debug information) with us so we can collect more details on this. Refer to the following links for instructions

https://wpml.org/documentation/support/debugging-wpml/

https://wordpress.org/documentation/article/debugging-in-wordpress/

To enable WordPress Debug log, open your wp-config.php file of the site root and look for define('WP_DEBUG', false);. Change it to:

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

In this case, the errors will be saved to a debug.log log file inside the */wp-content/* directory. Please do the steps to reproduce the bug and check if you are getting any errors or warnings related to WPML in the log file.

If you can paste your debug.log to http://pastebin.com/index.php and provide me with that link, it would be great! (This is the cleanest way because sometimes the logs are long and create a complete mess of discussion.)

--
Thanks!

Bigul

July 2, 2025 at 5:48 am #17190739

jeronimo-joseD

Hello Bigul,

I am using the installer available in https://wpml.org/account/downloads/ The version of the installer is 3.1.13.

Here you are the link that contains debug.log content https://pastebin.com/G31axipj The password to open it is wpml-issue

Kind regards

July 2, 2025 at 6:09 am #17190801

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Thank you for the updates and for sharing the debug log. The debug.log file shows the following fatal error:

PHP Fatal error: Uncaught Error: Call to undefined function simplexml_load_file() in /***/wp-content/plugins/otgs-installer-plugin/vendor/otgs/installer/includes/class-wp-installer.php:833

This error occurs because the SimpleXML extension is not active on your server. Please contact your hosting/server team and ask them to enable the SimpleXML extension.

Once it's activated, check again to see if the issue still exists. For more information, please refer to the following errata and support ticket links:

https://wpml.org/forums/topic/fatal-error-uncaught-error-call-to-undefined-function-simplexml_load_file-3/

https://wpml.org/forums/topic/fatal-error-uncaught-error-call-to-undefined-function-simplexml_load_file-in/

https://wpml.org/errata/php-7-possible-issues-simplexml/

--
Thanks!

Bigul

July 2, 2025 at 8:55 am #17191624

jeronimo-joseD

Hello,

Thanks. After installing the extension, I have been able to install the installer.

Thanks so much for the quick assistance.

Have a good day.