Home Joomla Very Simple Image Gallery - FAQ & Troubleshooting
2010-03-12
Very Simple Image Gallery Plugin FAQ & Troubleshooting
Written by Andreas Berger   
Sunday, 27 September 2009 17:48

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 {vsig}folder{/vsig*} is shown - usage in module position

 

 

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

Starting with version 1.5.4 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 Very Simple Image Gallery uses this extension to create the thumbnails.
To get more information than the plugins configuration panel offers 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 Very Simple Image 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 Very Simple Image 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 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 {vsig}folder{/vsig*} is shown - usage in module position

If the frontend shows the code - {vsig}folder{/vsig*} (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.

If you use this extensions, please post a rating and a review at extensions.joomla.org. Furthermore I appreciate everyone, supporting me with a link back to www.bretteleben.de on his/her website. The extension itself does not produce any hidden links, eastereggs or whatever.

Last Updated on Tuesday, 19 January 2010 19:39
 
Comments (141)
z-indexing issue with drop down menus
141 Tuesday, 09 March 2010 11:32
alefmemalef
Hi,
didn't find the solution in the swMenuFree forum, but did find one in the support of Superfish. Here's the link and thanks again -
http://webdemar.com/webdesign/superfish-jquery-menu-ie-z-index-bug/
thank you
140 Tuesday, 09 March 2010 10:14
alefmemalef
thank you for the great extension and for your help
@alefmemalef
139 Monday, 08 March 2010 22:04
A. Berger
Hi alefmemalef!

This is a know flaw of the swfmenu. Internet Explorer executes zIndex-settings only for elements having set the CSS attribute "position" (relative or absolute). This setting is to add to the drop-downs. As far as I know from former requests, this problem has already been addressed in the support forum of the menu extension.

Best regards
Andreas
Very Simple Image Gallery with swmenufree in ie7 and ie6
138 Monday, 08 March 2010 07:06
alefmemalef
Hi,
I'm building a website which uses Very Simple Image Gallery to display a portfolio of works. The top menu is a dropdown menu, which in ie7 and ie6 drops down behind the photo gallery. In other browsers there is no problem, in text pages the menu drops down over the text, so I'm assuming I need to fix something with the vsig. I've tried z-indexing classes related to the vsig under classes related to the swmenufree, but it didn't help.
Is there a way to solve this problem ?
@Micah Choquette
137 Thursday, 25 February 2010 20:11
A. Berger
Hi Micah!

The - just uploaded - version 1.5.5 should fix the problem.

Best regards
Andreas
navigation between sets not working
136 Thursday, 25 February 2010 19:14
Micah Choquette
Hey there. Seems like a nice plugin, but I'm having an issue. For some reason, it won't navigate between the sets. The example is here:

http://www.centraltech.edu/component/content/article/369-open-house-2010.html

Can you help? Thanks in advance.
@brian
135 Wednesday, 24 February 2010 22:02
A. Berger
Hi brian!

Joomla! provides hooks that allow plugins to write data to the head of the page. The Very Simple Image Gallery uses this functionality to place JavaScript and CSS where it belongs.
The problem: Your template ignores this essential functionality of Joomla! and does not load the Joomla! head data.
This causes the plugin to fail.

I would suggest to either add the snippet to include head data (not only for this plugin but for a lot more of functionality) or to switch to another template the allows Joomla! to work as designed. Another pro of doing so would be that not every single page of your site comes with the title "Custom Casket Company - Main Page". The title is just one piece of data, Joomla! is able to deliver dynamically.

Best regards
Andreas
static images, no slide show
134 Wednesday, 24 February 2010 21:31
brian
I am trying to create a slideshow with 4 images, but after embedding the code in the article, I see the 4 images, no scrolling no change - just 4 images.

I am getting a bunch of stuff in the source code, but there doesn't seem to be anything moving - just div's and img src's

I tried to paste the code here, but couldn't, it can be viewed here:

http://customcasketcompany.com/joomla/index.php?option=com_content&view=frontpage&Itemid=53

any help would be great.
Link to menu not working.
133 Tuesday, 23 February 2010 23:21
Jimmy Nolan
My fault had too many things turned off. Compared to a my other web site that is similar and copied settings. Can't be sure which one it was though.
Sorry for the trouble.
Regards:Jimmy
@Josh
132 Monday, 22 February 2010 21:21
A. Berger
Hi Josh!

The JavaScript framework/library JQuery you load in addition causes the JavaScript of the gallery to fail. Please don't ask me why - I can tell you that it is caused by the way JQuery modifys the approach to the DOM (nodes especially), but up till now I have not worked through 56kB of compressed JavaScript - and I'm not sure if I will at all.

Best regards
Andreas