Support » Plugin: Content Aware Sidebars - Unlimited Widget Areas » Content Aware Pro and ACF Condition

  • Resolved iTerentius

    (@iterentius)


    I’m getting this error on only one page that doesn’t use a sidebar, but does have flexible Advanced Custom Fields. This is pretty important as it’s our live corporate site. The only thing I can do is either shut down either the Content Aware Pro plugin or the ACF Pro plugin. Even deleting all of the sidebars doesn’t work, only disabling either plugin:

    Fatal error: Uncaught Error: Object of class WP_Post could not be converted to string
    in /var/www/vhosts/medicomhealth.com/wp-content/plugins/content-aware-sidebars-premium/lib/content-aware-premium/lib/wpca-acf-condition/condition.php on line 108

    Call stack:

    WPCAModule_acf::format_value()
    wp-content/plugins/content-aware-sidebars-premium/lib/content-aware-premium/lib/wpca-acf-condition/condition.php:56
    WPCAModule_acf::get_context_data()
    wp-content/plugins/content-aware-sidebars-premium/lib/wp-content-aware-engine/core.php:410
    WPCACore::get_conditions()
    wp-content/plugins/content-aware-sidebars-premium/lib/wp-content-aware-engine/core.php:545
    WPCACore::get_posts()
    wp-content/plugins/content-aware-sidebars-premium/lib/content-aware-premium/app.php:673
    CAS_App_Pro::prepare_infusion_css()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-includes/script-loader.php:2294
    wp_enqueue_scripts()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:478
    do_action()
    wp-includes/general-template.php:2884
    wp_head()
    wp-content/themes/genesis/header.php:35
    require_once()
    wp-includes/template.php:723
    load_template()
    wp-includes/template.php:672
    locate_template()
    wp-includes/general-template.php:41
    get_header()
    wp-content/themes/genesis/lib/framework.php:24
    genesis()
    wp-content/themes/mhi-genesis-sample-master/archive-resources.php:129
    include()
    wp-includes/template-loader.php:106
    require_once()
    wp-blog-header.php:19
    require()
    index.php:17

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thanks for the fix Joachim!

    I was told this was a known issue with the complexity of Advanced Custom Fields (because of their relational fields option). Joachim provided a plugin to disable checking on ACF conditions (which thankfully we aren’t using yet), which solved the issue until CAS comes out with a formal release fix.

    Very cool. Love the plugin, love the support!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.