Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#59954 new defect (bug)

Gets error 404 in preview page

Reported by: davidperez's profile davidperez Owned by:
Milestone: Priority: normal
Severity: major Version: 6.4
Component: Editor Keywords: 2nd-opinion needs-testing
Focuses: Cc:

Description

In latest version of WordPress 6.4.1, we get error 404. It redirects to a undefined page.

For example link preview:
/wp-admin/post.php?post=34891&action=edit

Gets:
/wp-admin/undefined

We are using Classic Theme (GeneratePress) and we've tried with latest version of Gutenberg. But we have tried without plugins and other Theme like Twentytwenty four.

Change History (3)

#1 @cbravobernal
6 months ago

  • Milestone Awaiting Review deleted

Hi David,

Thank you for addressing the issue. Unfortunately, I am unable to replicate it despite my efforts:

I tested it in my local environment, utilizing PHP 8.1.23, MySQL 8.0.16, and WP 6.4.1.

I created several posts and navigated to http://generate.local/wp-admin/post.php?post=8&action=edit.

I activated the GeneratePress theme and Gutenberg.

Checked http://generate.local/?p=8&preview=true, and it appears to be functioning correctly.
Additionally, I tested it without GeneratePress and Gutenberg, and it still functions flawlessly in my environment.

Could you please provide further details?

Best regards.

#2 @luckybhumkar
6 months ago

  • Version set to 6.4

Thanks, @davidperez for bringing attention to this strange bug.

I too facing the same issue with two websites. In my case,

  1. Draft Post > Preview in new tab > Does not work (Redirect to Undefined page)
  1. Published Post > Preview in the new tab > Works
  1. All posts list > Preview > Works

#3 @jorbin
6 months ago

I think this may be a duplicate of #59915.

Note: See TracTickets for help on using tickets.