Home Joomla CSS Gallery - FAQ & Troubleshooting
CSS Gallery Plugin FAQ & Troubleshooting
Written by Andreas Berger   
Tuesday, 24 November 2009 21:04

ERROR: Fatal error: Call to undefined function imagecreatefromjpeg() or imagecreatefromgif() or imagecreatefrompng()

ERROR: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes)

PROBLEM: Only the code {becssg}folder{/becssg*} is shown - usage in module position

 

 

ERROR: Fatal error: Call to undefined function imagecreatefromjpeg() or imagecreatefromgif() or imagecreatefrompng()

Starting with version 1.3.5 this error will not happen any more. If the gallery shows the alternative text instead of the thumbnails, please check the availability of the GDlib in the plugins configuration panel.

The GD Library, short GD or GDlib, is a program library to dynamically create and manipulate graphics and one of the most widespread extensions of PHP. The CSS Gallery uses this extension to scale the main images and to create the thumbnails.
To check if the GDlib is activated on your server go to the Joomla! administration interface and open Help > System Info >PHP-Information. On this page search for "gd". In the best case you will find a chapter with the following or similar content:

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

The first line shows, that the extension is enabled, the second line holds the installed version. The followup lines hold information about available functionality and supported file types. For the CSS Gallery the file types GIF, JPG and PNG are of importance.
If the GDlib is not activated or these file formats are not supported, you should (on your local test environment) activate it or (on the web server) ask your hoster if it is possible to add this feature. Without the GDlib the CSS Gallery cannot be used.

 

ERROR: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes)

If you get this error (amount of bytes will vary) when trying to open a page that contains a gallery, the amount of memory PHP needs to create the scaled main images or the thumbnails exceeds the set maximum amount of memory a PHP script is allowed to use.
One possible solution would be to increase this amount (on your local test environment) or (on the web server) to ask your hoster if it is possible to enhance your account but - with a probability of 99% - the simple solution is: Smaller images!

In many cases images get uploaded far to large for web use. A common Joomla! template offers for a gallery in the context of the main content from 600 up to 800 pixel of width at the maximum. Images of this size can be displayed at excellent quality with - depending on the image - 50 up to 100 kilobyte. If you upload your images as they are saved from your digicam, they often come with dimensions up to 3000 or 4000 pixel of width and 3 or 4 megabyte of size.
The disadvantages of such large images are obviously: The upload takes a long time, you need a lot of space on your server and - important - scarcely any visitor is willing to wait for an image of 3 or 4 MB to load. Furthermore scaling an image offline with an appropriate program (e.g.: GIMP) gives you much better results than leaving it up to the visitors browser.

In the best case you scale your images offline to a format that exactly matches the size you are going to display them on your page (if you already fine tuned the gallery) or is a little above this size (above because browsers are still worse in up scaling images than they are in down scaling them).

By the way - doing so, the error disappears too.

 

PROBLEM: Only the code {becssg}folder{/becssg*} is shown - usage in module position

If the frontend shows the code - {becssg}folder{/becssg*} (without asterisk) - instead of the gallery, the first thing to do is to check if the plugin is activated. If it is and the problem persists, in most cases you are trying to display the gallery on a module position instead of the context of the main content.
Not all extensions, that offer to display custom content on a module position, are supporting the whole functionality of the Joomla! framework and with it the functions the plugin needs to work properly.
Up till now two extensions are reported to offer the needed functionality:

One is the module "Module: Content with Plugins", listed at extensions.joomla.org under "News Display" > "Articles Embed".
The other is the module "Plugin in Module", listed at extensions.joomla.org under "Core Enhancements" > "Embed & Include".


If you have questions or suggestions, please use the comment-function. Please include the installed Joomla! version and if you have problems - if any possible - the affected page in your comment.

If you need additional features or customizations for your project that exceed the scope of support offered through the comments, you are invited to submit your requirements specification and the planned budget by email (menu item "Contact" in the menu at the top).

If you use this extensions, please post a rating and a review at extensions.joomla.org.

Last Updated on Thursday, 17 February 2011 20:41
 
Comments (66)
Same Problem
66 Saturday, 29 October 2011 09:23
domc

You're right in that in the original this parameter is not set, and in the 1.7 version it is set (although originally it wasn't by I tried altering most parameters to get it to work). I tried switching it back to 'no' but this doesn't help.

Many thanks for looking at this problem
Kind regards, Dominic

@domc
Sunday, 30 October 2011 21:42
A. Berger

Hi Dominic!

The only thing I can offer at the moment is to put the problem aside and post a link as soon as the site is available online.

Best regards
Andreas

Same Problem
65 Friday, 28 October 2011 07:42
domc

Thanks for the reply.

I'm not sure it is the template as I tried it with two of the other J1.7 templates which also had the same problem.
I had a look in firebug at the output - specifically the computed CSS styling for area for the photos. In the J1.5 version that works, this has a background image which is set. In the J1.7 version the background image is set to none.
But as I mentioned the display of the thumbnails, and the changing of the captions is still happening fine.

Kind regards, Domc

@Domc
Friday, 28 October 2011 17:35
A. Berger

Hi Dominic!

Is it possible that you had the parameter "Use fixed startimage?" set to "Yes" in Joomla!1.5 whilst it is set to "No" in Joomla!1.7?

Best regards
Andreas

Same problem / thumbnails but no images
64 Saturday, 22 October 2011 08:28
Domc

I really like this pluggin which has been working perfectly in J1.5.


I've upgrated to 1.7 and have a similar problem to the comment below, the thumbnails are showing perfectly but not the main picture.


Also the captions don't seem to be clearing properly - there's like a greyish copy of the previous copy underneath the new caption.


Any ideas please?


Many thanks, Dominic

@Dominic
Wednesday, 26 October 2011 18:25
A. Berger

Hi Dominic!

I'm just preparing the Joomla!1.7 version of this plugin (not much more than changing the version number in some files) and had no problems whilst checking it. Is it possible that the problem is caused by the template you are using? Does a switch of the template solve it?

Best regards
Andreas

About call captions and descriptions
63 Saturday, 15 October 2011 10:15
Caterina Cirri

Dear Customer, First of all many compliments for your wonderful plugin! I am managing a website for a customer wanting to show 15 different collections of shoes, each with a principal model plus 3-4 variants; So that I created 15 different articles, and then in each I made the call {becsg} ....{/becsg}. The folders are stored in a 'galleries' folder, so that my call is galleries/galleryname. All works perfectly, but now my customer wants to introduce captions and comments. I can't understand how to call in each article with the string {becssg_c}gallery-number|imagefile|caption|text{/becssg_c} , because my galleries are stored by folder name, in increasing order bahamas bevery hills.... BUT my customer really wants a different sorting way, in order of relevance. Must I change the folder names in 0-1, without taking care of the names? Thanks a lot, it's very urgent!! Caterina

@Caterina Cirri
Wednesday, 26 October 2011 17:23
A. Berger

Hi Caterina!

The "number of the gallery" is the number of the galleries within the current article, sorted by occurrence within the article, starting with "0".
This means, if you have put every single gallery into a separate article, the value for this parameter is always "0".

Best regards
Andreas

I only see thumbnails
62 Saturday, 11 June 2011 23:33
Gretel

Hi, I have a problem, everything install perfectly but I only see the thumnails, not the image. Do you have any suggestion??

Best,
Gretel

@Gretel
Monday, 13 June 2011 20:52
A. Berger

Hi Gretel!

Could you provide a link to the page please? I will have a look at it.

Best regards
Andreas

not display filename
61 Monday, 23 May 2011 21:55
gdwoods

Is it possible to disable the thumbnail tooltip completely? Also, if I mouse over the main image (not a thumbnail) it disappears. Can you tell me how to fix that?

@gdwoods
Tuesday, 24 May 2011 21:20
A. Berger

Hi gdwoods!

To disable the tooltips add the code for an empty default caption to the code of the gallery:
{*becssg}yourfolder{/becssg*}
{*becssg_c}0|||{/becssg_c*} ...without the asterisks

To have a fixed startimage, set the parameter "fixed startimage" to "yes".

Best regards
Andreas

Gallery issue
60 Sunday, 15 May 2011 06:18
Wally

I have an interesting problem with the gallery.

I am trying to link the galley up to a site, it has installed and runs with no issues, bar that it cannot find the folder i have put the images in.

Joomla 1.6.3

http://www.deeglass.com.au/index.php/glass-splashbacks

@Wally
Sunday, 15 May 2011 08:30
A. Berger

Hi Wally!

Please check the directory permissions of the folder "glass_splash_backs" (should be 755 for the folder and 644 for the files) because if I try to open the folder directly (http://www.deeglass.com.au/images/glass_splash_backs/), I get an ERROR 403 Forbidden.

Best regards
Andreas

es werden keine Bilder gezeigt
59 Tuesday, 26 April 2011 17:22
starpp

Folgendes ist bei mir unter den php-Informationen zu finden:

gd
GD Support     enabled
GD Version     2.0 or higher
FreeType Support     enabled
FreeType Linkage     with freetype
FreeType Version     2.3.5
T1Lib Support     enabled
GIF Read Support     enabled
GIF Create Support     enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support     enabled

Daher sollte ja die Gallery funktionieren, macht sie aber leider nicht.
Stattdessen werden die Alternativtexte nur gezeigt.

Woran kann das liegen?

@starpp
Tuesday, 26 April 2011 20:09
A. Berger

Hallo starpp!

Du könntest Dir im HEAD der Seite die Links zu den Bildern (sind als Hintergrunddatei angeführt) und im BODY der Seite die Links zu den Thumbnails ansehen und versuchen sie in der Adresszeile des Browsers direkt aufzurufen. Vielleicht gibt es ein Problem mit den Dateirechten.
Eventuell ist aber auch eine andere Erweiterung Auslöser des Problems. Verwendest Du z.B. den Redim Imagesizer? Wenn ja, dann sortiere ihn im Plugin Manager vor die CSS Gallery.
Wenn Du einen Link zur Seite postest, dann schau ich mir das Ganze gerne an.

Gruß
Andreas

square thumbnails
58 Friday, 11 February 2011 11:27
Rene

Hi,

Is it possible to get square thumnails without making te bigger pictures square? In some other plugins you can set the exact width and height of the thumb.

Thanks!
René

@Rene
Friday, 11 February 2011 20:10
A. Berger

Hi René!

No it is not, but you may want to have a look at the "Very Simple Image Gallery" (menu at the left), another gallery plugin of mine and one of the "other plugins" that allow to do so.

Best regards
Andreas

Plug in only working in one folder
57 Tuesday, 21 December 2010 22:21
Cathy Funderburg

I have one article where the plug in works fine

http://www.brownac.com/joomla/index.php?option=com_content&view=category&layout=blog&id=42&Itemid=55
the article above uses the following code in the article: {*becssg}Gallery_Images/Commercial/WalkinCooler{/becssg*}

I have another folder and another article for the next batch of images and it doesn't show. I have checked the file permissions and the image permissions to make sure they are correct but the images do not show

http://www.brownac.com/joomla/index.php?option=com_content&view=category&layout=blog&id=41&Itemid=61
the article above uses the following code in the article: {*becssg}Gallery_Images/Commercial/WalkinCooler{/becssg*}

I have checked the menus to confirm they are pointing to the correct section/category.

Please assist.
thank you


 


 


 

@Cathy Funderburg
Tuesday, 28 December 2010 13:27
A. Berger

Hi Cathy!

My best guess is that either the page points to the wrong article or the article does not contain the code you posted above. To check this, add the asterisks I added above to prevent the code from getting executed to the code in your article too. Now the frontend-page should show the code with the asterisks. If it doesn't you point to a wrong article. If it does, please post again.

Best regards
Andreas

English
Panoramic Image Viewer
Follow me on Google+

bretteleben.de

Add to circles

Who's Online
We have 39 guests online