[wp-trac] [WordPress Trac] #52323: Fatal error: Undefined constant "ABSPATH"
WordPress Trac
noreply at wordpress.org
Tue Jan 19 00:11:43 UTC 2021
#52323: Fatal error: Undefined constant "ABSPATH"
--------------------------+------------------------------
Reporter: Mayhem30 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.6
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by sabernhardt):
@Mayhem30 Does your wp-config.php file have this at the very end?
{{{
/** 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';
}}}
If you have the older definition, with `dirname(__FILE__)` instead of
`__DIR__`, does using `__DIR__` fix the problem?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52323#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list