• Resolved quakeboy

    (@quakeboy)


    Here are some debug logs that might help the author.
    Thanks for the excellent work again. Plugin used to work like a breeze.

    PHP Fatal error: Cannot redeclare class AC_Connector in /home/english1/public_html/wp-content/plugins/wc-ac-hook/activecampaign-api-php/includes/Connector.class.php on line 5

    PHP Notice: Undefined variable: form_signup in /home/english1/public_html/wp-content/plugins/wc-ac-hook/wc-ac-hook.php on line 111

    billing_email was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->process_order_without_payment, WC_Order->payment_complete, WC_Order->save, WC_Order->status_transition, do_action(‘woocommerce_order_status_changed’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AC_Hook->order_status_change, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    PHP Notice: Undefined variable: sync_contact in /home/english1/public_html/wp-content/plugins/wc-ac-hook/wc-ac-hook.php on line 111
    Ignore

    status was called incorrectly. Order properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_checkout’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::checkout, WC_Checkout->process_checkout, WC_Checkout->create_order, do_action(‘woocommerce_checkout_update_order_meta’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AC_Hook->order_created, WC_Abstract_Legacy_Order->__get, wc_doing_it_wrong. This message was added in version 3.0.

    post was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_get_refreshed_fragments’), WP_Hook->do_action, WP_Hook->apply_filters, call_user_func_array, WC_AJAX::get_refreshed_fragments, apply_filters(‘woocommerce_add_to_cart_fragments’), WP_Hook->apply_filters, call_user_func_array, woocommerce_header_add_to_cart_fragment, require_once(‘/themes/rise/inc/templates/woocommerce-navbar-mini-cart.php’), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter quakeboy

    (@quakeboy)

    Some more info

    – Store is setup to sell virtual downloadable products (so auto-completes the orders I assume)

    – When I tried to manually change status from completed to processing, it was fine. When I moved from processing to completed manually, it crashed with 500 error code. But the order completed email was triggered. So activity on AC though.

    Thread Starter quakeboy

    (@quakeboy)

    Also

    Add/Update Contact: Add/Update Contact When order status is processing (rather than completed) – IS UNCHECKED
    Signup to Marketing is NO
    Debug log is enabled.
    Marketing form ID empty.

    • This reply was modified 7 years, 4 months ago by quakeboy.
    Plugin Author mtreherne

    (@mtreherne)

    Hi there,

    If you have not already, you must disable the wc-ac-hook plugin for the time being, since this is a fatal error which will stop further processing.

    The following is a technical explanation, please skip if you are not familiar with PHP, and just get back to me on the request below to send through plugin information.

    You are getting a fatal error because the wc-ac-hook code is trying to declare the class ‘AC_Connector’ (when it has already been included and declared). The ‘AC_Connector’ class is the parent class of the ActiveCampaign API, which is used by wc-ac-hook. Typically the API is instantiated as the ‘ActiveCampaign’ class which extends ‘AC_Connector’.

    Now the wc-ac-hook code checks for the ‘ActiveCampaign’ class, since it may have been already declared by the ActiveCampaign plugin (or any other plugin that uses the AC API). If so it should not include and declare the API classes again.

    So somehow your installation seems to be including a file which declares ‘AC_Connector’ but not ‘ActiveCampaign’. I can’t explain that just yet, since it usually happens the other way round i.e. the ‘ActiveCampaign’ class is included which includes and extends the ‘AC_Connector’ class.

    The best starting point to investigate this further is to check which plugins and version you have installed. The easy way to do this is to go to:

    1. WooCommerce > System Status
    2. click on ‘Get system report’
    3. ‘Copy for Support’ to cut
    4. Paste it into this forum.

    It has lots of technical information but nothing compromising to your privacy or security.

    If you know when the problem started and that corresponds to the date that you might have installed or updated any particular plugins that would be very useful to know.

    Regards,
    Matthew

    Thread Starter quakeboy

    (@quakeboy)

    Hey Matthew!

    I solved it. Your message gave me a clue about other plugins.

    The reason was that I had installed
    https://campaignplugins.com/downloads/wp-activecampaign-api
    instead of
    https://www.ads-software.com/plugins/activecampaign-subscription-forms/

    I had used that plugin, because it made event tracking easier. But for now I can sacrifice event tracking.

    Thank you for timely support and amazing work!
    I did make money with your plugin as a freelancer, so I would be glad to pay/donate, buy you a beer etc ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin stopped working (maybe after WooCommerce update)’ is closed to new replies.