When a feature image is added it should upload successfully to the post when published
when we try to post featured image .. it shows the the upload done successfully however when we publish the post it doesn鈥檛 appear so when again we go back to edit we could not see the featured image so we have to upload it again ..
Not reproduced yet
User reported on 15.2 on multiple devices
Noting the site types and editors in use (at least according to the logs sent at the time the tickets were created) for reference:
And here are some of the snippets from the app logs mentioning media errors in case they're helpful:
2020-07-31 22:24:43:209 馃數 Tracked: editor_session_start <blog_type: jetpack, content_type: gutenberg, editor: gutenberg, has_unsupported_blocks: 0, post_type: post, session_id: 9381F1FE-72CF-4135-83F5-EBB265D694E6, startup_time_ms: 928, unsupported_blocks: (
)>
2020-07-31 22:24:48:471 <PostSettingsViewController: 0x10349e800> viewDidLoad
2020-07-31 22:24:48:472 馃數 Tracked: post_settings_shown <>
2020-07-31 22:24:53:749 馃數 Tracked: editor_post_featured_image_changed <action: removed, via: settings>
2020-07-31 22:24:54:613 <WordPress.WordPressAppDelegate: 0x281003400> applicationWillResignActive(_:)
2020-07-31 22:24:55:083 Stats Period: finished persisting Period Stats to disk.
2020-07-31 22:24:55:708 <WordPress.WordPressAppDelegate: 0x281003400> applicationDidEnterBackground(_:)
2020-07-31 22:24:55:717 馃數 Tracked: application_closed <last_visible_screen: Post Editor, time_in_app: 17>
2020-07-31 22:24:55:721 PingHub disconnecting
2020-07-31 22:24:56:218 PingHub disconnected: WSError(type: Starscream.ErrorType.protocolError, message: "", code: 1000)
2020-07-31 22:24:56:223 馃數 Tracked: media_service_upload_started <blog_id: 178491266>
2020-07-31 22:25:12:057 <WordPress.WordPressAppDelegate: 0x281003400> applicationWillEnterForeground(_:)
2020-07-31 22:25:12:057 PingHub connecting
2020-07-31 22:25:12:352 <WordPress.WordPressAppDelegate: 0x281003400> applicationDidBecomeActive(_:)
2020-07-31 22:25:12:355 checkAppleIDCredentialState: No Apple ID found.
2020-07-31 22:25:12:360 馃數 Tracked: application_opened <>
2020-07-31 22:25:12:708 PingHub connected
2020-07-31 22:25:18:116 馃數 Tracked: editor_post_featured_image_changed <action: added, via: settings>
2020-07-31 22:25:30:640 馃數 Tracked: editor_post_update <blog_id: 178491266, editor_source: gutenberg, has_gutenberg_blocks: 1, post_id: 12837, post_type: post, word_count: 25>
2020-07-31 22:25:32:956 Error in updateMediaForPost while uploading post. description: An error occurred when attempting to attach uploaded media to the post.
2020-07-31 22:25:35:984 馃數 Tracked: post_epilogue_displayed <>
2020-07-31 22:25:37:183 馃數 Tracked: post_epilogue_view <>
2020-07-31 22:25:37:200 馃數 Tracked: web_preview_opened <blog_type: jetpack, post_type: post>
2020-07-31 22:25:45:504 馃數 Tracked: post_epilogue_edit <>
2020-07-31 22:25:45:512 Returning existing revision
2020-08-03 10:04:26:538 馃數 Tracked: editor_post_created <blog_id: 1075085, post_type: post, tap_source: create_button>
2020-08-03 10:04:26:872 馃數 Tracked: editor_session_start <blog_type: jetpack, content_type: new, editor: classic, has_unsupported_blocks: 0, post_type: post, session_id: A8FE8612-C9FB-4FA8-9EFC-039764D4804F, startup_time_ms: 38, unsupported_blocks: (
)>
2020-08-03 10:04:29:015 馃數 Tracked: media_service_upload_started <blog_id: 1075085>
2020-08-03 10:04:32:595 <PostSettingsViewController: 0x10849da00> viewDidLoad
2020-08-03 10:04:32:598 馃數 Tracked: post_settings_shown <>
2020-08-03 10:04:52:233 馃數 Tracked: editor_session_end <blog_type: jetpack, content_type: new, editor: classic, has_unsupported_blocks: 0, outcome: discard, post_type: post, session_id: A8FE8612-C9FB-4FA8-9EFC-039764D4804F>
2020-08-03 10:04:52:242 馃數 Tracked: editor_discarded_changes <blog_id: 1075085, editor_source: aztec, has_gutenberg_blocks: 0>
2020-08-03 10:04:52:274 馃數 Tracked: editor_closed <blog_id: 1075085, editor_source: aztec, has_gutenberg_blocks: 0>
User on ticket 3189303-zen has replied with the logs after the issue occurs.
This seems to be the a similar issue https://github.com/wordpress-mobile/WordPress-iOS/issues/12729
User on ticket 3189303-zen has replied with additional logs after the issue happens
Thanks for the eagle eye on #12729 @rossanafmenezes. One difference between the two issues is that 12729 mentions featured images fail to upload at all and the post cannot be published while this issue mentions the featured image does appear to upload and they are able to publish the post but then the featured image doesn't show up in the app afterward. Very strange indeed. This case needs more investigation.
The user came back with some more info on ticket 3283407-zen
They say they can upload image from the media library but takes forever, but when they upload it from the post it does not work. Other employees using iPhone have the same issue. They have also added some screenshots to the ticket.
cc @guarani
User on 3283407-zen is back with more info:
Just want to add this below image shows that the image from (a) block is also not working ! So now i can confirm both featured image and add from block image both get stuck
And even when it shows completely posted when i publish the post it shows empty
A similar issue reported at https://github.com/wordpress-mobile/WordPress-iOS/issues/13208#issuecomment-695069425.
now i can confirm both featured image and add from block image both get stuck
Updated the issue title to reflect that this is not limited to the feature image.
I tried to recreate this issue and was unsuccessful. Documenting what I tried here so others are aware:
Featured Image (also tried stesp from Steps from: https://github.com/wordpress-mobile/WordPress-iOS/pull/9570):
Image Block:
Tested on Wordpress.com hosted and a self hosted jetpack connected site
Tested on iPhone XR iOS 14, and iPad Pro iOS 13.5.1
Tested on WordPress iOS 15.6
Tested with images from 1MB to 8MB in size
I am removing the high-pri status from this issue. We will potentially add this issue to a "Media improvements" project starting in the near term.
User from 3283407-zen has contacted us again on 3426699-zen with a request for a fix
User from 3283407-zen has contacted us again on 3426699-zen with a request for a fix
Thanks for the update! I had a read of the new Zendesk ticket now and can understand the user is waiting for a fix.
Although we couldn't reproduce this earlier, I tried again just now by testing featured images on:
And I still couldn't reproduce this bug. Every time I set a featured image on a post and published the post, I could see the featured image when previewing the post, and if I opened the editor again, I could see the feature image was still set in Post Settings. These Zendesk tickets also mention the Image block, but I haven't seen any issues with it lately (and neither were issues found when testing earlier).
Without us being able to reproduce this, it's difficult to identify what the problem is. I think this issue will need more investigation, but I wanted to share this status as-is to communicate where we are on the developer side of things with regard to this issue.
A possible lead is that the user is backgrounding the app during upload (as evidenced by application_closed in the logs above) and is on a poor network connection, which would make this somewhat similar to the Unable to upload large video issue. However the error here is "An error occurred when attempting to attach uploaded media to the post." while the error in that issue is "The network connection was lost.". Also, it appears that featured images in this issue appear to load correctly but upon revisiting the post they are no longer present, while on https://github.com/wordpress-mobile/WordPress-iOS/issues/15032 the media upload fails outright.
Most helpful comment
Thanks for the eagle eye on #12729 @rossanafmenezes. One difference between the two issues is that 12729 mentions featured images fail to upload at all and the post cannot be published while this issue mentions the featured image does appear to upload and they are able to publish the post but then the featured image doesn't show up in the app afterward. Very strange indeed. This case needs more investigation.