ABSPATH not defined on checkout?
-
Hi there,
I need to add a tiny bit of backstory here since I have made significant changes to the system my site is running on.I tested the checkout on my old server running Apache and PHP 5.4.
I have now transferred to a new server running CloudPanel on Debian 10 (NGINX) with PHP 7.4.After testing the checkout system today I was greeted with a message that said:
“It was not possible to process your order. Try again.” (translated from Dutch).I’ve checked the PHP logs and found a rather worrying error. Here it is:
[04-Apr-2022 14:38:47 Europe/Berlin] PHP Warning: require(ABSPATHWPINC/option.php): failed to open stream: No such file or directory in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-includes/functions.php on line 8 [04-Apr-2022 14:38:47 Europe/Berlin] PHP Fatal error: require(): Failed opening required 'ABSPATHWPINC/option.php' (include_path='.:/usr/share/php') in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-includes/functions.php on line 8 [04-Apr-2022 15:01:31 Europe/Berlin] PHP Warning: Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33 [04-Apr-2022 15:01:31 Europe/Berlin] PHP Warning: require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33 [04-Apr-2022 15:01:31 Europe/Berlin] PHP Fatal error: require(): Failed opening required 'ABSPATHwp-includes/version.php' (include_path='.:/usr/share/php') in /home/cloudpanel/htdocs/dev.pctoppers.nl/wp-settings.php on line 33
Here is my ABSPATH in the WP-config file:
/* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */ if ( ! defined( 'ABSPATH' ) ) { define( 'ABSPATH', __DIR__ . '/' ); } /** Sets up WordPress vars and included files. */ require_once ABSPATH . 'wp-settings.php';
I don’t really see anything wrong with this. I have already tried the following things:
1. Rewrite all the permissions.
2. Deleted all files (except wp-config.php & /wp-content) and uploaded from a clean download.
3. Disabled (except necessary plugins (WooCommerce, Elementor, JetWooBuilder)) all plugins.
4. Completely restarted the server.You can try adding a product in the cart and go to checkout and will see it does not work.
Here is a link to the systemreport: https://www.toptal.com/developers/hastebin/udibepotaf.yaml
Hopefully someone can help me I’ve been trying all day ??
The page I need help with: [log in to see the link]
- The topic ‘ABSPATH not defined on checkout?’ is closed to new replies.