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
  • Author
    Posts
  • #426672

    Patrick
    Full Member
    Post count: 17

    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?

    #426684

    Guust
    Moderator
    Post count: 29970

    GD 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?

    #426714

    Patrick
    Full Member
    Post count: 17

    Hello,

    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.

    #426720

    Guust
    Moderator
    Post count: 29970

    Can 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

    #426722

    Patrick
    Full Member
    Post count: 17
    This reply has been marked as private.
    #426741

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #426742

    Patrick
    Full Member
    Post count: 17
    This reply has been marked as private.
    #426745

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #426747

    Patrick
    Full Member
    Post count: 17
    This reply has been marked as private.
    #426748

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #426753

    Patrick
    Full Member
    Post count: 17

    I’ll set up a clone for future investigations, as this is a production web site. Thank you!

    #426985

    Arthur Kelly III
    Expired Member
    Post count: 6

    Was 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.

    #427007

    Patrick
    Full Member
    Post count: 17

    Unfortunately, no. I had to put investigations on hold as the suggested next step was to disable all plugins, which is not acceptable in production.

    #427022

    Arthur Kelly III
    Expired Member
    Post count: 6

    That’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.

    #427027

    Alex Rollin
    Moderator
    Post count: 27815

    Hello @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

Viewing 15 posts - 1 through 15 (of 24 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount