Thumbs do not show with BG

clubdepescadauro - January 17, 2008 - 23:50
Project:Brilliant Gallery
Version:6.x-1.0
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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 !

AttachmentSize
Thumbs do not show on BG.jpg104.47 KB

#1

RedBaron - January 22, 2008 - 14:27

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

Don Pepe - January 26, 2008 - 05:17

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

vacilando - February 20, 2008 - 22:13

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

vacilando - February 20, 2008 - 22:13
Status:active» closed

#5

jack_ruby - March 8, 2008 - 19:17

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.

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

Don Pepe - March 25, 2008 - 05:15

> 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

hiflyer - July 13, 2008 - 13:41
Version:5.x-2.17» 6.x-1.0
Status:closed» duplicate

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

mandmzoom - July 13, 2008 - 17:37

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

hiflyer - July 13, 2008 - 23:26

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

flipip23 - July 14, 2008 - 13:25

Hi

I've got this issue under D6, but GD is working fine. STandard images work fine too...

ANy ideas?

#11

jostein - July 15, 2008 - 17:28

Same issue, Drupal 6 on IIS7 .

I have enabled the GD module in php.ini but didnt help.

#12

hotblack - July 16, 2008 - 10:56

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

hotblack - July 16, 2008 - 11:04

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

dedina - July 16, 2008 - 11:13

Great!!
Now it works to me too.

thanx

#15

jack_ruby - July 17, 2008 - 02:01

Worked for me also!
Thanks!!

 
 

Drupal is a registered trademark of Dries Buytaert.