Hi there, I’ve created quite a large flexible content field, with multiple layouts and nested repeaters and recently I’ve come into an issue with the conditional logic. I’ve set the conditional logic as follows on this flexible content field:
Show if post type equals post
Show if post type equals page
Show if post type equals knowledge-centre
The flexible content field is showing on posts or pages, but not on knowledge-centre posts.
When I edit a post/page/knowledge-centre, I get the following error at the top of the page:
Notice: Undefined index: operator in C:\xampp\htdocs\xxxxxxxx\wp-content\plugins\advanced-custom-fields\core\controllers\location.php on line 244
Notice: Undefined index: operator in C:\xampp\htdocs\xxxxxxxx\wp-content\plugins\advanced-custom-fields\core\controllers\location.php on line 248
Does anyone know what could be causing this issue?
Might be too late, but I just had a similar issue and found this thread. For me it was caused by max_input_vars being set too low in php.ini.
This setting controls how many variables will be accepted by PHP at once. Building a large ACF field group in the admin can require sending hundreds or thousands of variables to the server on save, so if max_input_vars is set too low and the field group you’re building is too big, your data gets truncated when you save it – in this case, probably in the middle of a conditional logic section.