PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Thumbnails in Form Entries Pages

  1. WP Version 3.5.1
    GF Version 1.6.12

    I moved multiple Untitled Category posts generated from a form with Post Fields (Image) to trash and then restored.

    All the Thumbnails are now gone!

    When I try to manually edit Entry image, it says: You can edit this post from the post page. But, nothing on post page to edit.

    Please advise how can I restore images?

    Thanks.

    Posted 11 years ago on Wednesday February 6, 2013 | Permalink
  2. I created some posts with images and moved them to the trash, then restored them, and my images are still there. The Post trash functionality is built in to WordPress. If the thumb

    The entry and the post become disconnected after the post is created. You can't edit the post by editing the Gravity Forms entry, which is why you received the message "You can edit this post from the post page."

    I'm not sure how many posts you lost thumbnails for, but the thumbnail image should still be in the wp-content/uploads/gravity_forms/$FORMID-randomstring folder, if they're not in the media gallery. You should be able to restore them from there.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  3. Sorry, maybe I should have asked the question differently. I didn't actually lose any of the images. I also added the filter to change image upload path. So, form is currently working the way I want it to.

    It's all the older entries that I am concerned about. The thumbnails are missing and I would like for them to appear.

    Just wondering where to fix the path to image thumbnail. I'm looking at database now.

    Thanks!

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  4. Or, even more simply, how could I add a photo to an existing entry?

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  5. Are the thumbnails in the media gallery now?

    Or, in the database, is the img tag there in the post but the path is wrong since you changed the upload path?

    There is no way I know of to add a post image to an entry, since you would always have the "You can edit this post from the post page." message for post fields when you go to edit an entry.

    As I mentioned in my other post, the entry and the post are disconnected after the post is created. If you're most concerned with editing the posts, I think editing the path to the image in the database is the way to go. If you're concerned with the entries, I'm not sure how you can go back and edit the entry to add a post image. Maybe there is a way to add the path to the image, in the entry, direct in the database.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  6. No thumbnails in the Media Library.

    I added the gform_upload_path hook to send all images to a different directory.

    I also added gform_disable_post_creation since I do not have any use for a blank, untitled post. Plus, I didn't see anything in those posts that I could even edit anyway.

    Just looking to edit the path to the images/thumbnails in the entries so they appear again. I was looking in DB but haven't found them yet.

    I see the entries in DB, but not path to images. Where are they located exactly?

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  7. Just looking to edit the path to the images/thumbnails in the entries so they appear again.

    I took a look at some entries and found a couple interesting things. The image is actually the full image, in the entry, resized down to width="100" in the HTML. The other thing I noticed is that the path to the image, even though it's a post image, is the path in the wp-content/uploads/gravity_forms/$FORMID-randomstring/ folder. For post images, this original is kept here, for the entry, but the image is also copied to the media gallery in all its sizes.

    If you want to update the path to the images in the entries, the value is stored in the $wpdb->rg_lead_detail table. Use the lead ID, form ID and field ID to narrow it down, then the 'value' field in the record will contain the full URL to the image.

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  8. Alright, I go it all worked out. Yeah!

    Here's what I did...

    Determined Form ID, Entry ID, and Field ID from Gravity form.

    I then used phpMyAdmin to access my database and the wp_rg_lead_detail table.

    Performed a search of the database for Form ID and Entry ID to determine wp_rg_lead_detail id number for the data line that includes the path to the image upload. Since I deleted all of the blank/untitled posts that Gravity forms automatically generated, the wp_rg_lead_detail id number no longer existed in the table. So, I located where it would have been and made note of its missing id number. I did that by looking at the id number above and below. So, if I saw an id with 105 above and 107 below, I determined that 106 was the missing/deleted id. (Otherwise, you could add a number so long as it does not conflict with other id numbers in the table.)

    Note: I am using a hook to eliminate untitled blank posts for Image Posts and a hook to change default image upload path.

    Then, I inserted all of this info as a new string to table as follows (Database field = Gravity Forms field):
    id = wp_rg_lead_detail id number
    lead_id = Entry ID
    form_id = Form ID
    field_number = Field ID
    value = http://www.yourdomain.com/wp-content/uploads/image-folder/image-name.jpg|:||:||:|

    So, after successfully adding to database, thumbnails appear again in the entries and image links are correct.

    Then, I tested adding an image after a User submits a form and does not upload an image and it is possible following the same steps. The only thing you have to do is add a unique wp_rg_lead_detail id number. So, if the table uses id numbers 100-115, just make the id number 116 when you insert the new string.

    While testing, I discovered that the Edit > Edit Post Image > Choose File does not work. So again, I would just edit in the database.

    Thanks Chris for pointing me in the right direction.

    Posted 11 years ago on Friday February 8, 2013 | Permalink
  9. Glad you were able to work that out. Are you all set now?

    Posted 11 years ago on Saturday February 9, 2013 | Permalink