Skip Navigation

[Resolved] Uploaded Image is Lost When Editing a Post

This support ticket is created 3 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 23 replies, has 2 voices.

Last updated by himanshuS 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1894421

I have featured image as a field in the form. All works well when I am posting but when I get back to editing the post and make no changes to the featured, it is lost. That is, the post is saved after I submit edit form but the image is lost. I have to re-open the edit post form and select the image and then post, then it works.

Strangely, when I edit the post for the first time, the image appears in the form (so I think it is uploaded). But when I save the form. The image is lost.

This seems like a bug or an incompatibility issue.

Help appreciated!

#1894995

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

Thank you for getting in touch.

Not sure what could be causing this issue but its definitely not a normal use case as the image should still remain.

In order to ensure that this is not a plugin conflict of some sort I would recommend that you temporarily disable all the non-toolset plugins and check again to see if the issue remains.

Once you've done this please let me know.

Thanks,
Shane

#1895117

Shane,

Al the plugins I am using are essential for the site and I have a fairly complex setup. Is there another way such as error logs to figure this out. Essentially, I cannot disable the plugins that I am using as they providing essential value.

Please suggest an alternative.

Regards,
Himanshu

#1895221

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

Ok, no worries. The next thing I would do given the circumstances is to ensure that the issue is replicable on an identical form.

So I would go ahead and create a new form form and place it in the position of the current form then submit that new form to see if the issue remains.

What this does is help us to work through to see where the issue is. If the problem doesn't occur with this new form then we can say that it was an issue with the form you were using.

Thanks,
Shane

#1895283

Shane,

I have 5 different CPTs and 3 of them have a featured image. This issues is happening on each of the three forms. So I am pretty sure this is true across all CRED forms.

What else can we do to figure this out?

Regards,
Himanshu

#1895307

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

The only other option is to temporarily disable the non-toolset plugins.

However since this will pose some challenges for you I would recommend providing me with a copy of the site so that I can perform the additional tests here locally.

You can provide me the copy of the site by following the instructions in the link below.
https://toolset.com/faq/provide-supporters-copy-site/

Thanks,
Shane

#1895421

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

Thank you for the files, however this seems to be an All in One Migration plugin copy.

Unfortunately the file size is over 1gb so I wont be able to restore this using the free version of the All in one Migration plugin.

What you can do is to use the duplicator plugin as per our documentation to provide me with the copy of the site.

Thanks,
Shane

#1895427

Duplicator plugin has been banned on wprdpress. That's why Waqar used the other one. What else can we do? I can give you access to the site admin details and you can take over from there?

#1895429

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

Yes please I should be able to get by with the credentials.

It should be noted that I won't be making any changes at all to your live site so it should be safe.

Thanks,
Shane

#1896583

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

I've got a copy of the site partially up and running. Can you let me know the page that you have the form on so that I can perform a test?

Thanks,
Shane

#1896657

You can run test on:
1) Create a project prompt on Create Project Prompt Page. Add an image.
2) You will be directed to the Project Prompt Post. Then you can click on edit to make changes
3) Edit form will show up with all the details including the image you just uploaded.
4) Save the form and you will go back to the post but your image would be lost. I have a backup image that will show up but not the one you added on the post.
5) Click on edit to edit the post again
6) This time remove the image and add it again to the edit form
7) Save the edit form and this time the post will have the image

Essentially, the image is lost when you save an edit post form without reuploading the image.

#1897775

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

I'm still having issues with the site copy as its not loading with any css which makes it extremely difficult to work with.

If possible are you able to setup a copy of the site on your server where we can go through to deactivate the plugins to test?

We essentially need to go through the basic debugging steps before we can go any further as this will guide us as to where to look for the issue.

Also unless these steps are performed I cannot escalate the ticket for further checks as we require that these steps be done and a working copy of the site.

Please let me know how soon you can get a copy setup for us to have a look.

Thanks,
Shane

#1897849

You know Shane, I think Waqar was able to make the copy of the site but it's an issue., I can stop development for sometime and allow you to deactivate plugins on the site for now to check the issues. 🙂

I think you have login credentials for admin. If not, let me know I can give you access.

#1897983

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

Please continue working on the site. I'll get in touch with Waqar to see if he can provide me with a copy of the backup he has.

Thanks,
Shane

#1898621

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Himanshu,

I was able to get the website copy from Waqar and set it up on my test install.

From what I've tested the issue doesn't occur here so it seems that something on your server is causing the images to get removed. See my video below.

hidden link

Secondly what you can try to do is to enable the media library upload option for the form and see if this helps. This uses a different method to upload the images so we can try this to see if the same issue occurs.

Thanks,
Shane