ABSPATH wp-settings.php errors
-
I’ve been trying to figure this out for the past few days. My hosting company (Ionos) blamed it on my PCI Scanner and told me I need to “contact WordPress and let them turn off the debug on their end”. This is happening on every single website I have with Ionos (I only scanned one out of 8) and failed the PCI scan due to wp-settings issues. I also set up a fresh site today to test this, with no plugins and just the default theme installed and still get the error. It happens when going to https://www.example.com/wp-settings.php in any browser replacing example.com with any of my domain names. Some sites are on the current version of WordPress and others are on the previous version.
For all eight sites, it displays:
Warning: Use of undefined constant ABSPATH – assumed ‘ABSPATH’ (this will throw an Error in a future version of PHP) in /shows-full-server-file-path-here/wp-settings.php on line 33
Warning: require(ABSPATHwp-includes/version.php): failed to open stream: No such file or directory in /shows-full-server-file-path-here/wp-settings.php on line 33
Fatal error: require(): Failed opening required ‘ABSPATHwp-includes/version.php’ (include_path=’.:/usr/lib/php7.4′) in /shows-full-server-file-path-here/wp-settings.php on line 33
This is the last section of wp-config.php for all sites:
/* That’s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( ‘ABSPATH’ ) ) {
define( ‘ABSPATH’, dirname( __FILE__ ) . ‘/’ );
}/** Sets up WordPress vars and included files. */
require_once ABSPATH . ‘wp-settings.php’;Line 33 of wp-settings.php shows:
require ABSPATH . WPINC . ‘/version.php’;I’ve also tried various ways of turning off debugging with no success. I’m not very familiar with the code, so I’m not sure where else to look.
- The topic ‘ABSPATH wp-settings.php errors’ is closed to new replies.