Hi @hillbilly
In my testing, I actually included an exit() command too, like you. On the pages that are working fine, it performed as expected and exited out of the script (WSOD), but it did not perform on my troubled pages — which means the save_post function obviously isn’t being called for some reason…
@elliot – yes, I am able to do some debugging.
I tested the save_post function and can confirm save_post is NOT being called when saving the effected Pages. However, on the test page and other new pages in which the Repeater Fields plugin works properly, the save_post function is being called successfully.
Hi @elliot — no errors were returned with the debug mode set to true. I also took a look at the database and can confirm that no new post meta is being inserted into the _postmeta table upon saving the retailer pages.
Here’s something very peculiar though…
If I create a new page (titled “Testing Page”) and include the troubled ACF “Retailers” field on that page, it works fine on the new “Testing Page.” It’s just not working on the existing retailer pages (it used to work fine a few months ago). It shows the previous, existing retailer entries on each respective retailer page, but it’s not saving the new entries. Whereas, again, it works fine on the newly added “Testing Page.”
Furthermore, if I edit the content field (the main WordPress content field) on the retailer pages, those changes get saved. It’s just not inserting the post meta via the ACF Repeater field into the _postmeta table on the retailer pages.
It really is very peculiar. Any other thoughts?
PS. Despite this strange Repeater field problem, ACF is a really great product — excellent work, man!
Thanks for the quick reply, @elliot.
I don’t believe it’s a server limit. The amount of data I’m trying to save is very small. The only data on the Page (the only data I’m saving) is two instances of a single Repeater Field. Each instance of the Repeater Field contains 9 text fields (retailer name, address, city, state, phone, etc.).
Whenever I try to add an additional Repeater Field instance, it doesn’t save the new entry upon hitting “Update.” As I said though, it works fine on other sections of my site. It’s only the Retailers section that isn’t working.
Just a little more info: my retailers section is broken into separate pages, organized by region. New York, Florida, Germany, United Kingdom, France, etc. and each of those separate Pages contains the Repeater Field form. Each page only has a few instances (2 – 3) of the “Retailers” Repeater Field.
In other words, France for example only lists three retailer locations. It’s not a lot of data.
I’ll also add this: if I add all the relevant data manually (retailers_1_name, retailers_1_address, retailers_1_city, etc.) using WordPress’s Custom Fields box, everything works fine and it saves the data. It’s just not saving the data when I use the Repeater Field input box.
I’ll also say that it used to work fine a few months ago (the last time I tried updating the Retailers section). And again, it’s only my Retailers pages that aren’t saving properly, but the other sections where I use the Repeater Field plugin work fine. FAQs, Color Chart, etc.
Any thoughts based on all this information?
Thanks again.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.