Skip to content Skip to sidebar

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

Problem:
The client is experiencing a 504 timeout error when using Custom Post Type UI (CPTUI) with Advanced Custom Fields (ACF) on a WPML staging site. The issue persists despite various tests and disabling other plugins. The error seems related to a conflict between a custom post type named 'Products' and WooCommerce Products.
Solution:
We recommended increasing the PHP Time Limit to 300 from 120 to see if it resolves the timeout issue. We confirmed that CPTUI is compatible with WPML and there are no known issues causing a 504 error between these plugins. We provided a sandbox environment for the client to test CPTUI and ACF without migrating the full site, which can help determine if the issue is related to the hosting environment or the plugins themselves. Access the sandbox here: Sandbox Login Link

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we 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. If the problem persists, please open a new support ticket at WPML support forum.

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 1 reply, has 2 voices.

Last updated by Bobby 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
June 17, 2024 at 10:45 am #15744775

simonC-4

Background of the issue:
I am working on setting up WPML on our site, and have it running as a staging copy. I have run tests of various areas of translation and can mostly make the system work. However, despite cloning the main site several times, I am getting a timeout error when CPTUI is active. If I disable this, timeouts stop. The error log shows: Timeout waiting for output from CGI script /home/u440-d9guy1bt7gkr/www/staging34.xxx.com/public_html/index.php, referer: hidden link. I've got debug mode on and although I get some notices I don't have any errors.

Symptoms:
Timeout 504 when using CPTUI with ACF on WPML

Questions:
Any tips on where next to look?

June 18, 2024 at 6:29 pm #15750616

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi there,

What are your results when increasing your PHP Time Limit to 300 from 120 ?

CPTUI is compatible with WPML and has been tested by our team, at the moment there are no known issues that would cause an err 504 between the 2. (not sure if the addition of ACF triggers it)

https://wpml.org/plugin/custom-post-type-ui/

I have created a sandbox environment for us, please access it and install ACF + CPTUI, are you able to reproduce the issue?

NOTE: Please don't migrate a full copy of your site onto the sandbox.

hidden link" rel="noopener" target="_blank">Sandbox Login Link

504 is a gateway timeout and most of the time directly related to the hosting environment, using the sandbox will allow us to confirm if this is indeed related to the plugins.

June 18, 2024 at 10:13 pm #15751044

simonC-4

Well, this did not cause an issue; so I started disabling things in another direction. And I found the cause (although not the solution, yet).

We have a custom post type called Products. This does not play nicely with Woocommerce Products. Once I change the name of the custom type, the site no longer times out. A bit of a flaw in our theme. Back to the developers for a fix, I think.

Thanks for your help.

- SC