why would ABSPATH not get defined

Last week I got an error in my logs on a standard WP install -

Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in /wp-settings.php on line 33

I have ABSPATH defined in wp-config as standard:

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );

And it seems the site only accessed wp-settings because of the next line in wp-config:

require_once ABSPATH . 'wp-settings.php';

Yet when it went to wp-settings, ABSPATH was not defined?

There is only one error like this, and the site works fine. What could be causing ABSPATH not to be defined, to throw this once off error?

Topic constants errors Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.