We’re running WP 3.6 and ACF 4.2.2 and ACF Repeater 1.0.1.
We get the error “Uncaught ReferenceError: wp is not defined” on the backend when loading a nested repeater.
I have a nested repeater (attached xml export) that appears to be causing this error. Pages that have a single repeater load fine. This page loads until the 1st nested repeater should display, then throws the error. I’m not exactly sure when the error popped up, but it’s been since we upgraded to 3.6/4.2.2/1.0.1.
Any help is greatly appreciated.
Here’s the xml file…
looks like I can’t upload an xml file. sorry.
I forgot to mention that our homepage is non-functional until we get this issue resolved.
I’ve added a new single-depth repeater to this group (above the troublesome repeater field) and it works. I re-created the troublesome multi-depth repeater field and it doesn’t work. It throws the same error as before.
Edit: I’ve narrowed the problem down further. The problem only occurs when I add a “post object” field into the 2nd-level repeater field. If I change the post object field to a text field, everything works. Weird…
The post object field is pretty basic and will load in a lot of data when repeated many times…
No, this is not the issue.
this is the issue:
I’ve narrowed the problem down further. The problem only occurs when I add a “post object” field into the 2nd-level repeater field. If I change the post object field to a text field, everything works. Weird…
+1 to solve this issue…
We can verify that this is the issue!
This happens when a repeater field includes a post object field.
(We also see that in the case where repeater has a post object the memory load on the server goes to the sky, and in some cases it breaks the limit:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /var/www/alwaysfootball.dk/public_html/wp-includes/meta.php on line 578
This could be related – but not verified)
You must be logged in to reply to this topic.
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!
© 2020 Advanced Custom Fields. Subscribe