Use of undefined constant WC_ABSPATH
-
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
- The topic ‘Use of undefined constant WC_ABSPATH’ is closed to new replies.