• 2021-10-16T07:55:21+00:00 CRITICAL Uncaught Error: Class ‘mtreherne\WC_AC_Hook\ActiveCampaign’ not found in /home/sysplatform/domains/sysplatform.nl/public_html/wp-content/plugins/wc-ac-hook/includes/sync-contact.php:29 Stack trace: #0 /home/sysplatform/domains/sysplatform.nl/public_html/wp-content/plugins/wc-ac-hook/includes/main-class.php(106): mtreherne\WC_AC_Hook\WC_AC_Hook_Sync->__construct(Array) #1 /home/sysplatform/domains/sysplatform.nl/public_html/wp-content/plugins/wc-ac-hook/includes/main-class.php(75): mtreherne\WC_AC_Hook\WC_AC_Hook->order_status_change(19972, NULL, ‘pending’) #2 /home/sysplatform/domains/sysplatform.nl/public_html/wp-includes/class-wp-hook.php(305): mtreherne\WC_AC_Hook\WC_AC_Hook->order_created(19972) #3 /home/sysplatform/domains/sysplatform.nl/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /home/sysplatform/domains/sysplatform.nl/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /home/sysplatform/domains/sysplatform.nl/publ in /home/sysplatform/domains/sysplatform.nl/public_html/wp-content/plugins/wc-ac-hook/includes/sync-contact.php op de lijn 29

    How do i make sure this error doesn’t appear anymore?

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

    (@mtreherne)

    I’m pretty sure I understand the cause of the problem but to confirm, please can you check that you have another plugin installed that integrates with ActiveCampaign? If you are not sure then please can you send a list of the plugins you have installed.

    It is a simple fix if this is the case that I will release later today or tomorrow.

    In the meantime I suggest you disable the wc-ac-hook plugin (if you have not done this already), until a fix is available.

    Many thanks,
    Matthew

    Thread Starter atMaarten

    (@atmaarten)

    Hi Matthew!

    Yes, i wrote a small plugin which registers people on registering on the website. And i did disable the plugin in the meantime, thanks for the suggestion. ??

    Plugin Author mtreherne

    (@mtreherne)

    I will release a fix, but if you want to make a quick fix yourself, then you can apply this code change immediately.

    In the following file:

    /home/sysplatform/domains/sysplatform.nl/public_html/wp-content/plugins/wc-ac-hook/includes/sync-contact.php

    Change line 27 from:

    if (!class_exists(‘ActiveCampaign’)) require_once dirname(__FILE__).’/../activecampaign-api-php/includes/ActiveCampaign.class.php’;

    to:

    if (!class_exists(__NAMESPACE__ . ‘\ActiveCampaign’)) require_once dirname(__FILE__).’/../activecampaign-api-php/includes/ActiveCampaign.class.php’;

    If you do this then please let me know it solves your problem (I’m pretty certain it will). Either way I will release a new version of plugin with this fix in a day or so.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on checkout’ is closed to new replies.