[wp-trac] [WordPress Trac] #61286: PHP message: PHP Fatal error: Uncaught Error: Undefined constant "ABSPATH" in wp-includes/cache.php

WordPress Trac noreply at wordpress.org
Mon May 27 13:35:34 UTC 2024


#61286: PHP message: PHP Fatal error:  Uncaught Error: Undefined constant "ABSPATH"
in  wp-includes/cache.php
---------------------------+------------------------------
 Reporter:  deepakrohilla  |       Owner:  deepakrohilla
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  6.5.3
 Severity:  major          |  Resolution:
 Keywords:  has-patch      |     Focuses:
---------------------------+------------------------------

Comment (by SergeyBiryukov):

 Hi there, thanks for the ticket!

 A similar issue was addressed in [49619] / #35835 for `wp-includes/rss-
 functions.php`.

 Unless I'm missing something, calling directly pretty much any other file
 in `wp-includes` or `wp-admin/includes` would lead to the same issue, so
 if we want to add an early exit, it might be a good idea to do that in a
 consistent way.

 Related: #47154, #51806, #55944, #61214, #61277.

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


More information about the wp-trac mailing list