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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+02:00)

Tagged: 

This topic contains 7 replies, has 0 voices.

Last updated by Bigul 1 day, 2 hours ago.

Assisted by: Bigul.

Author Posts
June 29, 2025 at 6:11 pm #17180792

daliborJ

Background of the issue:
I am trying to generate the core WordPress sitemap (https://cdn.wpml.org/wp-sitemap.xml). When WPML String Translation is activated, the request ends in HTTP 500. Disabling ST (or the whole WPML plugin set) immediately fixes the issue. Link to a page where the issue can be seen: hidden link

Symptoms:
The wp-sitemap.xml crashes with a 500 error when WPML String Translation is active. Disabling ST resolves the issue, and the sitemap loads fine with a 200 OK status.

Questions:
Why does activating WPML String Translation cause a 500 error on wp-sitemap.xml?
How can I resolve the 500 error while keeping WPML String Translation active?

June 30, 2025 at 1:29 am #17181071

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. So, 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 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 3, 2025 at 5:50 am #17195278

daliborJ

Dear Support Team — and especially to you, Bigul,

Yes, the issue is definitely still relevant, but I haven't had the chance to address it yet, even though it's quite important. I truly appreciate your assistance and will provide a proper update around 5 PM CE Time — in about 9 hours from now.

Thank you once again for your valuable time and support.

Best regards,
Dalibor

July 3, 2025 at 10:39 am #17196775

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Dalibor,

Thank you for the updates. Take your time. We will wait for your feedback.

--
Thanks!

Bigul

July 3, 2025 at 9:28 pm #17199405
daliborJ

Hi Bigul,

Thanks for the detailed instructions.

I’ve enabled debugging as suggested and reproduced the issue.

Here is the log file content: https://pastebin.com/qvs7N8S5

Please let me know if anything else is needed.

Best regards,
Dalibor

July 4, 2025 at 9:27 am #17200701

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Dalibor,

Thank you for the updates and the debug.log details. The log is showing a PHP notice related to WPML, but this should not cause the 500 error.

Just to confirm, are you using any SEO plugins other than Broken Link Checker by AIOSEO?

Also, do you have a staging or development site (a clone of the live site)? This would help us troubleshoot the issue safely without affecting the live site.

Please note that I have opened a new ticket for the PHP notice to make it easier to follow up. I will get back to you shortly on that ticket.

--
Thanks!

Bigul

July 4, 2025 at 7:06 pm #17202944

daliborJ

thx, problem solved,

July 4, 2025 at 7:25 pm #17202978
daliborJ

Hi Bigul,

Thanks again – I’ve been monitoring the `debug.log` and I’m seeing frequent PHP warnings related to `open_basedir` restrictions.

Here are a few examples:
- `file_exists(): open_basedir restriction in effect. File(WP Endpoints-sv_SE.mo)...`
- `realpath(): open_basedir restriction in effect...`
- `Deprecated: Required parameter $wpdb follows optional parameter $post_translations...`

They appear to be coming from `wpml-string-translation` and `woocommerce-multilingual` plugins.

The site is functioning correctly, but I just wanted to check whether these warnings are expected and if there’s a recommended way to suppress or fix them – or if an update will address this soon.

Thanks again for your help,
Dalibor

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/file_exists-open_basedir-restriction-in-effect/

July 6, 2025 at 8:11 am #17204691

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Dalibor,

Thank you for the updates. Glad to know you are now getting the expected results.

Please note that I have opened a new ticket for the “open_basedir restriction” issue to make follow-up easier. I will get back to you shortly on that ticket.

--
Thanks!

Bigul