Viewing 1 replies (of 1 total)
  • shirgans

    (@shirgans)

    I have found a workaround for this, but it is “dirty”, meaning, next time you will update ACF, it will be overwritten:

    on plugins/advanced-custom-fields/api.php, before line 23, add the following code:
    if (is_object($post_id)){ $post_id = $post_id->id;}

    Same goes for before line 56 (function load_value) on the file plugins/advanced-custom-fields/core/fields/_functions.php

    if (is_object($post_id)){ $post_id = $post_id->id;}

    Hope it will help someone `

Viewing 1 replies (of 1 total)

The topic ‘Catchable fatal error on search’ is closed to new replies.