[wp-trac] [WordPress Trac] #58059: Critical error after updating to core 6.2
WordPress Trac
noreply at wordpress.org
Mon Apr 3 11:07:32 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 carolkg):
Replying to [comment:6 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 in wp-settings.php on
line 33
>
> 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?
ABSPATH is defined:
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
BUT there is no wp_get_word_count_type() in wp-includes/l10n.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58059#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list