[wp-trac] [WordPress Trac] #52323: Fatal error: Undefined constant "ABSPATH"

WordPress Trac noreply at wordpress.org
Sat Feb 27 21:45:40 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:  close reporter-feedback  |     Focuses:
-------------------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:  close => close reporter-feedback


Comment:

 Hi there, welcome to WordPress Trac! Thanks for the report.

 Steps to reproduce the issue on a clean install would be helpful here.
 Does it still happen with all plugins disabled and a default theme (Twenty
 Twenty-One) activated?

 `ABSPATH` is first defined in [source:tags/5.6.2/src/wp-
 load.php?marks=19-22#L1 wp-load.php] and then in [source:tags/5.6.2/wp-
 config-sample.php?marks=84-87#L68 wp-config.php] as a fallback. `wp-
 includes/functions.php` is loaded [source:tags/5.6.2/src/wp-
 settings.php?marks=111#L103 far beyond that point], so I don't really see
 how this could happen in regular usage.

 If the issue only happens sporadically and not consistently, it's possible
 that [https://wordpress.org/support/article/faq-my-site-was-hacked/ the
 site was hacked] and some files were replaced.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52323#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list