Updating a listing causes the images to become attached / deleted

This topic contains 4 replies, has 3 voices, and was last updated by  Guust 9 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #25386

    robertchittock
    Free User
    Post count: 19

    Hello

    I have had an issue where updating a listing causes the images to become attached / deleted.

    This is on a clean install of WP and the latest GEO Theme and plugins.

    From the admin, create a new custom post type called companies.

    Add a new company and set the image to one from the computer, mine is called “16_advertise_banner.jpg”.

    Publish the post

    Notice that images are saved in wp-uploads (and thumbnails generated OK)

    Also notice that geodir_attachments has a new entry for the image, and also geodir_gd_company_detail has a new entry for featured thumbnail. Everything works ok.

    Now go to the admin and edit this post again but don’t change the images, set the location and publish for example.

    Notice that geodir_gd_company_detail and geodir_attachments now has changed the path of the image to “///16_advertise_banner.jpg” from “/16_advertise_banner.jpg”

    Also in wp-uploads, the “16_advertise_banner.jpg” image has been deleted but the thumbnails remain.

    I would assume that by updating the post that images that have already been uploaded are not removed when saving the post. We have the website live with paying customers and this is a huge issue as companies are losing their images when they update their profile, from front end and also for us from back end.

    Please can you advise how to fix asap?

    Thanks

    Rob

    #25397

    Simone
    Expired Member
    Post count: 3515

    Hello, Stiofan has been notified.

    #25406

    Guust
    Moderator
    Post count: 29970

    Rob, did you tick “Organize my uploads into month- and year-based folders” in the WordPress Media settings?

    #25417

    robertchittock
    Free User
    Post count: 19

    Hi Guust

    I can confirm I do not have this setting checked as per the setup of the WordPress Media. Ideally we need all images in wp-uploads and not date based.

    Thanks

    Rob

    #25421

    Guust
    Moderator
    Post count: 29970

    You need to set it that way or you will keep losing the connection between your images and the listing: http://docs.wpgeodirectory.com/basic-installation/#media
    GD uses its own uploader, and this saves both server space and maximises speed.

Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket