When I edit a Custom Post Type that has an attached Featured Image (I am using this for a member profile pic), the existing image gets removed when the form is saved.
hidden link
You can use credentials:
username: tester
password: NW#Q$jjMaQugVK%7yF9eti6$
If you click the "Edit Profile" link and change anything but leave the photo as is, then save the form, the existing image gets removed.
Why does this happen? How can I get the existing featured image for existing profiles to stay when editing the CPT?
Thanks for the details, I can see the problem in your website, and I have tried it in my localhost with a fresh WordPress installation + the latest version of Toolset plugins, it works fine, so the problem is abnormal, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP code snippets, and test again
I have marked this thread as waiting for feedback status, please let me know if you need more assistance for it, and the private message box enabled again.
I have marked this thread as waiting for feedback status, please let me know if you need more assistance for it, and the private message box enabled again.
Okay this is really odd -- I have replicated the website completely to a staging environment and left everything the same (did not change themes, did not disable plugins) and the profile image stays and saves when editing a profile. But it still does not work on the live site. Why would that be?
Here is the staging site profile that you can play with using the credentials I shared before: hidden link
And here is the live site again: hidden link
In both environments, click into the "Jeff Mackey" profile and click the Edit Profile link. Change anything you want in the profile and click Submit.
Let me know what access you need to see what's going on. As I said -- other than the URL (obviously) the two environments are identical.
please check these in the live site:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP code snippets, and test again
If you still need assistance to locate the problem, please backup your website first, provide the live website credentials and FTP access in below private message box, thanks
In order to get the PHP debug logs, I have tried the SFTP access you provided, but get these error:
Command: Trust new Hostkey: Yes
Error: FATAL ERROR: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server
Please check it.
There are two Must-Use plugins in your website: hidden link
Especially the "Kinsta Must-use Plugins", it is changing feature image URLs of Toolset Forms to their CDN URLs, that will conduct unexpected result.
I can not disable them without the SFTP access, can you disable them, and test again?
Your most recent reply made me realize that there was in fact a difference between the live and staging environments: the CDN. On the live site, all images were being sent/served to the CDN. As soon as I turned that off and tested the form with an image, it worked just like it does in the staging.