Attachments deleted when editing a listing
This topic contains 23 replies, has 6 voices, and was last updated by Kiran 6 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
April 15, 2018 at 7:20 am #426672
Hello,
I’m having an issue where image files attached to a listing are sometimes (but not always) deleted when I edit a listing.
The database entries are still present, as well as the media library record, however the files themselves are deleted. Below is a screenshot of the media library showing the issue.
My only suspicion so far is that the behavior might something to do with the use of sessions and WPEngine caching, which could lead to “wires crossing.”
Does this ring a bell?
April 15, 2018 at 9:54 am #426684GD does not use the Media except for the first image of a listing.
Are your settings as per https://wpgeodirectory.com/docs/basic-installation/#media ?Can you give us an example of a listing where the images have gone missing?
April 15, 2018 at 6:59 pm #426714Hello,
Thanks for the response. I understand how GD works. The issue is that the underlying files are being deleted. The database data is preserved.
Example of a broken place:
https://loungereview.com/lounges/air-china-domestic-first-class-lounge-pek-t3c/
(Screenshot attached – the pictures in the slider are all missing.)Here is the record in the database:
SELECT * FROM
wp_geodir_gd_place_detail
WHERE post_id = 18712
18712 Air China Domestic First Class Lounge – PEK T3C publish <snip>
Here are the associated attachments in the database:
SELECT * FROM
wp_geodir_attachments
WHERE post_id = 18712
ID post_id user_id title caption content file mime_type menu_order is_featured is_approved metadata
5980 18712 NULL PEK-air-china-domestic-first-class-lounge-pek-term… NULL NULL /2018/04/18712_PEK-air-china-domestic-first-class-… image/jpeg 1 0 1 NULL
5981 18712 NULL PEK-air-china-domestic-first-class-lounge-pek-term… NULL NULL /2018/04/18712_PEK-air-china-domestic-first-class-… image/jpeg 2 0 1 NULL
5982 18712 NULL PEK-air-china-domestic-first-class-lounge-pek-term… NULL NULL /2018/04/18712_PEK-air-china-domestic-first-class-… image/jpeg 3 0 1 NULL
<snip>The issue is that the files are gone. Screenshot of FTP storage attached. As you can see all that’s left for ID 18712 is the resized images generated by WordPress for the main photo in the media library.
This happens occasionally when I edit a place.
April 15, 2018 at 10:46 pm #426720Can you post your WP admin and FTP details in a private reply so we can check if this is GD related, or some other plugin or your server settings.
Thanks
April 15, 2018 at 11:00 pm #426722This reply has been marked as private.April 16, 2018 at 4:49 am #426741This reply has been marked as private.April 16, 2018 at 4:54 am #426742This reply has been marked as private.April 16, 2018 at 5:20 am #426745This reply has been marked as private.April 16, 2018 at 5:29 am #426747This reply has been marked as private.April 16, 2018 at 5:32 am #426748This reply has been marked as private.April 16, 2018 at 6:34 am #426753I’ll set up a clone for future investigations, as this is a production web site. Thank you!
April 17, 2018 at 7:58 pm #426985Was a solution found to this issue? I am having the same thing happen on event listings. Featured image is deleted when the event is edited.
April 18, 2018 at 12:54 am #427007Unfortunately, no. I had to put investigations on hold as the suggested next step was to disable all plugins, which is not acceptable in production.
April 18, 2018 at 1:46 am #427022That’s not an issue for me, and was in fact one of the first things I tried. It still happens. I would be happy to turn off all plugins and provide login information if GD support wants to keep investigating. Or maybe I should just start my own thread.
April 18, 2018 at 2:06 am #427027Hello @akellyiii,
we would be happy to look into it.
Please do start a new topic to describe the issue and followup with a private reply to include access details so we can take a look. You can provide a link to this topic too, that will help.
thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket