• Resolved striffly

    (@striffly)


    Hello

    When I edit ACF fields, I sometimes get this error randomly:

    ErrorException:
    Trying to get property 'post_type' of non-object
    
      at /httpdocs/web/app/plugins/w3-total-cache/Util_Environment.php:1221
      at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
         (/httpdocs/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
      at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
         (/httpdocs/web/app/plugins/w3-total-cache/Util_Environment.php:1221)
      at W3TC\Util_Environment::is_custom_post_type()
         (/httpdocs/web/app/plugins/w3-total-cache/PgCache_Flush.php:79)
      at W3TC\PgCache_Flush->flush_post()
         (/httpdocs/web/app/plugins/w3-total-cache/PgCache_Plugin.php:356)
      at W3TC\PgCache_Plugin->w3tc_flush_post()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:309)
      at WP_Hook->apply_filters()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:331)
      at WP_Hook->do_action()
         (/httpdocs/web/wp/wp-includes/plugin.php:476)
      at do_action()
         (/httpdocs/web/app/plugins/w3-total-cache/CacheFlush_Locally.php:156)
      at W3TC\CacheFlush_Locally->flush_post()
         (/httpdocs/web/app/plugins/w3-total-cache/CacheFlush.php:122)
      at W3TC\CacheFlush->flush_post()
         (/httpdocs/web/app/plugins/w3-total-cache/Util_AttachToActions.php:93)
      at W3TC\Util_AttachToActions->on_post_change()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:307)
      at WP_Hook->apply_filters()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:331)
      at WP_Hook->do_action()
         (/httpdocs/web/wp/wp-includes/plugin.php:476)
      at do_action()
         (/httpdocs/web/wp/wp-includes/post.php:7408)
      at clean_post_cache()
         (/httpdocs/web/wp/wp-includes/post.php:3461)
      at wp_delete_post()
         (/httpdocs/web/app/plugins/advanced-custom-fields-pro/includes/acf-field-functions.php:1115)
      at acf_delete_field()
         (/httpdocs/web/app/plugins/advanced-custom-fields-pro/includes/admin/admin-field-group.php:485)
      at acf_admin_field_group->save_post()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:309)
      at WP_Hook->apply_filters()
         (/httpdocs/web/wp/wp-includes/class-wp-hook.php:331)
      at WP_Hook->do_action()
         (/httpdocs/web/wp/wp-includes/plugin.php:476)
      at do_action()
         (/httpdocs/web/wp/wp-includes/post.php:4673)
      at wp_insert_post()
         (/httpdocs/web/wp/wp-includes/post.php:4775)
      at wp_update_post()
         (/httpdocs/web/wp/wp-admin/includes/post.php:426)
      at edit_post()
         (/httpdocs/web/wp/wp-admin/post.php:227)
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @striffly

    Thank you for reaching out and I am happy to assist you with this.
    It seems that there is a problem with the hook that should flush the current post.
    Can you please try manually purging the URL and see if the problem persists?
    THanks!

    Thread Starter striffly

    (@striffly)

    Hello, thank you for your answer

    As I explained it is not on a particular URL but when editing fields from ACF (so from the back-office).

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @striffly

    Thank you for the information.
    I understand that thanks. Let me try to replicate the problem and I’ll get back to you once I have more information.
    Thanks!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @striffly

    Thank you for your patience.
    I’ve created a Github issue on your behalf in your GH repository.
    Please make sure to follow the progress of the issue regularly.
    Thank you again for your patience and for taking the time to report this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to get property ‘post_type’ of non-object’ is closed to new replies.