• Resolved wrip

    (@wrip)


    I updated to Version 3.0.12. Then I activated one of the default WP themes to test something else on the site. I then received these messages on the dashboard (on top of every page):

    Warning: Use of undefined constant WC_ABSPATH – assumed ‘WC_ABSPATH’ (this will throw an Error in a future version of PHP) in C:\wamp-3.1.9\www\rmsite\wp-content\plugins\woocommerce-simply-order-export\classes\class-woooe.php on line 83

    Warning: include_once(WC_ABSPATHincludes/admin/wc-admin-functions.php): failed to open stream: No such file or directory in C:\wamp-3.1.9\www\rmsite\wp-content\plugins\woocommerce-simply-order-export\classes\class-woooe.php on line 83

    I also tried switching back to my custom theme but the messages wouldn’t go away.

    When I tried to go to the plugin’s Settings page, it showed the above messages following by this:

    Sorry, you are not allowed to access this page.

    I am using localhost environment with the following details:
    WAMP 3.1.9
    PHP 7.2.18
    WP 5.2.4
    WooCommerce 3.8.0
    WP_MEMORY_LIMIT: 1024M

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wrip

    (@wrip)

    I realised that WooCommerce was somehow accidentally deactivated while I was updating plugins, hence it caused this issue. All good now. My bad…

    Plugin Author Ankit Gade

    (@wpgurudev)

    Hi,

    Thanks for letting me know.

    Adding the information for future references.

    WC_ABSPATH is a constant defined in WooCommerce. This plugin needs WooCommerce to be activated and updated to latest version in order to function properly.

    Without WooCommerce plugin would not function.

    Regards,
    Ankit.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use of undefined constant WC_ABSPATH’ is closed to new replies.