Active
Project:
easyrec for ubercart
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2012 at 06:18 UTC
Updated:
5 Dec 2012 at 00:18 UTC
Hi, images not showing in easyerec block, assumes images are not in a subfolder of sites/default/files.
I have my product images in sites/default/files/product_images/ but the block ignores this. It's probably hard coded in the module to just use 'sites/default/files' and append the filename (at a guess). But this should really utilise the uri value as I assume this would also raise an issue if images were stored in private files directory.
Drupal 7.12
easyrec 7.x-1.4
Comments
Comment #1
Salif commentedHi, I have the same issue
After enabled and configured the module, I've received this message:
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in _locale_parse_js_file() (line 1472 of /home/savabien/public_html/includes/locale.inc).
Warning: file_get_contents(http://demo.easyrec.org:8080//api-js/easyrec.js) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in _locale_parse_js_file() (line 1472 of /home/savabien/public_html/includes/locale.inc).
Thanks for your help and suggestions
Comment #2
david.mann commented@salif: it seems like your php.ini is configured to disallow fopen on external URLS
http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-...
hope it helps you to solve the problem...
Comment #3
Salif commented@David Thanks for posting this.
I will give it a try any way
But I've made some search about the allow_url_fopen that has been disabled for security reasons.
And I'm using a shared server with a2hosting.com
http://drupal.org/node/310519
Should this post bellow be an alternative to allow_url_fopen = on in the case of Drupal?
http://www.learnphponline.com/errors/url-file-access-is-disabled-in-the-...
Comment #4
david.mann commentedi think you can disable JS caching - that should fix your issue
and i plan to include teh easyrec.js file in the next version...
Comment #5
inky@inky3d.com commentedI am also coming across the same problem as originally posted by @dean.p
@Salif's problem may have been solved, but that seems to be different from the original bug reported.
Comment #6
david.mann commentedwhat exactly is your proglem ?
if you dont see any images check if they are visible when you log into your easyrec instance
then check which url is used on the created HTML
which drawing callback you use ?
just use the VIEWS 3 callback it should be fine !
Comment #7
kmare commentedhello,
I'm having the same problem. It looks like the module is not able to get the right path for the image, when it resides in a different folder different than /sites/default/files/ .
For example, in my ubercart setup, the product images are located under /sites/default/files/uc_products/ .
E.g. using the jcarousel plugin, I can see that the image loading fails because it's looking for /sites/default/files/myproduct.jpg and not /sites/default/files/uc_products/myproduct.jpg
Any help fixing this problem? Other than that the module is working really well..
Thank you