First off, everything was working fine under the old version. Now after updating to Toolset 3.0 I noticed that the toolset custom image fields are not all being displayed.
I do not use the standard wp-content/upload directory plus i'm using ssl.
Now some images in views, layouts and in content templates are ignoring the correct url code in the image fields and trying to display images in the standard wordpress directory that does not exist ... and thus causing major page not found issues with my security plugin and then blocking users out due to my security settings.
So far I can not find the problem with my coding.
Hello,
How do you setup the path from "wp-content/upload" directory to custom path?
Please elaborate the question with more details, describe detail steps to duplicate the same problem, I need to test and debug it in my localhost, thanks
Ok..... Sorry for the lack of detail last time, I was in a hurry.
After further investigation I have identified the problem.
About 4 years ago I changed my content directory from "wp-content" to a "custom-content". This was done using iThemes Security plugin. I have been using Toolset for about 3+ years on this site without any image display issues. Now after updating to Toolset 3.0 some images are no longer being displayed. It appears that you have changed the way you retrieve the image files. All images that were uploaded before the directory change are no longer being shown as toolset is trying to find the image under the old directory. WordPress was showing the correct path to the new image files, but when I checked the database the image posts still had reference to the old files. So I updated the 45 image post to the correct directory for the image file. Now all my images are displaying fine.
WP Image URL
<em><u>hidden link</u></em>......../custom-content/uploads/flag1.jpg
WP Image Post URL
<em><u>hidden link</u></em>......../flag1
Image Field URL (used on a custom post type)
<em><u>hidden link</u></em>......../custom-content/uploads/flag1.jpg
Database image-post guid
<em><u>hidden link</u></em>......../wp-content/uploads/flag1.jpg
updated database to fix problem
<em><u>hidden link</u></em>......../custom-content/uploads/flag1.jpg
wp-config.php
define( 'WP_CONTENT_URL', '<em><u>hidden link</u></em>' );
Not sure what change you made to have it work for the past 3+ years and now not.
Looks like you are retrieving the image from the image post database guid and not the actual image field URL used on the post, plus you are ignoring the wp-config ???
What if I had thousands of images that were effected ?
Hope this explains my issue better.
It seems to be a compatibility problem, and I don't have a copy of plugin "iThemes Security" in my localhost. If the problem still persists, please provide a copy of your website, also point out the problem page URL for the problem:
the toolset custom image fields are not all being displayed.
https://toolset.com/faq/provide-supporters-copy-site/
You can put it into your own google drive disk, and share the link in the "private detail box", I need to duplicate same problem and debug it in my localhost, thanks
It's not a compatibility problem, and it has nothing to do with the other plugin. It has to do with the way you are getting the image file.
On your localhost try this. (This should recreate my issue)
Use types version 2.2.23 or the complete set before the new 3.0 version.
Create a custom post type.....add a image field for this post type. Now create a content template to display the image field for this post type. Make 2 posts and upload a different image file for each. If you view each post the image should display fine.
Now go to your database and find one of the image posts ... not the custom post type, but the post of the image. In the "guid" column change "wp-content" to "custom-content". This should recreate my problem, by simulating that you changed the content directory from "custom-content" to "wp-content". Now view each post and they should both display the image fine.
Now upgrade to toolset 3.0
View each post, and one should display fine and the other will not, as it is looking for the image under a different path.
BUT, now look at the URL in your image field on each post. They both show the correct path....so why does the one image not get displayed ?????
Thanks for the detail, I have tried the steps as you mentioned above, but there isn't similar problem in my localhost with the latest version of Toolset plugins, see screenshot custom-content.JPG
The types shortcode does output the image URL with "custom-content" path.
In order to debug the problem, provide a copy of your website, also point out the problem page URL for the problem:
the toolset custom image fields are not all being displayed.
https://toolset.com/faq/provide-supporters-copy-site/
You can put it into your own google drive disk, and share the link in the "private detail box", I need to duplicate same problem and debug it in my localhost, thanks