Home › Forums › Add-ons › Repeater Field › Relationship field not saving values
Hello again @elliot
This is a follow up topic from this one: http://support.advancedcustomfields.com/forums/topic/page-link-and-page-object-not-working/
Since after I changed the field to relationship the issue now is that it does not save the values..
I have a relationship field inside a repeater field and it works as it should when editing the page, but on save it does not save the value and the “selected-area” is empty (where my selected page should be).
I’ve tried creating another relationshipfield in the repeater which has the same issue, and a relationship field outside of the repeater which works.
Could it be that this is also a result of php memory not being enough?
Hi @Jonathan
I doubt that it will be a memory issue. But you can test this by creating a new page with a simple field group on it with just a repeater and relationship sub field.
The relationship field only saves post_id values, so I doubt it is timing out.
How are you with debugging? Can you edit the relationship field file and play around with the update_value function?
Just do some simple print_r and die debugging.
Hey,
Alright I suppose you’re right.
Yes I can do some debugging in the relationship field. It does not seem to work too well with print_r and die tho but setting all debugging to true I can do it a bit differently.
Hi @oneguy
I am unable to understand the website as I only read/speak english.
What version of WP, ACF are you running?
Do you have debug mode on?
I’m having the same problem with WP 3.6, ACF 4.2.1 and Flexible Content Field 1.0.2. I’ve tried creating a new flexible field with a relationship field inside it. After putting error_log(var_export($value, true)); into line 891 of core/fields/relationship.php I can see nothing in my error log wrong with the values that are being passed through the function — but no values are being saved.
I reverted to ACF 4.2.0 and am not experiencing this issue in that version.
Hi guys.
Please see
http://support.advancedcustomfields.com/forums/topic/4-2-1-update-deletes-all-relationship-values/
For solution
The topic ‘Relationship field not saving values’ 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!
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.