Closed (fixed)
Project:
Storage API
Version:
7.x-1.4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2013 at 00:10 UTC
Updated:
5 Dec 2014 at 11:14 UTC
Jump to comment: Most recent
Hello there, I am trying to print links via file_create_url($uri) and unfortunately, this breaks occasionally when using Storage API. The function will return a non-existant local path after Cron has moved the files to a remote storage and thus confront the end-user with a 404 error.
After changing the display method of the container (Serve by redirection to Serve source URL and vice versa), the error is gone but will sporadically re-appear with new files.
What could be the reason for this and how can we fix it?
Comments
Comment #1
30equals commentedYup, got the same problem.
For instance, when using the FTP class, the upload to a subfolder works. But when the image needs to get displayed, it returns the path without any subfolders, so the file doesn't get found..
Comment #2
wmnnd commentedjbrown, could you maybe comment on this?
Comment #3
jbrown commentedWhich uri are you passing to file_create_url()?
Comment #4
wmnnd commentedWell, the uri that is provided by the field, i. e. $item['#item']['uri']
Comment #5
perignon commentedWas this resolved? I am trying to get a clean slate on the issue queue for this module. If this was not resolved, please reopen the issue.