[wp-trac] [WordPress Trac] #55936: ABSPATH & WPINC

WordPress Trac noreply at wordpress.org
Fri Jun 10 16:15:48 UTC 2022


#55936: ABSPATH & WPINC
-------------------------------+------------------------------
 Reporter:  lkhlc              |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  General            |     Version:  6.0
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by lkhlc):

 The site is locked down. No access other than builders and corp types. No
 auto processes are running specially and no crontabs are activated. Every
 night the same set of errors.
 class-wp-http.php throws a hissy fit at ABSPATH line 11.... it all goes
 down hill from there.. every night. and nobody is there doing anything.
 This is the same set of errors every night. An internal WP Cron perhaps?
 Regardless ABSPATH was warned and now its not working.

 {{{#!php
 <?php
 Stack trace:
 #0 {main}
   thrown in /home/[DOMAIN]/public_html/wp-includes/template-canvas.php on
 line 12
 [08-Jun-2022 16:51:01 UTC] PHP Warning:  Use of undefined constant ABSPATH
 - assumed 'ABSPATH' (this will throw an Error in a future version of PHP)
 in /home/[DOMAIN]/public_html/wp-includes/blocks/index.php on line 9
 [08-Jun-2022 16:51:01 UTC] PHP Warning:  Use of undefined constant WPINC -
 assumed 'WPINC' (this will throw an Error in a future version of PHP) in
 /home/[DOMAIN]/public_html/wp-includes/blocks/index.php on line 9
 [08-Jun-2022 16:51:01 UTC] PHP Warning:
 require(ABSPATHWPINC/blocks/archives.php): failed to open stream: No such
 file or directory in /home/[DOMAIN]/public_html/wp-
 includes/blocks/index.php on line 9
 [08-Jun-2022 16:51:01 UTC] PHP Fatal error:  require(): Failed opening
 required 'ABSPATHWPINC/blocks/archives.php' (include_path='.:/opt/cpanel
 /ea-php74/root/usr/share/pear') in /home/[DOMAIN]/public_html/wp-
 includes/blocks/index.php on line 9
 [08-Jun-2022 16:52:31 UTC] PHP Fatal error:  Uncaught Error: Class
 'WP_Widget' not found in /home/[DOMAIN]/public_html/wp-includes/widgets
 /class-wp-widget-block.php:17
 Stack trace:
 #0 {main}
   thrown in /home/[DOMAIN]/public_html/wp-includes/widgets/class-wp-
 widget-block.php on line 17
 }}}

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


More information about the wp-trac mailing list