When I try to publish one of the pages of my website, it leads me to http://www.example.com/wp-admin/post.php.
It seems I don’t encounter this issue with other pages, only with this page, and copy of this one. No problem with posts, but with a few pages created by this CPT.
Is there a large number of fields and content on this page in the admin? If so then you’re likely seeing a timout issue. Unfortunately there isn’t any fix for this. The problem is summed up very well by another recent topic https://support.advancedcustomfields.com/forums/topic/better-performance-when-saving-large-numbers-of-fields/
But there is a work around. It goes like this
1) Save post
2) Wait for the timeout
3) Click the back button in your browser
4) DO NOT CLICK THE UPDATE POST / PUBLISH BUTTON sorry for yelling, but this is very important
5) Click on the reload button in your browser, keep doing this until you see all of the changes you made.
Why does this work? Because of the way PHP works, it keeps on processing the submitted data even after a time out. PHP does not know that your browser timed out until it finishes and tries to send you information. It won’t try to send you information until it’s finished with what it’s doing.
Thank you John for your explanations and for this smart trick (but doesn’t work in my situation). It’s very clear for me how timeout issues work. 🙂
Yes, there’s a lot of fields (around 30 blocks in the screen options) but most of them are empty.
Now, when going back to http://www.example.com/wp-admin/post.php I just get this message:
Warning: in_array() expects parameter 2 to be array, string given in /home/xxxxxx/xxxxxx/wp-content/themes/wplmsblankchildtheme/functions.php on line 179 Fatal error:  operator not supported for strings in /home/xxxxxx/xxxxxx/wp-content/themes/wplmsblankchildtheme/functions.php on line 183
The two lines concerned:
// bail early if the current $post_id is already found in selected post's $value2 if( in_array($post_id, $value2) ) continue; // append the current $post_id to the selected post's 'action-bonne_pratique' value $value2 = $post_id;
I followed this tutorial: https://www.advancedcustomfields.com/resources/bidirectional-relationships/
I don’t have this message for another post (same CPT). ^^
lol Ok, ok John. I’m reinstalling now (and deleting those scripts). 🙂
At first, this error text didn’t show, so it’s normal you thought it could be a timeout error.
I still have the error though. But now, it’s pure blank page (no more error text). I reuploaded the functions.php file with the script from the tutorial, and it is still pure white page (no text error).
Make sure that you’re using my plugin on ACF5. If you’re using ACF4 then you’ve basically got to do the coding yourself with either Elliot’s example or mine https://github.com/Hube2/acf-filters-and-functions/blob/master/acf-reciprocal-relationship.php. I’ve just updated my plugin and added code that will disable it if ACF5 is not active.
The topic ‘Blank page after publishing on particular pages’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!