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 |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - |
Supporter timezone: Asia/Jerusalem (GMT+02:00)
Tagged: Not WPML issue
This topic contains 22 replies, has 2 voices.
Last updated by Itamar 1 year, 3 months ago.
Assisted by: Itamar.
Author | Posts |
---|---|
September 21, 2023 at 8:55 am #14435993 | |
alexandreP-37 |
I am trying to edit an existing custom post type (change the publish date). When I save the post, the nginx server shows a "request has timed out" message. Fortunately, If I go back, I see that the change has been made. I tried to reproduce the issue locally and I see that this appears in the fpm.log when I save the post: [21-Sep-2023 08:43:38 UTC] PHP Warning: Attempt to read property "post_content" on null in /var/www/html/web/app/plugins/acfml/classes/class-wpml-acf-repeater-shuffle.php on line 249 This points to WPML ACF apparently struggling with the repeaters custom fields attached to that custom post type. Link to a page where the issue can be seen: I expected to see: the "post edit" page with the message "page updated". Instead, I got the nginx server showing a "request has timed out" message. |
September 21, 2023 at 9:14 am #14436457 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I'm unsure if the PHP Warning: Attempt to read property is related to this problem. Can you please check for PHP errors in the following way? Please share WordPress's debug log (not WPML debug information). You can check this page for instructions. https://wpml.org/documentation/support/debugging-wpml/ To enable it, open your wp-config.php file and look for define('WP_DEBUG', false); Change it to: 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); After this, repeat the action that causes the problem on your site. The errors will be saved to a debug.log log file inside the /wp-content/ directory. Then please share the errors with us. Thanks, |
September 21, 2023 at 9:44 am #14436889 | |
alexandreP-37 |
Hello Itamar, I tried that. Nothing shows up in the wordpress debug log. The only log that shows something immediately upon clicking the post save button is the above-mentioned fpm.log with those lines pointing at the acfml class. |
September 21, 2023 at 3:40 pm #14440965 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for trying my suggestions. I'm unsure if the PHP warning that you are getting is related to the problem. Please check if the problem occurs when WPML and its add-ons are deactivated. Temporarily deactivate our plugins and check if the nginx server still shows a "request has timed out" message when editing the post with the ACF fields. |
September 25, 2023 at 9:13 am #14456191 | |
alexandreP-37 |
Hello, I desactivated the WPML plugins and the issue disappeared. |
September 25, 2023 at 2:31 pm #14459677 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Thanks for trying my suggestion. If you need further help, please share the access details to your site and FTP with me. Privacy and Security Policy |
September 28, 2023 at 8:46 am #14479851 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I get this message when I try to access your site. Can you please check and correct it? You can edit the previous private message with new access details if needed. |
September 28, 2023 at 10:01 am #14480331 | |
alexandreP-37 |
sorry, my bad: i pull the production database onto the staging one after creating your account. |
October 1, 2023 at 8:58 am #14492583 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi. Thanks, now I can access your site. I can see the problem on your site when trying to update this page. hidden link WPML is officially compatible with the Advanced Custom Fields (ACF) plugin. https://wpml.org/plugin/advanced-custom-fields/ https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/ I mention this because I'm confused about your issue. I'll explain now. When I check the plugins installed on your site, I do not see the Advanced Custom Fields or its Pro version installed on your site. I see two other active ACF extensions on your site: "Advanced Custom Fields: Font Awesome" and "Advanced Custom Fields: Table Field. Also, our bridge plugin "Advanced Custom Fields Multilingual" is installed and active. However, the main ACF plugin is not installed or active. Please see the attached screenshot. Since the main and official Advanced Custom Fields plugin is not installed and active on your site, you can deactivate our bridge plugin Advanced Custom Fields Multilingual and avoid this problem. I just tried it on your site, and it solves the problem. Regards, |
October 1, 2023 at 2:45 pm #14493381 | |
alexandreP-37 |
ACF Pro is installed as a "Must-Use plugin" : |
October 2, 2023 at 7:28 am #14494917 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, I see. This is unusual. I never saw a site with ACF set as a must-use plugin. I've continued to investigate the issue on your staging site. I found out that when only the following plugins are active, the problem occurs. (I left the staging site like this) - WPML Multilingual CMS When the Classic Editor plugin is deactivated, the problem does not occur. The Classic Editor plugin by WordPress Contributors is officially compatible with WPML. https://wpml.org/plugin/classic-editor/ Many sites are using it, and I don't remember any issues with it. I suspect the problem is with one of the must-use plugins you are using or that ACF is set as a must-use plugin. Please try the following. 1. Deactivate ACF and see if the problem persists. If it stops, please report it to me. 2. If the problem persists, then continue to deactivate each of the must-use plugins one by one when each time you check if the problem persists. 3. When the problem stops, report to me please which was the last must-use plugin you deactivated. |
October 2, 2023 at 9:33 am #14496499 | |
alexandreP-37 |
Hi, if I disable it i get a "invalid post type" error. It is logicial since the custom post type "guide" was created thanks to ACF custom post type feature. Perhaps the issue comes from ACFML not taking this (rather new) acf functionality yet in charge ? |
October 3, 2023 at 4:44 pm #14507493 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for sharing your findings with me. You wrote: "It is logicial since the custom post type "guide" was created thanks to ACF custom post type feature." I'm confused because it is empty on your site when I go to ACF -> Post Types. There are no listed post types there. Please see the attached screenshot. In any case, we do have a known issue with this new post-type feature, and WPML does not support it. You can read about this known issue here. |
October 5, 2023 at 10:20 am #14519429 | |
alexandreP-37 |
Hi again, So, I converted the ACF-dependent Custom Post Type into a php hardcoded Custom Post Type. So in the end, I opened the file (src/web/app/plugins/acfml/classes/class-wpml-acf-repeater-shuffle.php) incriminated by the log ([21-Sep-2023 08:43:38 UTC] PHP Warning: Attempt to read property "post_content" on null in /var/www/html/web/app/plugins/acfml/classes/class-wpml-acf-repeater-shuffle.php on line 249 and modified the code on line 249 from: [code] private function isChildOfRepeaterField( $key, $postId ) { [code] [/code] I'm happy to report that it solves the issue, the nginx timeout disappeared and the blog is correctly saved. Can you propagate this to the developers so that the ACFML plugin gets patched? |
October 6, 2023 at 7:03 am #14524445 | |
Itamar Supporter
Languages: English (English ) Hebrew (עברית ) Timezone: Asia/Jerusalem (GMT+02:00) |
Hi, and thanks for sharing your findings with us. I'll send your report to our second-tier supporters and let you know their comments. If they find it needs to be escalated to our developers, they will escalate this issue. |