Closed (fixed)
Project:
jcarousel block
Version:
6.x-1.5
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2008 at 05:36 UTC
Updated:
27 Nov 2008 at 07:25 UTC
Jump to comment: Most recent file
Comments
Comment #1
yang_yi_cn commentedcan you provide a link of the empty images?
Comment #2
Richard Dyck commentedSorry but the site's on my Powerbook in MAMP. I've attached a screenshot, in case that's of any use.
Comment #3
yang_yi_cn commentedThe 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
Comment #4
Richard Dyck commentedI 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?
Comment #5
yang_yi_cn commentedwait 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?
Comment #6
Richard Dyck commentedI 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.
Comment #7
Richard Dyck commentedI 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?
Comment #8
yang_yi_cn commentedthank you very much! commited