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

Last updated by martinG-81 1 year, 11 months ago.

Assisted by: Bigul.

Author Posts
June 23, 2023 at 7:35 am #13882211

martinG-81

Dear WPML-Team!

Sorry for bothering you once more with our ugly server error problem. After discussiong the issue with you, we, meanwhile, tried everything with out it service provider and the suppliers of our theme and main plugins. We found no results. The fact is, that this error appears only, when wpml is active. It usually appears on hidden link, when calling english (translated) pages, sometimes even on the german origines. As far as our clients stop buying and we loose credibility, it is extremly dangerous for us. So, we need help urgently. Can you support us in identyfying and fixing the problem?

In addition to the debug information there is a long list of errors reported. I add a screenshot enclosed.

Kind regards and many thanks in advance, Martin Grub

err_03.jpg
err_02.jpg
err.jpg
June 23, 2023 at 6:04 pm #13887125

martinG-81

Dear WMPL!

please forgive my impatience, but we need urgently help. Is it a better idea for us to install Polylang Pro, as recommended by our server service provider?

Kind regards, Martin

June 26, 2023 at 10:03 am #13894211

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+03:00)

Hi Martin,

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps or if I can help with the issue quickly.

I am sorry for the delay in responding. We have a high volume of support requests at the moment.

The internal server error indicates a PHP error and to reveal it, could you please enable the WordPress debug log?

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

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

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', true );
define( 'WP_DEBUG_DISPLAY', false );

Now please reproduce the issue once again. I mean by that is to re-visit the page that displayed the internal server error.

Locate the debug.log in: /wp-content/debug.log. You can log in to your website via FTP or install a plugin such as File Manager to find that debug.log file.

Paste the content (if any) on a site like pastebin.com and then share the link here with us (only you and us will see the URL you are sharing).

Looking forward to hearing back from you.

June 27, 2023 at 9:11 am #13900651

martinG-81

Dear Ahmed!

Thank you for answering!
I followed the steps you prposed and got the debug file.
Although I don't understand what debug is reporting, I see some log items with php notice "falid" like:

[27-Jun-2023 08:50:37 UTC] PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (4) in /var/www/vhosts/tours-and-travel.de/httpdocs/wp-includes/functions.php on line 5309

This err is caused by the php function:
/**
* Flushes all output buffers for PHP 5.2.
*
* Make sure all output buffers are flushed before our singletons are destroyed.
*
* @since 2.2.0
*/
function wp_ob_end_flush_all() {
$levels = ob_get_level();
for ( $i = 0; $i < $levels; $i++ ) {
ob_end_flush();
}
}

Do you have any idea, what is happening?

I'll send you images of the textfile enclosed. How can I send you a textfile?

Kind regards, Martin

Screenshot20230627_tours_and_travel_de_wp-content_debug.jpg
Screenshot_20230627_tours_and_travel_de_wp-includes_functions_php.jpg
June 27, 2023 at 2:27 pm #13903597

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Martin,

Thank you for the updates. The internal server error will not happen because of the following notice.

PHP Notice: ob_end_flush(): Failed to send buffer of zlib output compression (4) in /var/www/vhosts/tours-and-travel.de/httpdocs/wp-includes/functions.php on line 5309

So please share the debug.log file with us. Or please check if you are getting any Fatal errors with WPML or any other plugin in the debug.log file. It may help.

Also, please check if you are getting any errors related to WPML in the server error log while having this bug. May you need your hosting team's support to access the server error log file.

--
Thanks!

Bigul