• Resolved Uldis

    (@uldix)


    Hello, here is a log…

    2024-02-15T15:04:25+00:00 CRITICAL Uncaught Error: Call to a member function get_error_message() on array in /home/…/public_html/wp-content/plugins/es-woocommerce-activecampaign/class-es-wc-integration-activecampaign.php:613
    Stack trace: 0 /home/…/public_html/wp-content/plugins/es-woocommerce-activecampaign/class-es-wc-integration-activecampaign.php(53): ESWC\ES_WC_Integration_ActiveCampaign->get_ac_lists() 1 /home/…/public_html/wp-content/plugins/woocommerce/includes/class-wc-integrations.php(41): ESWC\ES_WC_Integration_ActiveCampaign->__construct() 2 /home/…/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(710): WC_Integrations->__construct() 3 /home/…/public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init(”) 4 /home/…/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 5 /home/…/public_ht in /home/…/public_html/wp-content/plugins/es-woocommerce-activecampaign/class-es-wc-integration-activecampaign.php on line 613

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author equalserving

    (@equalserving)

    Hello,

    Can you please verify that the correct ActiveCampaign API URL and Key has been entered in the admin panel.

    Thread Starter Uldis

    (@uldix)

    Both websites has been running for years and no changes has been done to the setup. My first guess was must be something from AC side with lists, but then 2 independent websites and 2 independent AC accounts got same issue… Decided to report here!

    P.S. I know that AC is fiddling around with all domain authentication that you must be aware off… So if you pointing this out to Api integration… Still could be that they doing something on their side? Only both errors came in different times, even different days… Strange….

    Plugin Author equalserving

    (@equalserving)

    It may be possible that the connection is timing out before an error response is returned to your website

    The following code would extend the timeout duration. Can you add the following code to your theme’s functions.php file?

    <?php
    /**
     * Extend http timeout duration to 60 seconds as per ActiveCampaign 
     * 
     * @param int $timeout The timeout duration in seconds. Default is 5.
     *
     * @return int The filtered timeout duration in seconds.
     */
    function __extend_http_request_timeout( $timeout ) {
        return 60; // seconds
    }
    add_filter( 'http_request_timeout', '__extend_http_request_timeout' );
    

    Thread Starter Uldis

    (@uldix)

    Hi! Sorry for late reply I had nighttime here. Ok, so let me add my input here a bit more. It is gonna be hard to catch this one as it triggered just once and that’s all. I looked at error timing in the log (by the way recent Woo update changed the look of log section, much better now) and it does not match with any of orders in that day not even close.

    So what is triggered this fault? I understand it failed to get ac list. And you think it could be because it timed out? If so I would put my bet still that issue then most likely came from AC side instead. That platform is well known for being slow that could cause response timing on our side right?

    Now like I said I am not sure what triggered this action and if it failed to load the list we are not sure if extending timing actually will fix the issue. And then again when and if I will see another error. All my concerns is that nothing was drastically changed/added/increased in data amount to create such problem neither on WP or AC side. And if I will extend timeout will it won’t affect my website load times in specific situations?

    Just want to make sure we are looking in the right direction here. And would like to hear your thoughts. Thanks

    Thread Starter Uldis

    (@uldix)

    Ok, I have another incident… Yet another WP and another AC account, they are not related to the previous 2 websites. The difference this time is an Error line… 702… Looking at the code this time it is related to the Tags list… And again looking at timing not related to orders. There were orders on that day, but not at the time the error showed up.

    Something fishy going on! ?? And I have no incidents anymore on the websites I caught it the first time.

    Plugin Author equalserving

    (@equalserving)

    Does the time stamp match when you are going to the plugin’s integration configuration page?

    Thread Starter Uldis

    (@uldix)

    I am getting forwarded email error reports from clients, so I have not been on settings page neither they.

    If I go over settings page all seems ok, I can even refresh lists/tags and they do appear as should. No issues here…

    Plugin Author equalserving

    (@equalserving)

    We have not gotten any reports from others regarding this issue nor are we seeing the problem on our own servers.

    Thread Starter Uldis

    (@uldix)

    I see that, like I said it is strange and just because I happens only once I am not concern that much. I am fine to keep this topic open for some time and see if there are anyone else comes with the same problem.

    I will keep posted if I spot something new related to this!

    Plugin Author equalserving

    (@equalserving)

    Hello,

    I haven’t heard anything more on this. Closing the ticket.

    Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘v2.1.3 on 2 different websites got critical error’ is closed to new replies.