ERROR: Fatal error: Call to undefined function imagecreatefromjpeg() oder imagecreatefromgif() oder imagecreatefrompng()
ERROR: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes)
PROBLEM: Nur der Code {becssg}ordner{/becssg*} wird angezeigt - Darstellung in Modul
ERROR: Fatal error: Call to undefined function imagecreatefromjpeg() oder imagecreatefromgif() oder imagecreatefrompng()
Ab Version 1.3.5 tritt diese Fehlermeldung nicht mehr auf. Werden an Stelle der Thumbnails nur die Alternativtexte angezeigt, dann überprüfen Sie bitte im Konfigurationspanel des Plugins den Status der GDlib.
Die GD Library, kurz GD oder GDlib, ist eine Programmbibliothek zur dynamischen Erzeugung und Manipulation von Grafiken und eine der verbreitesten Erweiterungen von PHP. Die Very Simple Image Gallery greift auf diese Erweiterung zu, um die Vorschaubilder zu erzeugen. Um über die Hinweise im Konfigurationspanel des Plugins hinaus zu überprüfen ob und wenn ja in welchem Umfang diese Erweiterung am Server zur Verfügung steht, ruft man im Joomla! Administrationsinterface den Menüpunkt Hilfe > Systeminfo >PHP-Information auf. Auf dieser Seite sucht man nach "gd". Im Optimalfall findet sich ein Abschnitt mit folgendem oder ähnlichem Inhalt:
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
Die erste Zeile zeigt an, dass die Erweiterung aktiviert ist, die zweite Zeile gibt Auskunft über die installierte Version. Danach folgen Angaben über zur Verfügung stehende Funktionalitäten und unterstützte Bildformate. Für die CSS Gallery sind die Formate GIF, JPG und PNG von Bedeutung. Ist die GDlib nicht aktiviert oder werden diese Bildformate nicht unterstützt, dann sollte man das (in der lokalen Testumgebung) ändern oder (am Webserver) den Webhoster darauf hin ansprechen, ob eine Aktivierung möglich ist. Ohne diese Erweiterung ist die CSS Gallery nicht einsetzbar.
ERROR: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3264 bytes)
Tritt beim Aufruf der Galerie diese Fehlermeldung auf (die angegebenes Bytes variieren), dann bedeutet das, dass die Erzeugung der skalierten Hauptbilder oder der Thumbnails aus den Originalbildern mehr Arbeitsspeicher in Anspruch nimmt, als der Webserver einem PHP Script zur Verfügung stellt. Man könnte nun entweder (in der lokalen Testumgebung) den Speichergrenzwert hochsetzen oder (am Webserver) den Webhoster darum ersuchen, den Account diesbezüglich besser auszustatten, doch in 99% der Fälle ist die Lösung einfach: Kleinere Bilder!
Vielfach werden Bilder in Auflösungen hochgeladen, die für die Darstellung auf einer Webseite schlicht überdimensioniert sind. In einem üblichen Joomla! Template verbleiben für die Darstellung einer Galerie im Kontext des Inhalts vielleicht 600 bis allerhöchstens 800 Pixel an Breite. Bilder dieses Formats lassen sich - je nach Bild - bereits mit 50 bis 100 Kilobyte in ausgezeichneter Qualität darstellen. Lädt man Bilder direkt von der Digitalkamera hoch, dann haben diese aber Formate von bis zu 3000 Pixel Breite und sind teilweise bis zu 3 oder 4 Megabyte groß. Die Nachteile großer (Dateigröße) Bilder liegen auf der Hand: Der Upload dauert wesentlich länger, man braucht mehr Platz am Server und man verschreckt seine Besucher, denn kaum jemand ist gewillt, auf das Laden eines Bildes von 3 MB oder mehr zu warten. Dazu kommt, dass das Skalieren der Bilder mit einem geeigneten Programm (z.B.: GIMP) wesentlich bessere Resultate bringt, als wenn man diese Aufgabe dem Browser überlässt.
Im Optimalfall skaliert man also die Bilder offline und lädt sie in einem Format hoch, das entweder exakt dem Format entspricht, in dem sie dann angezeigt werden (wenn mand das bereits ausprobiert hat) oder ein wenig größer (ein wenig größer deshalb, weil Browser beim hinaufskalieren noch schlechtere Ergebnisse bringen als beim Herunterskalieren).
Ach ja, die Fehlermeldung verschwindet dann übrigens auch.
PROBLEM: Nur der Code {becssg}ordner{/becssg*} wird angezeigt - Darstellung in Modul
Wird im Frontend keine Galerie sondern nur der Aufruf - {becssg}ordner{/becssg*} (ohne Stern) - angezeigt, dann überzeugt man sich zuerst, dass das Plugin auch aktiviert ist! Ist das der Fall, dann liegt das Problem in vielen Fällen darin, dass die Galerie nicht im Kontext des Hauptinhaltes angezeigt werden soll, sondern an einer Modulposition. Nicht alle Erweiterungen, die anbieten eigenen Content an einer Modulposition anzuzeigen unterstützen die volle Funktionalität des Joomla! Frameworks und damit die Funktionen die das Plugin benötigt um fehlerlos zu arbeiten. Von zumindest zwei Erweiterungen gibt es bislang aber Rückmeldungen von Nutzern, die bestätigen, dass diese Funktionalität bereitgestellt wird.
Eines ist das Modul "Module: Content with Plugins", gelistet bei extensions.joomla.org unter der Rubrik "News Display" > "Articles Embed". Das Andere ist das Modul "Plugin in Module", gelistet bei extensions.joomla.org unter der Rubrik "Core Enhancements" > "Embed & Include".
Für Fragen und Anregungen steht die Kommentarfunktion zur Verfügung. Bitte geben Sie bei Ihrer Frage die verwendete Joomla! Version an und posten Sie bei Problemen - soweit möglich - einen Link zur betroffenen Seite.
Wer für sein Projekt zusätzliche Funktionen oder Adaptierungen über die Möglichkeiten des hier gebotenen Supports benötigt, der ist eingeladen, mich mit einer Beschreibung der gewünschten Leistungen und dem angedachten Budget per Email zu kontaktieren (Menüpunkt "Kontakt" im Topmenü).
Wer die Erweiterung nutzt den bitte ich, sie auf extensions.joomla.org zu bewerten und einen Erfahrungsbericht zu posten. |
Hello,
I just like to know how to insert Captions in my css gallery.
Thanks,
Axel
Hi Axel!
Captions are set using additional lines of code in the article.
Please check part "C.) Captions" at "Howto Plugin Code" (link in the menu at the left).
Best regards
Andreas
Hi andreas,
I am able to get the names of the images but i cant see the images
Hi Srikanth!
Please refer to the first item on this page: "If the gallery shows the alternative text instead of the thumbnails, please check the availability of the GDlib in the plugins configuration panel."
If the GDlib IS activated and the used image file type IS supported, please provide a link to the page, I will have a look at it.
Best regards
Andreas
Hi.
I have uploaded the extension and the gallery, activated everything, however, it's not showing the pics. I am running Joomla 2.5, just wondering if the parameters are different... {*becssg}image/shadow{/becssg*} (without the astericks) should this be the code?
www.renegadeproductions.com.au/index.php/gallery/in-the-shadow-of-the-wild
Thanks
Hi Lauren!
The parameters will be the same ... as soon as a version for Joomla!2.5 is available. :)
Maybe you want to use the "Very Simple Image Gallery" (link in the menu at the left) meanwhile.
Best regards
Andreas
I've just posted a comment, put I have already figured out what was wrong..
I didn't changed the CHMOD.
I have found it in an earlier post.. so thanks for your help and keep up the good work!
Please, help!
I'm building my own website, and I have just installed this plugin. The installation was really easy, but now I've made a folder for my pictures, at first my website said: could not create dictonairy (something like ...images and ... thumbs) so i made 2 folders and that problem has solved. But now my website won't show my pictures, it shows a sign, you normally get when you'r computer can't read the image.
I'm working with joomla1.7
Sorry for my english, hadn't had a english lesson for about 6 years.
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
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
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
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
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
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
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
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
Hi, I have a problem, everything install perfectly but I only see the thumnails, not the image. Do you have any suggestion??
Best,
Gretel
Hi Gretel!
Could you provide a link to the page please? I will have a look at it.
Best regards
Andreas