• Hey! Thank you for this plugin. Normally it works like a charm, so I use it for many clients. But since yesterday I get an error at the website of one client and new shop clients don’t appear in ActiveCampaign.

    This is the error:

    `2022-08-15T08:34:45+00:00 CRITICAL Uncaught Error: Class ‘mtreherne\WC_AC_Hook\WC_AC_Hook_Integration’ not found in /home/website.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-integrations.php:41
    Stack trace:
    #0 /home/website.nl/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(642): WC_Integrations->__construct()
    #1 /home/website.nl/public_html/wp-includes/class-wp-hook.php(307): WooCommerce->init()
    #2 /home/website.nl/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #3 /home/website.nl/public_html/wp-includes/plugin.php(476): WP_Hook->do_action()
    #4 /home/website.nl/public_html/wp-settings.php(598): do_action()
    #5 /home/website.nl/public_html/wp-config.php(83): require_once(‘/home/website…’)
    #6 /home/website.nl/public_html/wp-load.php(50): require_once(‘/home/website…’)
    #7 /home/website.nl/public_html/wp-admin/admin.php(34): require_once(‘/home/website…’)
    #8 /home/website.nl/public_html/wp-admin/network/admin.php(13): require_once(‘/home/paperst in /home/website.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-integrations.php op de lijn 41`

    How can I fix this issue?

    Hope to hear from you soon ??

    All the best,
    Tamara

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

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

    (@mtreherne)

    Hi Tamara,

    I haven’t seen an error like this before so no quick answer I’m afraid.

    If the plugin is causing problems you will have to disable it for the time being (if you have not done this already).

    Can you get back to me with some info on the specific site. From the admin panel can you go to the ‘WooCommerce Status’ page are let me know the following:

    1) WooCommerce Version
    2) PHP Version
    3) Are there any faults reported on the status page?

    In advance of working out what advice to give you next, can you let me know whether you have ssh and/or ftp access to the site? Do you have a testing/staging version of the live site?

    Thanks,
    Matt

    Thread Starter tamarabelt

    (@tamarabelt)

    Hi Matt,

    Thank you for your fast response.

    WooCommerce version: 6.8.2
    PHP: 7.4.25

    I don’t see any other faults

    Thank you!
    Tamara

    Plugin Author mtreherne

    (@mtreherne)

    Ok thanks. As it is such a fundamental error, I’d like to start with checking exactly which plugin files you have installed for wc-ac-hook. Although unlikely that you have the wrong or incomplete files, but let’s start at the beginning.

    I am hoping you have SSH access. Please can you login to your web server.

    From your web root which (from the error log) I can see is /home/website.nl/public_html

    cd wp-content/plugins/wc-ac-hook

    ls -l . includes

    Then copy and paste the list of files to this thread. Can you also confirm from the administrator plugin page that you have version 1.4.1 of the wc-ac-hook plugin installed (or let me know which version you have). The version should not matter (in terms of causing the error), but I need to know which list of files I’m checking.

    One last question to ask at this point. I presume (correct me if I’m wrong) that you see the error when logged in as an administrator? When the plugin is active, does the error get reported on every admin page or only specific pages or events e.g. when you go to the settings for the plugin?

    Thanks,
    Matt

    Thread Starter tamarabelt

    (@tamarabelt)

    Hi Matt,

    I can see the next files in there:
    Main-class.php
    settings.php
    sync-contact.php

    I’m using 1.4.1.

    We received the error as an email.

    All the best,
    Tamara

    Plugin Author mtreherne

    (@mtreherne)

    This is the list I was looking for to double check file sizes. It is very unlikely you have anything different.

    wp-content/plugins/wc-ac-hook
    -rw-rw-r– 1 www-data www-data 32 Oct 19 2021 index.php
    -rw-rw-r– 1 www-data www-data 10867 Oct 19 2021 readme.txt
    -rw-rw-r– 1 www-data www-data 204 Oct 19 2021 uninstall.php
    -rw-rw-r– 1 www-data www-data 1864 Oct 19 2021 wc-ac-hook.php

    wp-content/plugins/wc-ac-hook/includes
    -rw-rw-r– 1 www-data www-data 8668 Oct 19 2021 main-class.php
    -rw-rw-r– 1 www-data www-data 4579 Oct 19 2021 settings.php
    -rw-rw-r– 1 www-data www-data 3443 Oct 19 2021 sync-contact.php

    Now you say that you were emailed the debug log. I guess my question is did the error only get logged once (the error you cut and paste was on 15 August)?

    If it is logged many times on different days, that will help isolate the problem. If you know what action will trigger the error even better e.g. if you activate the plugin and go to the wc-ac-hook settings page does it show the page or log the error?

    Thanks,
    Matt

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CRITICAL Uncaught Error’ is closed to new replies.