|
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()
Tritt beim Aufruf der Galerie diese Fehlermeldung auf, dann bedeutet das, dass die GD library, eine Erweiterung für PHP nicht aktiviert ist oder das verwendete Bildformat nicht unterstützt. 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 CSS Gallery greift auf diese Erweiterung zu, um die Bilder zu skalieren und die Vorschaubilder zu erzeugen. Um 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".
Das wars! Viel Spass mit dem Plugin!
Für Fragen und Anregungen steht die Kommentarfunktion zur Verfügung.
Wer die Erweiterung nutzt den bitte ich, sie auf extensions.joomla.org zu bewerten und einen Erfahrungsbericht zu posten. Darüber hinaus freue ich mich über jeden, der die Möglichkeit findet, mich durch einen Link zu www.bretteleben.de auf seiner Webseite zu unterstützen. Das Plugin selbst produziert keine versteckten Links oder sonstige Nettigkeiten welcher Art auch immer.
|
Hi,
I've just installed your gallery plugin following your guide, but have come across a problem. In the front end, I get an error page - HTTP 500 internal server error 'the website cannot display the page'. In the article the code is
{becssg}Gallery{/becssg*} (without asterix)
I can't seem to work out why it isn't working! Any help would be much appreciated. Thankyou!
Hi Gabrielle!
Probably there is a fatal error, caused by large image files. If the GD library of PHP needs more memory to create the thumbnails than the setting in your php.ini allows, this causes a fatal error.
If you go to your Joomla! backend and increase the error reporting level (Site > Global Configuration > Server) to "maximum" you will see the error on the page.
The page FAQ&Troubleshooting deals with this error in detail. In short: Use smaller image files.
Best regards
Andreas
Hi Andreas,
I've just installed your wonderful product on a website am working on, unfortunately I've got one of the aforementioned fatal error mentioned on the FAQ, that I can't seem to remedy using the suggested troubleshooting techniques.
The error: FATAL ERROR; Allowed memory size appear's on a few content gallery's I've created (http://www.monakanafani.com/index.php?option=com_content&view=article&id=103&Itemid=124) but seem's to work perfectly on others (http://www.monakanafani.com/index.php?option=com_content&view=article&id=74&Itemid=34).
Could you please have a look at the gallery's I've created on my site under the 'Project' header and advice why some seem to work and other's don't?
Many Thanks
Corrie
Hi Corrie!
You indeed reduced the file size of your images but you did not scale them down, at least not all of them. Stupidly the memory the GD library of PHP needs to create the resource it works with from the original image depends on the dimensions of this image because the GDlib has to read in the image pixel for pixel ... and an image like "tate-zoffani-pictures-099.jpg" with 1582x1027 has .. you got it. Although the image is only 32Kb of file-size, for the GD library it is huge.
Scale down this image (and I'm sure you will find a similar one in the other gallery that produces the error) and the plugin will work fine.
When uploading images please consider that you are showing them online at about 400x300 pixel - everything above is just overkill.
Best regards
Andreas
Btw.: Please don't forget to change user/pass. Thanks!
Hi Andreas,
I’ve installed CSS Gallery at http://www.integrityloungedesigns.com/index.php?option=com_content&view=article&id=7&Itemid=8 but the thing’s not working. The thumbnails are above the gallery. I wanted them below. The gallery displays every image as a thumbnail and full size without having an actual “main image” area.
If you could offer any help on what’s gone wrong here, and how I can avoid the same mistake next time, I’d greatly appreciate it.
Regards,
Josh
Hi Josh!
The template you are using (or an installed extension) prevents either the complete Joomla! head data or at least CSS settings from getting loaded into the head section of your page.
This causes the plugin to fail bacause it adds the CSS settings to exactly these Joomla! head data and - beeing a pure CSS gallery - it heavily depends on them.
So, you have the options to:
- either modify the template and include Joomla! head data
- or (if an extension is controlling what gets loaded) modify the settings of this extension
- or use another template
- or use another gallery (be sure it does not depend on the proper implementation of the Joomla! head data).
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.
Best regards
Andreas
Hallo Andreas,
bitte entschuldige meinen Kommentar, ich bin ein nOOb in Sachen joomla!
Ich hatte einfach im einzubindenden Code ein Leerzeichen in der Pfadangabe --> so hier {becssg}cssgallery {/becssg},
,ist natürlich falsch.
Die Schrift wird im Editor sehr klein dargestellt, habe ich einfach übersehen.
Danke für den Support.
Kai
Hallo,
danke für dieses schöne Plugin.
Ich bekomme auf den Frontend leider diesen Fehler:
"Warning: filemtime() [function.filemtime]: stat failed for C:\xampp\htdocs\Joomla150_1/images/stories/hbs/cssgallery /alpin_erlbach 556 small small.jpg in C:\xampp\htdocs\Joomla150_1\plugins\content\becssg.php on line 124
Failed creating thumbnail directory C:\xampp\htdocs\Joomla150_1/images/stories/hbs/cssgallery /thumbs/Failed creating image directory C:\xampp\htdocs\Joomla150_1/images/stories/hbs/cssgallery /images/"
Das thumbnail directory wurde aber erstellt.
Danke&Grüße
Kai
Hallo Kai!
Überprüfst Du bitte mal dei Rechte der Originalbilder? Die sollten auf 644 gesetzt sein.
Gruß
Andreas
Hello, thank you, the gallery is great. But there are no title and/or text with every single picture (Captions) : ( "Show captions" is activated.
Thanks,
Irta
Hi Irta!
Please have a look at the page "Howto Plugin Code", Section C.) explains hot to use the feature "Captions".
If you have problems getting it up and running, please post the code you use in your article plus - if any possible - a link to the page.
Best regards
Andreas
Hi, Andreas,
In CSS gallery demo on main biggest picture' bottom is shown tittle or some text. I have not found how to do that. Thanks in advance. Irta
Hi Irta!
I'm sorry, but it seems we have little misunderstanding: The plugin does not work like a fortune cookie where the text already is inside but you have to set the Captions (using additional code) within your article. You may want to have a look at the page "Plugin Howto Code", it describes how this feature works.
If you already added the code for captions but they don't work - please provide the code you used in your article plus - if any possible - a link to the page. I will have a look at it.
Best regards
Andreas
I can see all the thumbnails no problem but the space where the main image should be is blank. I've tried in all three of the templates that come with Joomla 1.5.15 and in different browsers but I'm just not getting anywhere.
Hi Scott!
You could try to temporarily deactivate other installed extensions that modify images in content. Maybe one of them is conflicting with the gallery. If so - please tell me which one, usually it takes only a few steps to solve the problem. If this is not the reason, please provide a link to the page, I will have a look at it.
Best regards
Andreas
Please provide a link to the page, I will have a look at it.
Best regards
Andreas
I really like this css gallery, it's so easy but I have problem with the thumbnails, how can I center them under the viewer?
Is it possible?
please help me.
lissa
new {vsig}anmiegallery{/vsig}
It was just a / to much, the confusing part is, that the images an links was apearing, the thumbs not.
In The Plugin Config is already a / at the end ^^
Now its working and i love it, thx :)