[wp-trac] [WordPress Trac] #58059: Critical error after updating to core 6.2

WordPress Trac noreply at wordpress.org
Mon Apr 3 09:49:49 UTC 2023


#58059: Critical error after updating to core 6.2
-------------------------------+------------------------------
 Reporter:  carolkg            |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Script Loader      |     Version:  6.2
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by costdev):

 Hi @carolkg, thanks for the information!

 As there isn't a mutual theme or plugin across all the sites, let's look
 elsewhere.

  PHP Warning: Use of undefined constant ABSPATH

 I've checked all uses of `wp-settings.php` in WordPress Core and all cases
 ensure that `ABSPATH` is defined.

 Your `wp-config.php` file should have the following towards the end:

 {{{#!php
 if ( ! defined( 'ABSPATH' ) ) {
     define( 'ABSPATH', dirname( __FILE__ ) . '/' );
 }

 require_once ABSPATH . 'wp-settings.php';
 }}}

 Let us know if these exist at the end of your `wp-config.php` file, or if
 they are missing

 -----

 The Requests related issue, as well as the undefined
 `wp_get_word_count_type()` function suggest that the upgrade may have not
 completed correctly, for some reason.

 Can you check the end of `wp-includes/l10n.php` to see if the
 `wp_get_word_count_type()` function is included there?

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


More information about the wp-trac mailing list