• Resolved driard

    (@driard)


    Hi,

    Since my last update today, I can’t access the admin or login page anymore. HomePage still works, but product, cart and other pages are affected.

    Here is the error I get on the web page:

    Fatal error: Uncaught Error: Call to undefined function wc_orders_count() in /home/synchro9/public_html/wp-content/plugins/woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php:136 Stack trace: #0 /home/synchro9/public_html/wp-includes/class-wp-hook.php(286): WC_Google_Analytics_Integration->show_ga_pro_notices(”) #1 /home/synchro9/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /home/synchro9/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /home/synchro9/public_html/wp-settings.php(450): do_action(‘init’) #4 /home/synchro9/public_html/wp-config.php(102): require_once(‘/home/synchro9/…’) #5 /home/synchro9/public_html/wp-load.php(37): require_once(‘/home/synchro9/…’) #6 /home/synchro9/public_html/wp-blog-header.php(13): require_once(‘/home/synchro9/…’) #7 /home/synchro9/public_html/index.php(17): require(‘/home/synchro9/…’) #8 {main} thrown in /home/synchro9/public_html/wp-content/plugins/woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php on line 136

    and the content of the php_errorlog is the following:
    [24-Oct-2018 12:34:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function wc_orders_count() in /home/synchro9/public_html/wp-content/plugins/woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php:136
    Stack trace:
    #0 /home/synchro9/public_html/wp-includes/class-wp-hook.php(286): WC_Google_Analytics_Integration->show_ga_pro_notices(”)
    #1 /home/synchro9/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /home/synchro9/public_html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /home/synchro9/public_html/wp-settings.php(450): do_action(‘init’)
    #4 /home/synchro9/public_html/wp-config.php(102): require_once(‘/home/synchro9/…’)
    #5 /home/synchro9/public_html/wp-load.php(37): require_once(‘/home/synchro9/…’)
    #6 /home/synchro9/public_html/wp-blog-header.php(13): require_once(‘/home/synchro9/…’)
    #7 /home/synchro9/public_html/index.php(17): require(‘/home/synchro9/…’)
    #8 {main}
    thrown in /home/synchro9/public_html/wp-content/plugins/woocommerce-google-analytics-integration/woocommerce-google-analytics-integration.php on line 136

    Through FTP, I have deleted the plugins/woocommerce-google-analytics-integration folder, but I still get the exact same error…

    any help would be extremely welcome.

    thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter driard

    (@driard)

    Actually, if you google for the following text:
    fatal error “woocommerce-google-analytics-integration”
    and filter on sites updated during the last week, you will find a number of other sites with the exact same issue.

    Thread Starter driard

    (@driard)

    I renamed the /plugins folder to /plugins2, logged in to my admin without problem, then proceeded to add again plugin folders 1 by 1. Everything works fine… and the issue seems to be coming from ithemes security “hide backend” feature as the standard login page works without any issue. Only the diverted login URL created by iThemes security seems to have this problem.
    I’ll try to get in touch with ithemes.

    Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Howdy!

    We’ve identified this as a bug, details here: https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/129

    You can follow that issue for updates on a fix.

    You identified the bug but not how to fix it.

    Hi!

    I have the same problem and I can no longer login to admin panel. The website is a blank page and the error:
    [25-Oct-2018 01:34:10 UTC] PHP Warning: scandir(/home/getaferm/public_html/wp-content/uploads/avia_instagram_cache/): failed to open dir: No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 01:34:10 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 03:44:48 UTC] PHP Warning: scandir(/home/getaferm/public_html/wp-content/uploads/avia_instagram_cache/): failed to open dir: No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 03:44:48 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 03:44:48 UTC] PHP Warning: scandir(/home/getaferm/public_html/wp-content/uploads/avia_instagram_cache/): failed to open dir: No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 03:44:48 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 05:50:27 UTC] PHP Warning: scandir(/home/getaferm/public_html/wp-content/uploads/avia_instagram_cache/): failed to open dir: No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 05:50:27 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 08:02:19 UTC] PHP Warning: scandir(/home/getaferm/public_html/wp-content/uploads/avia_instagram_cache/): failed to open dir: No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019
    [25-Oct-2018 08:02:19 UTC] PHP Warning: scandir(): (errno 2): No such file or directory in /home/getaferm/public_html/wp-content/themes/enfold/framework/php/class-framework-widgets.php on line 3019

    Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Howdy!

    Can you try the following steps:

    1. Temporarily rename the woocommerce-google-analytics-integration plugin folder to restore site (ex: temp-woocommerce-google-analytics-integration)
    2. Reactivate WooCommerce
    3. Restore the folder name to woocommerce-google-analytics-integration

    Please let us know how that goes, and if it removes the fatal error message.

    You can also report your findings directly on the issue here: https://github.com/woocommerce/woocommerce-google-analytics-integration/issues/129

    Zach W

    (@dynamiczach)

    Automattic Happiness Engineer

    Any updates on this? Can you try the steps listed above to see if that helps?

    That worked, thanks.
    But why the error in this first place?
    This was following an update of woocommerce

    • This reply was modified 6 years, 4 months ago by adamsaltiel.
    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there,

    It sounds like it could be occurring if an upgrade resulted in WooCommerce being deactivated, as google-analytics 1.4.5 will cause a fatal failure without WooCommerce. We haven’t heard back from the other commenters, so we don’t know more right now.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal Error on latest update’ is closed to new replies.