Serious image loading issue:
-
WP Version 6.9.4
img plugin -> 1.1.1
ALD – Aliexpress Dropshipping and Fulfillment for WooCommerce -> 2.2.5When uploading a product, with images from Alixpress and not saved locally,
the plugin saves the images. But only the featured image is displayed in the normal WP media list. The others exist and have a specific ID, and thumbnails are generated. But WP seems to not have them in the list. Very strange.If you open the image by ID and click Refresh (the classic WP button), it is immediately loaded into the list.
—I’ll also copy the possible cause of the problem:
_______________
I’ve identified the problem! WordPress doesn’t see the image in the list because _wp_attached_file isn’t immediately saved as post meta. When you click “Update” in the panel, WordPress saves it, and then it appears.The add_image() function calls update_attachment_metadata() which calls wp_update_attachment_metadata(), but the _wp_attached_file meta is not saved as a separate post meta immediately.
You must be logged in to reply to this topic.