Opened 7 months ago
Closed 6 months ago
#60578 closed enhancement (fixed)
When plugin upload fails, add a link to return to plugin installer page
Reported by: | Presskopp | Owned by: | desrosj |
---|---|---|---|
Milestone: | 6.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Upload | Keywords: | has-patch commit |
Focuses: | administration | Cc: |
Description (last modified by )
When for any reason a plugin upload fails (Only .zip archives may be uploaded. / Incompatible Archive.) you will be confronted with an error and there is no way out. Of course, you can use the browser's built-in back button, but still it would be nice to offer an additional link "Go to Plugin Installer" or "Back to Plugin Installer" (leading to wp-admin/plugin-install.php)
Attachments (3)
Change History (22)
#2
@
7 months ago
- Description modified (diff)
- Focuses administration added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
Sounds reasonable to me.
#3
@
7 months ago
+1 - I agree this would definitely help improve UX for beginners & non-techy users. I wonder if there are other error screens like these without an action link that can benefit from it.
#4
@
7 months ago
This feature is already implemented in the current WordPress core.
https://nimb.ws/cqlrgOv
#5
@
7 months ago
@pmbaldha This ticket is about the error message you get when the file is invalod. For example, try renaming a TXT file to ZIP und upload that. You‘ll get an error message without a back button
#8
@
7 months ago
@smub I have opened the ticket https://core.trac.wordpress.org/ticket/60644 for the theme installation fails error screen.
#9
@
7 months ago
No need for a separate ticket, we can do that here, especially since the PR already does that.
#11
@
7 months ago
@swissspidy
This ticket is for an invalid zip file uploaded. Screenshot: https://nimb.ws/hItAqJb. This issue is resolved by this PR.
The other ticket is for the uploaded valid zip file, which is not a valid theme file. Screenshot: https://nimb.ws/GqC3Y17. This issue is not resolved in this PR.
I know that we shouldn't write duplicate tickets.
so, both issues are different. Can you please reopen the other ticket?
#12
@
7 months ago
I see, thanks for clarifying. Still, I think we can address this together to make the error messaging consistent. Should be a trivial addition to the existing PR.
#13
@
7 months ago
I have debugged the issue on another ticket. The code exists in the codebase, but it is not working. It is not a trivial addition to existing PR.
The other ticket requires a different set of test instructions too.
Let me know what the next step is.
#15
@
6 months ago
Test Report
Description
This report validates whether the indicated patch works as expected.
Patch tested: https://core.trac.wordpress.org/attachment/ticket/60578/60578.patch
Environment
- WordPress: 6.5-RC1
- PHP: 8.0.30-dev
- Server: PHP.wasm
- Database: WP_SQLite_Translator (Server: 5.5 / Client: 3.40.1)
- Browser: Chrome 122.0.0.0
- OS: macOS
- Theme: Twenty Twenty-One 2.1
- MU Plugins:
- 0-allow-wp-org.php
- Plugins:
- SQLite Database Integration 2.1.6
- Test Reports 1.1.0
Actual Results
- ✅ Issue resolved with patch.
Additional Notes
- Tested this by uploading an invalid zip file. Renamed a different file as a zip file.
Supplemental Artifacts
#16
@
6 months ago
- Milestone changed from Future Release to 6.6
- Owner set to desrosj
- Status changed from new to reviewing
Oops I crashed the formatting, sorry.