Opened 2 years ago
Closed 7 months ago
#59954 closed defect (bug) (worksforme)
Gets error 404 in preview page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | major | Version: | 6.4 |
| Component: | Editor | Keywords: | reporter-feedback close |
| 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 (8)
#2
@
2 years 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,
- Draft Post > Preview in new tab > Does not work (Redirect to Undefined page)
- Published Post > Preview in the new tab > Works
- All posts list > Preview > Works
#4
follow-up:
↓ 7
@
7 months ago
- Keywords reporter-feedback added; 2nd-opinion needs-testing removed
Reproduction Report
Description
Attempted to reproduce the issue: 404 error on preview page.
Environment
- WordPress: 6.8.2
- PHP: 8.3.24-dev
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 5.5 / Client: 3.40.1)
- Browser: Chrome 139.0.0.0
- OS: Windows 10/11
- Theme: GeneratePress 3.6.0
- MU Plugins:
- rewrite.php
- Plugins:
- Gutenberg 21.4.0
Actual Results
- ❌ The issue could not be reproduced.
- ❌ Preview worked as expected without redirecting to /wp-admin/undefined
Steps Taken to Reproduce
- Installed and activated the Gutenberg plugin.
- Installed and activated the GeneratePress theme.
- Created a new post → Edit → Chose Preview in New Tab → Preview loaded correctly (no /wp-admin/undefined).
- Repeated steps described by @luckybhumkar: Drafted a post > Preview in new tab Still did not redirect to an undefined page.
#6
@
7 months ago
Hello, Thanks for your replies. I didn't see the problem after updates, so we can close this ticket.
Note: See
TracTickets for help on using
tickets.
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.