Home › Forums › Bug Reports › Notice: Undefined index: value (…)\core\location.php on line 397 › Reply To: Notice: Undefined index: value (…)\core\location.php on line 397
You can you submit a new ticket for that https://support.advancedcustomfields.com/new-ticket/. But the problem isn’t that there is a non-existent post, the problem is that the value is not set at all. Here is an example:
this location rule will not create an error, but it can never be met since there will never be a post with an ID of 0
// ..... 'location' => array ( array ( array ( 'param' => 'post', 'operator' => '==', 'value' => '0', ), ), ), // .....
However, this location rule will cause the error you posted because the value parameter is not included
// ..... 'location' => array ( array ( array ( 'param' => 'post', 'operator' => '==', ), ), ), // .....
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!
The new features in ACF 6.1 mean we’ve nearly doubled the number of translatable strings, and we need help translating them into your language. See how translations are progressing and how you can help at the link below. https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 17, 2023
© 2023 Advanced Custom Fields.