Closed ansonphong closed 10 years ago
Phong, i will reply for part of the issue. there is some unknown server setting either in reality sandwich or staging that is preventing any function that grabs images from running with redirection. Redirection means grabbing a file from url where the url redirects to another url. This issue happens only between staging and live servers, it works very well with any other website. We could not find or change that setting, it took us a long time trying all possible options, and we narrowed it down to 2 options, i just can't recall the issue id, will search for it now.
Anyways, the easy option, was to grab the final urls, so, instead of grabbing realitysandwich.com/imagefilename, we grab www.realitysandwich.com/imagefilename, in that case it works very well.
Not sure if that applies in the case above, so i will just ask Haidy what we can do.
OK - if this modification was only used for migration, and if you're now finished with it, then I'll revert to the original function.
Just let me know if you still need it in there for now. If you do, I'll duplicate the parent function to use that one separately for the migration, so it doesn't effect the front-end.
In the future, if modifying this function for migrations, please make a duplicate of the function so that it remains isolated. Thank you.
Hi Haidy, Michel, There's an issue which is important to fix before going public -- here it is.
When running
pw_save_post()
in the post_link screen, the server response is:So I noticed that the original
file_get_contents
method has been commented out, and in place is a custom functiongrab_image
.Can I revert to the original
file_get_contents
function, or is thegrab_image
function critical?