Skip Navigation

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

Problem:
The client experiences a '503 Service Unavailable Error' when trying to save a page with a lot of content in the admin area, specifically the home page. The error seems to be related to server memory issues, despite having sufficient memory limits set (256M and 512M).
Solution:
We recommend increasing the 'max_execution_time' to 300 or higher to potentially resolve the issue. Additionally, it's crucial to contact the hosting provider to check the server logs for more detailed insights, as the error is typically related to server-side issues. If the problem persists, we suggest editing the primary language page and unchecking the 'ACFML synchronization of translations - Keep repeating fields and flexible subfields in the same order as in the default language' option. This adjustment should allow the page to be updated without triggering the error.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, please visit our support forum at WPML Support Forum for further assistance. We also 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.

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

Last updated by Kor 1 year ago.

Assisted by: Kor.

Author Posts
May 11, 2024 at 9:54 pm #15617224

martinaP-8

I get a "503 Service Unavailable Error" when trying to save a page/post in admin.
But only on a page with a lot of content eg. start page: hidden link
Saving pages with less content seem to work.

The Error is shown as a "PMemF" in Cpanel.
All error_log files are empty.
I activated wp_error reporting but no file was created in wp_content.

I am using php 7.4 and tried high memory settings but no success.
define('WP_MEMORY_LIMIT', '256M');
define('WP_MAX_MEMORY_LIMIT', '512M');

Can you please help me
BR Matthias

php1.JPG
php2.JPG
May 13, 2024 at 1:07 am #15618253

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Hello,

Thank you for getting in touch. After reviewing the screenshot you provided, I observed that the "max_execution_time" is set at a relatively low value. I recommend increasing it to 300 or higher to see if it resolves the issue.

Additionally, since the "503 Service Unavailable Error" typically pertains to server-related issues, I advise reaching out to your hosting provider. They should be able to examine the server logs for further insight and assistance in resolving this matter.

If you have any other questions or need further assistance, feel free to ask.

May 13, 2024 at 8:46 pm #15622579

martinaP-8

Hallo

today I found something in the debug_log but I am not sure if it is related to my problem:
[12-May-2024 03:43:46 UTC] PHP Notice: Undefined offset: 0 in /iscsi3/pifflser/public_html/dermaz.at/wp-includes/class-wp-query.php on line 3738
[12-May-2024 07:05:10 UTC] PHP Notice: Undefined offset: 0 in /iscsi3/pifflser/public_html/dermaz.at/wp-includes/class-wp-query.php on line 3738

I increased the max execution time to 300 but it does not change anything. I get the 503 aprox. 6 seconds after hitting the save button.

The only webserver Error I get after saving is shown in the attached image.

As I previously wrote it seems to be a "PMemF" Error (Memory) but more than enogh memory is available. Tis error is allways triggerd when I try to save the page.

I do think the issue is triggered by the plugin!

BR Matthias

May 14, 2024 at 1:09 am #15622789

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

May 16, 2024 at 8:08 am #15633462

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for responding.

I've investigated, and I can edit and save posts/pages without encountering any issues. Would you mind creating a brief screen recording using this free tool hidden link to demonstrate the steps you took when encountering the problem? This will help me better understand the issue you're facing.

May 22, 2024 at 5:17 am #15653247

martinaP-8

I still have the issue
hidden link

May 22, 2024 at 4:04 pm #15659219

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry, I think I broke the site while trying to enable the debug log as explained here https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/ . Could you please check what's going on?

It is showing "Error establishing a database connection" now.

May 22, 2024 at 8:00 pm #15659739

martinaP-8

The site is working again.

May 23, 2024 at 8:00 am #15660947

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Are you working on the site? I'm still getting "Error establishing a database connection" as shown in the attached screenshot. Could you check?

Screenshot 2024-05-23 at 3.59.31 PM.jpg
May 24, 2024 at 8:49 pm #15669325

martinaP-8

No there was another problem. It is working again.

May 27, 2024 at 5:01 pm #15675182

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

It seems to work fine when I deactivated the ACF plugin. Please allow me to escalate this to our 2nd Tier Support for further investigation. I will come back to you once I've feedback.

May 28, 2024 at 2:25 pm #15679169

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your patience.

I've received feedback from our 2nd Tier Support. According to them, the issue occurs within 4 seconds, ruling out a timeout problem. Instead, it appears that the server is rejecting the request with a 503 error. Could you please inquire with your hosting provider about why this request is resulting in a 503 error?

May 28, 2024 at 7:57 pm #15680660

martinaP-8

As I wrote in my initial post. The save page request triggers a PMemF error as seen in the picture.

error.JPG
May 28, 2024 at 8:03 pm #15680823

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

I've reverted this back to our 2nd Tier Support. I will come back to you once I've feedback.

May 29, 2024 at 8:36 am #15682139

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I regret any inconvenience caused, but to proceed further with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.