No thumbnails and no images
| Project: | Brilliant Gallery |
| Version: | 6.x-3.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
First of all let me thanks everyone who make possible to have this huge Drupal web. This is a start point without rival to newcomers on Drupal.
I have installed the module BG without any trouble (I´m almost sure as the module works) following the vacilando´s web indications and activating BG tag on filters. I made numberless tries trying to find out what is going NOK without success, doing modifications step by step on every possibility on the admin section via try and error system, activating/desactivating modules could make appear the issue, etc, but I can not solve and fix the issue. I have reviewed the BG issues and there is any similar one.
This issue, as you will see on the attached .jpg file (where appear the aspect of the web I am doing tries on local before launch it in production), is that BG works fine (everything is OK as per my indications on the nodes), the images pop up once clicking and slide properly, but I can not see the thumbs. The only thing that appear is a "X thumb".
I have not idea what is going on...
Thanks in advance for your help !
| Attachment | Size |
|---|---|
| Thumbs do not show on BG.jpg | 104.47 KB |

#1
I've exactly the same problem but still also no answer. I've tried hardly every configuration without success :(
I hope somebody can help us?
#2
Hi. Check your PHP logs. Search something similar to this:
23-Jan-2008 07:07:41] PHP Fatal error: Call to undefined function: imagecreatefromjpeg() in /desarrollo/san
nabis/drupal-5.6/modules/brilliant_gallery/image.php on line 104
If you find this error, the problem is that php is not compiled conveniently.
You need to compile PHP against GD with jpeg support.
Bye.
JM
#3
I agree with pepemaria -- if you do not see thumbs but there are images in Lightbox after you click them, then it is likely that PHP on your server is not capable of converting them on the fly.
To facilitate debugging, in the latest dev version (just submitted, so you'll need to wait a few hours or get it from CVS) I added functionality to BG module's file image.php in such a way that if imagecreatefromjpeg does not work (for any reason) an error message is displayed as an image. You can click on the image (or hover above it) and nicely see also the file name of the picture that has problems showing up.
#4
#5
Not to sound too ignorant, but what does that mean?
Where would I find my PHP logs?
How do I compile PHP against GD?
This plugin works fantastically on my webhost, but fails on my local host (WAMP).
So, I'm just a bit confused
Thanks
Jack
#6
> Where would I find my PHP logs?
PHP log dir is defined in the PHP configuration. See file php.ini. In my localhost (I'm use Linux) this file is
/usr/local/lib/php.ini
And the values of interest are:
error_reporting = E_ALL & ~E_NOTICE
log_errors = On
error_log = /tmp/php.log
The last is the log file location.
> How do I compile PHP against GD?
First, see phpinfo output to check that GD is not supported by your installation. If you need GD, maybe can add GD support with extensions. See:
http://ar2.php.net/manual/en/install.windows.extensions.php
pepe
#7
I have this same problem - but only in Drupal 6.5, not with my 5.7 installation.
Both sites installed on the same host, just different directories.
Why would it work in D5.7 but not D6.3?
No thumbs or images in Firefox3, in IE I get placeholders, no thumbs but images load. No error message (that comment was regarding the 5.x version, is that included in the 6.x version?).
Thanks!
#8
my phpinfo() output is this
GD
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
but i still dont see the images, i just see a black background and the red cross, once i click on the red cross...it gives me the following error
Warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ':2:i:0;s:24:"Content-type: image/jpeg";i:1;s:111404:"/9j/4AAQSkZJRgABAQAAAQABAAD' at line 1 query: UPDATE a:2:i:0;s:24:"Content-type: image/jpeg";i:1;s:111404:"/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MSipKkpIipIiSCsbgCVElJLIWVmKFkFxwugQkwAIYSKgVNxRNxcqTBAAmic4ToGAmIhpQBABRpwwAAA in C:\server\htdocs\drupal\includes\database.mysqli.inc on line 128
Warning: Cannot modify header information - headers already sent by (output started at C:\server\htdocs\drupal\includes\database.mysqli.inc:128) in C:\server\htdocs\drupal\sites\default\modules\brilliant_gallery\image.php on line 38
ÿØÿàJFIFÿþ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 80 ÿÛC %# , #&')*)-0-(0%()(ÿÛC (
this is just snippet of the entire error..
#9
Or maybe this is a Drupal 6 issue somehow? I'm having similar issues with Fast Gallery, straight Lightbox rel tags and plain-old image links. (I would be perfectly willing to admit it's just me since I'm just starting out on Drupal but I'm not having issues in Drupal 5...)
----->Update
Ok, Lightbox and regular image links problems were me with a typo in the code. :-X
#10
Hi
I've got this issue under D6, but GD is working fine. STandard images work fine too...
ANy ideas?
#11
Same issue, Drupal 6 on IIS7 .
I have enabled the GD module in php.ini but didnt help.
#12
Hi have the same error as mandmzoom mentioned in #8. This should be fixed. I think this error comes with Drupal 6.3. In 6.2 it worked fine.
#13
Solution for Drupal 6.3
The solution is very easy. Just use drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); instead of drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); inside the function drupalize() of image.php.
#14
Great!!
Now it works to me too.
thanx
#15
Worked for me also!
Thanks!!
#16
OMG!!! It finally worked. I was busting my balls trying to figure it out.
#17
Good work hotblack - that's fixed it for me too!
#18
i love you, hotblack.
#19
Hey tried to change the image.php but it doesn't work for me.
I have Drupal 6.9
I have GD enabled in my PHP
here is the output of phpinfo on godaddy
http://www.mananchopra.com/try.php
But I still see this black box,
http://www.mananchopra.com/
Can anybody please help I have been trying to get this work for last 15 days.
I will greatly appreciate any help in this regard.
Thanks in advance,
#20
Thanks That work Fine! ;-)
#21
After hours of reviewing the installation instructions, my php configuration, etc., I finally found this post which was also my problem -- I had to edit image.php as described in the previous post! I'm using Drupal 6.10.
Why after all these months is this code change not made in image.php for Drupal 6?
If there's some reason for that, at least list it on the instructions page under "Known / possible problems" - if no thumbs and no images appear, edit image.php: use drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); instead of drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); inside the function drupalize() of image.php.
I would hate to see someone suffer as I did - such a waste of time!
#22
Fantastic - just solved this very frustrating problem :-)
Thanks for the support
#23
I have the same problem using drupal 5.x running on a windows server. Under firefox all I see is black.
I am not sure I can access the php logs as our hosting company as mentioned is running windows and all I have is ftp access and access to mysql.
I am not very computer savy, so any explanation on how to do this would be greatly appreciated.
#24
Hi, i commented out that line and my brilliant gallery as expected( but not all images show up, only few) I am getting this error
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
#drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);
only inside the function drupalize() of image.php.
error:
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1239125353 SET data = 'cache', created = 1238866153, expire = 0, headers = '', s' at line 1 query: UPDATE 1239125353 SET data = 'cache', created = 1238866153, expire = 0, headers = '', serialized = 0 WHERE cid = 'bg_b74b142504fac2b59f7e9a078d6b2572' in /home/riders.in/includes/cache.inc on line 109.
#25
I resolved the issue by changing the where the cache will be done
admin/settings/brilliant_gallery
Database or file system caching of images:
( ) Use the cache table of Drupal.
(*) Use the temporary directory you have set in /admin/settings/file-system. Faster than database caching!
Only images (not the table as such) are cached so that they can be served quicker at subsequent requests.
#26
#27
Hola
Just for the benefit of future searchers. I followed the instructions to the letter and was getting the black box problem on a local Xampp installation of Drupal with Brilliant Gallery. The solution was to change the Drupal bootstrap line as described above.
Once again for search.
Xammp. Brilliant Gallery. No photos.
Cheers
Dave
#28
Downloaded D6 version today. Need to change image.php (drupal_bootstrap) as described above. Problem is not fixed in the downloadable version.
#29
The mystery remains why this worked fine with
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);on most of the systems (all those I've ever used). Anyway -- seems that full bootstrapping will work more generally.Fix applied in 6.x-3.2.
Sorry for the delay :-(
(But it could have been faster if there was a clear patch!)
P.S. See http://drupal.org/node/186863#comment-752115 why
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE);had been used in the first place. But it may have had something to do with the version of Drupal at that time. So let's use the new version and get back if there are further problems.#30
Automatically closed -- issue fixed for 2 weeks with no activity.
#31
Is this works on also for for Fast Gallery ?
If yes, where is image.php ? :d
#32
i am newbie here, I have the same problem using drupal couldn't figure out, i am trying hard now.
#33
Hi I have the same problem.
I am using drupal 6.13 and 6.x-3.x-dev on BlueHost.com
BG