-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Intermittent 'url' TypeError when uploading featured image #18752
Comments
(updated) I think I found a way to trigger it:
|
Yup, that seems to reproduce it consistently for me too, good job! |
Hi @iandunn Are you working to fix this one? |
@lancewillett a workaround has been implemented for the issue in #18770, until a better solution can be considered and implemented. This is a bit of an edge-case and it's not triggered very often. With the workaround there shouldn't be any chance of losing user content, except the currently uploading Featured Image. If the issue happens, the Featured Image that is currently being uploaded will get reverted to the previous state, either no Featured Image or the previous one that was set. Proper fix will require blocking the save functionality while an upload is active or make the save a bit smarter and modular ( to save only the content or only the featured image for example ), so it can save things independently of each-other. We're still in early talks on what will the better solution be and what implementation difficulties may arise from either solution. |
Do we need to keep this open considering the workaround is in place? If we're keeping it open can I please assign it to someone? |
I'm happy to close it. We can re-open later if work continues. |
Steps to reproduce
Update: See #18752 (comment) for better steps.
Uncaught TypeError: Parameter 'url' must be a string, not number
If you want to catch the error during debugging, you can add the following snippet to the start of
maxWidthPhotonishURL()
inclient/lib/post-normalizer/utils.js
:The imageURL that gets passed looks like the ID of a media library item, rather than its URL.
Stack trace from browser console after the error is thrown:
Call stack inside debugger at moment error is thrown:
Browser / OS version
Chrome 61
The text was updated successfully, but these errors were encountered: