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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 8 months ago.

Assisted by: Prosenjit Barman.

Author Posts
March 3, 2023 at 9:53 am #13162151

jeroenP-6

Hi we experience a 504 gateway timeout when trying to sync an ACF field update (using acf-json), only if the ACFML plugin is enabled. Also, some ACF field group location rules behave strangely. I have created a video demonstrating this issue.

March 6, 2023 at 11:02 am #13177705

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for reaching out to us. I will try my best to assist you in this matter.

I understood the issue you're having right now. To be able to provide you with a precise solution, I need to check if the ACFML has any impact on the syncing feature of ACF.

Would you please share the JSON file that you've imported and trying to sync? You can upload the file to any File sharing platform and share the link in the next response.

Also, As the 504 error occurred on your site while trying to sync the Field, I also need to check if the system is configured according to the recommended configuration. Please provide us with your site's debug information. You can find them on WPML > Support > Debug information page. Copy and paste the text you see in the box I'll enable in the next answer.

Please be informed that to maintain clarity and organization, it is important to keep discussions focused on one issue per thread. Therefore, I will focus on the Timeout error that appears while syncing the Field group. Kindly create a separate ticket by mentioning the other issues. Our support team will be more than happy to assist you. I hope you can understand the matter.

Looking forward to your response.

Best Regards,
Prosenjit

March 6, 2023 at 11:24 am #13177871

jeroenP-6

Hi Prosenjit,

Thanks for your reply. Hereby I send you the ACF field that experiences the 504 timeout while syncing. hidden link

Also, I have provided the WPML debug info.

Regards, Aron

March 8, 2023 at 5:07 am #13195181

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope this message finds you well.

Thanks for sharing the JSON and debug information. I configured the Local JSON for ACF in my development environment and tested the JSON file that you shared. I performed the test keeping the ACFML plugin activated and found that the Sync functionality is working fine in my development environment. I haven't encountered any timeout errors.

Please be informed that the testing was performed on Apache and Nginx servers and I can confirm that the feature is working fine on both servers. Kindly check the video below that I made while testing.

- hidden link

As you're using the Nginx server, it is important to set a higher timeout value inside the configuration files of Nginx. There might be several scripts on your site that can take more time to execute. For now, please check by making the following adjustments-

- Open the nginx.conf and site.conf file.
- Find fastcgi_read_timeout variable
- Set "1800s" as the timeout value.

Please let me know how it goes.

Best Regards,
Prosenjit

March 13, 2023 at 12:14 pm #13231669

jeroenP-6

Hi Prosenjit,

Thanks for the reply.

When I up the fastcgi_read_timeout variable to 1800s it indeed syncs after about 16 (!) minutes. When updating the timestamp only, the next sync also takes about 16 minutes.

Again, when disabling only the ACFML plugin, the sync time drops to about 5 seconds.

March 15, 2023 at 4:53 am #13248031

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing fine. Sorry for the delay in getting back to you.

Happy to hear that the sync works after updating the timeout variable. Now, even if the ACFML plugin is activated, the same ACF field gets synchronized immediately in my development environment.

Since the synchronization is taking time on your end, maybe there is something else that is causing the issue on your end. I would be happy to investigate the issue further and identify the root cause. I would like to request temporary access (wp-admin and FTP) to your site. It would be better to have a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit