Opened 11 months ago
Closed 10 months ago
#59884 closed defect (bug) (worksforme)
Fatal critical error after updating WordPress from V6.4.0 to V6.4.1
Reported by: | soulfly1506 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | blocker | Version: | 6.4 |
Component: | Upgrade/Install | Keywords: | |
Focuses: | Cc: |
Description
I got a Fatal critical error after updating WordPress from V6.4.0 to V6.4.1 . THe error messages displayed are as below-
Fatal error: Cannot redeclare print_emoji_styles() (previously declared in /home/524098.cloudwaysapps.com/wndwvudhat/public_html/wp-includes/formatting.php:5846) in /home/524098.cloudwaysapps.com/wndwvudhat/public_html/wp-includes/deprecated.php on line 5904
Please help me resolve this.
Attachments (1)
Change History (3)
This ticket was mentioned in Slack in #core-upgrade-install by nekojonez. View the logs.
11 months ago
#2
@
10 months ago
- Component changed from General to Upgrade/Install
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
Hello @soulfly1506,
Welcome to WordPress Core's Trac :) Thanks for reporting the upgrade issue you experienced. I'm sorry for the delay in responding to you.
Huh that's interesting the error occurred when upgrading from 6.4.0 to 6.4.1. Why is it interesting?
print_emoji_styles()
was deprecated in 6.4.0. The function moved from the wp-includes/formatting.php
file to the wp-includes/deprecated.php
file in 6.4.0, not in 6.4.1. See it here in the 6.4 tagged release file.
Having this error occur when upgrading from 6.4.0 to 6.4.1 suggests to me the initial upgrade to 6.4.0 was incomplete. How so? The function likely still existed in the wp-includes/formatting.php
file and did not exist in the deprecated file, meaning neither file was updates when upgrading to 6.4.0.
The error received when upgrading to 6.4.1 indicates the wp-includes/formatting.php
file was not upgraded. If you open that file, do a search for the print_emoji_styles()
function.
To resolve, I'd suggest doing a full upgrade again to 6.4.1, just in case there are other files that also did not get replaced/updated. How? See this Support post for more information and/or Manual Update > Updating WordPress.
As there are no other reports of the same issue, I'll close this ticket. However, @soulfly1506 if the problem persists, please reopen the ticket.
picture showing critical wordpress error after updating from v6.4.0 to v6.4.1