• Resolved jricesystemsinsight

    (@jricesystemsinsight)


    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 367

    Am I not using this field correctly or is this an actual issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the report!

    The error says that an important ACF function is missing. In fact, acf_decode_post_id() function has been added in ACF Pro 5.7.11, so you’re probably using an older version.

    I suggest you to update to the latest ACF Pro version. The latest update brings some significant performance optimizations and compatibility with WP 5.X version!

    I’ll bump the ACF Extended required version to ACF Pro 5.7.11.

    Regards.

    Thread Starter jricesystemsinsight

    (@jricesystemsinsight)

    Thanks this was the issue! I didn’t realize ACF Pro was required or else I would have updated it.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m glad it fixed the issue!

    If you enjoy ACF Extended, feel free to submit a review, it always helps ??

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bidirectional Field causing critical error’ is closed to new replies.