• Resolved jaino

    (@jaino)


    Hello. I;ve updated woocommerce to the latest version of it, as it has some problems with other plugins installed.
    After the update it gave me fatal error, as below:

    Warning: Use of undefined constant WC_ABSPATH – assumed ‘WC_ABSPATH’ (this will throw an Error in a future version of PHP) in /wp-content/plugins/woocommerce/includes/class-wc-geolocation.php on line 305

    Warning: require_once(WC_ABSPATHincludes/class-wc-geolite-integration.php): failed to open stream: No such file or directory in /wp-content/plugins/woocommerce/includes/class-wc-geolocation.php on line 305

    Fatal error: require_once(): Failed opening required ‘WC_ABSPATHincludes/class-wc-geolite-integration.php’ (include_path=’.:/:/usr/local/php73/lib/pear’) in /wp-content/plugins/woocommerce/includes/class-wc-geolocation.php on line 305

    I was trying to find the line 305 in the file mentioned to see if i can do anything about it – put the problem is, there is no such line. It ends at 264, and i cant even find any similar record of WC_ABSPATH in the file.

    Need help here guys, seriously.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    Usually we see these types of errors when a theme or plugin has an update or a compatibility issue with the most recent version of WooCommerce. Given that this started occurring after you updated WooCommerce, I would guess that it’s a plugin incompatibility.

    Here are some troubleshooting steps you can take to resolve this issue:

    1.) To begin, please make sure that your theme and all plugins are up to date.

    2.) Try to deactivate all the plugins except for WooCommerce to see if the issue persists. If the problem goes away, re-activate and test each plugin to see if you can determine which plugin the problem originates from.

    3.) If the above does not resolve the issue, try switching your theme to the Storefront theme (https://woocommerce.com/storefront/) and see if it works correctly. If it does, you’ll want to contact your theme’s developers and see if they have a fix/update.

    • This reply was modified 5 years, 7 months ago by Missy a11n.
    • This reply was modified 5 years, 7 months ago by Missy a11n.
    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error after Woocommerce update’ is closed to new replies.