Posted by Richard Dyck on October 30, 2008 at 5:36am
| Project: | jcarousel block |
| Version: | 6.x-1.5 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I believe I've set everything up properly: added an imagefield field to the Story content type, downloaded all the necessary files and configured things as indicated in the docs, then uploaded 5 images. This is on a Drupal 6.6 site using the Zen theme and everything is up to date. The carousel block shows up and contains the proper number of frames to hold the images I've uploaded, but the frames are empty.
Any hints?
Comments
#1
can you provide a link of the empty images?
#2
Sorry but the site's on my Powerbook in MAMP. I've attached a screenshot, in case that's of any use.
#3
The screen shot is not really helpful... I thinks it might be a duplicate of #327427: Drupal in sub dir but jcarousel block looking in root
#4
I quickly set up a site at [removed site url] that is a duplicate (all the same modules, etc.) of my MAMP site and...well...jcarousel works. So that isn't very helpful either. Maybe it's a MAMP thing. Could that be?
#5
wait a minute.. You say MAMP? Mac? Is your GD library working? I relied on imagefield to generate the thumbnails but it requires either GD or ImageMagick library to manipulate the images.
As far as I know Mac OS X comes with a PHP without GD, could it be your case?
#6
I wondered the same thing. I've attached a screengrab of MAMP's php GD settings which indicates GD's available:
GD Support: enabled
GD Version: bundled (2.0.34 compatible)
FreeType Support: enabled
FreeType Linkage: with freetype
FreeType Version: 2.3.4
T1LIB Support: enabled
GIF Read Support: enabled
GIF Create Support: enabled
JPG Support: enabled
PNG Support: enabled
WBMP Support: enabled
XBM Support: enabled
I don't know much about this stuff, though.
#7
I think I fixed it. The problem was the one described in forum post #327427. However, version 1.5 didn't fix it. It broke the on-line jcarousel_block that I had working with version 1.4. Examining the html produced by the module showed that a '/' was missing after $base_url. So in imagefield.inc I changed...
$formatted_image['path'] = $base_url . $image['filepath'];
$formatted_image['thumb_path'] = $base_url . $thumb_path;
to
$formatted_image['path'] = $base_url . '/' . $image['filepath'];
$formatted_image['thumb_path'] = $base_url . '/' . $thumb_path;
...and now it works both on-line and in MAMP.
Does that seem right?
#8
thank you very much! commited
#9
Automatically closed -- issue fixed for two weeks with no activity.