Bidirectional Field causing critical error
-
I have a post type “attorney” with a post object field “practice_areas”. You can select “Practice Area” Post types from it, “allows multiple values” and saves as “post ID”. Vice Versa, I have a post type “Practice Areas” with a post object field “practicing_attorneys”, allows you to select “Attorneys” and “multiple values” and saves as “post ID”. I have also set this as bidirectional with the other post object field.
When I am editing either post type in wordpress It correctly pulls the information from each, the first had been created and data stored long before it was bidirectional with the other field which is new. However, whenever I try to save a post I get a critical error from wordpress and this stack trace:
Fatal error: Uncaught Error: Call to undefined function acf_decode_post_id() in /var/www/dev.{my-website}.com/wp-content/plugins/acf-extended/includes/fields-settings/bidirectional.php:367
Stack Trace
1. acfe_bidirectional_update_value(Array, 161, Array)/var/www/dev.{my-website}.com/wp-includes/class-wp-hook.php:290
2. WP_Hook->apply_filters(Array, Array)/var/www/dev.{my-website}.com/wp-includes/plugin.php:206
3. apply_filters(‘acf/update_valu…’, Array, 161, Array, Array)/var/www/dev.{my-website}.com/wp-content/plugins/advanced-custom-fields-pro-master/includes/api/api-value.php:436
4. acf_update_value(Array, 161, Array)/var/www/dev.{my-website}.com/wp-content/plugins/advanced-custom-fields-pro-master/includes/acf-form-functions.php:167
5. _acf_do_save_post(161)/var/www/dev.{my-website}.com/wp-includes/class-wp-hook.php:288
6. WP_Hook->apply_filters(NULL, Array)/var/www/dev.{my-website}.com/wp-includes/class-wp-hook.php:312
7. /var/www/dev.{my-website}.com in /var/www/dev.{my-website}.com/wp-content/plugins/acf-extended/includes/fields-settings/bidirectional.php on line 367Am I not using this field correctly or is this an actual issue?
- The topic ‘Bidirectional Field causing critical error’ is closed to new replies.