|
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.
|
Hello
thanks for a fantastic gallery. I do have a problem though.
on the pages I use the gallery I have a dot on the upper left corner of the page - 100px above and 100px to the left of the actual gallery.
checking with firebug I got - #becssg_pre_7_0 {height:5px;left:-100px;overflow:hidden;position:absolute;top:-100px;width:5px;}
how can I override that problem in a way it will solve it in all my galleries (I am planning on using a lot of them in the site)
http://www.tradewinds.mgdesigns.biz/index.php/tradewinds/7-tradewinds-pendant
Hi Charles!
Of course you are right.
Thanks
Andreas
Andreas wrote:
...open the file /plugins/content/becss.php...
You probably meant:
...open the file /plugins/content/becssg.php...
Hi Amir!
The plugin uses a little trick to preload the images. It places them in a 1x1 pixel div, and moves this div out of sight using an absolute position of -100/-100. In your case, the configuration of the template tells the plugin that the zero-point is not the real one at the top left of the page but the top left of the content area. This moves the preloads into sight.
To solve this, just open the file /plugins/content/becss.php with a text editor.
In line 307 replace:
$csstoinsert.="#becssg_pre_".$identifier." {position:absolute;top:-100px;left:-100px;width:5px;height:5px;overflow:hidden;}\n";
with:
$csstoinsert.="#becssg_pre_".$identifier." {position:absolute;top:-1000px;left:-1000px;width:5px;height:5px;overflow:hidden;}\n";
Save, done. You just moved the preloads from -100/-100 to -1000/-1000.
Best regards
Andreas
Hi.
Thanks very much for this fantastic plugin. I just have one problem. The text in my captions is cropped as in you cannot see the bottom of any of the letters. Is there a way I can fix this?
The second image on the link below shows the problem I am having.
http://www.chris.host-4u.co.uk/index.php?option=com_content&view=article&id=1&Itemid=2
Regards
Phil
Hi Phil!
At first - sorry for my late respone.
Second - when checking your site yesterday I noticed that you already solved the problem by showing the captions below the main image which seems to work fine.
Best regards
Andreas
Hi!
First of all cssgallery is an excellent plugin. it's exactly what we need!
One thing though, i can't seem to disable the links from the main photo and the thumbnail. I've set the parameter Use links to "No" in the plugin configuration, and have also put "links=0" into the article code. However clicking on the thumbnails and the photo still takes you to the original photo.
The reason for disabling this is i'm using a lightbox with a custom layout for the gallery. Clicking on a link within this causes the standard layout to be loaded which breaks the content.
Thanks,
Robin
Hi Robin!
The thumbnails always link to something. They are links and the whole gallery is based on the fact that links allow to work with pseudo CSS classes (hover) crossbrowser. Anyway, if you disable the feature "Links" or just don't set links, the thumbnails link to an anchor at the top of the main image.
What the thumbnails never will do (except you explicitly told them to) is to link to the original image. The path to this image is not part of the output of the plugin. If you mean the main (large) image, yes, this is the desired behavior. The original image, no.
If you could provide a link to the page with the gallery, I will have a look at it.
Best regards
Andreas
The plugin worked fine at one server. But when I shifted the host, a blank page appears when the link to the gallery is clicked. No error message.
I checked, GD Library has been activated. Write permissions present for all sub folders of images/stories folder.
Could it be the php version that is not allowing the component to work? The php version, we have on the new server is 4.3.9, whereas, the version on the previous server (where the plugin worked fine) was 4.4.9
Kindly help me sort this out as this is extremely urgent.
Thanks in advance.
Hi Sukanya!
I suggest to go to the backend > configuration > server and increase the "error reporting level" to "maximum". This should give you an error instead of a blank page. If the GD lib is working and the used file type is supported, the error is probably caused by hitting the memory limit. The page "FAQ&Troubleshooting" deals with this error in detail. In short: Use smaller images (smaller in terms of dimension).
Best regards
Andreas
Hi. I was wondering if you could tell me where I could make changes to the caption text size and background. I would like to make them a little bigger. Thanks for all your work on this great plugin.
Hi Matthew!
The CSS Gallery comes without an external stylesheet because it makes heavy use of absolute positioning and there creates mose of the CSS settings on the fly. If your project requires changing the layout I would rather have a look at my other gallery plugin, the "Very Simple Image Gallery" (menu at the left). It comes with an external stylesheet (/plugins/content/plugin_vsig/vsig.css) and is therefore easier to modify.
Best regards
Andreas
Hi Andreas,
First i would like to say, that this plugin is very nice.
It is just what I've been looking for to help my family whit ther web page.
However, I have a problem with the plugin.
The first article I used the plugin, behaves just as it should, but trying on other articles, the pictures does not show. Only a blank field where the picture should have been, and below the picture name.
I have read all comments on this page, and couldn't find anyone with the same problem. That is why I hope, you can help.
If ypu have an idea, to solve the problem, I would be very pleased.
The page where the plugin works:
http://mopse.dk/index.php?option=com_content&view=article&id=47&Itemid=55
And the page where the plugin behaves weird:
http://mopse.dk/index.php?option=com_content&view=article&id=46&Itemid=57
As you can see, the last page just shows a blank space where the picture should have been and below that the filename.
Regards
Magnus
Hi Magnus!
The situation gets more interesting from posting to posting.
- the file type is jpg
- the GD library seems to be OK because there is no fatal error
- you say the directory permissions are fine (755/644)
- the gallery displays
but: the plugin does not scale the image.
Next (and hopefully last) try: Rename the image file. Call it "a.jpg". Maybe the blanks and special characters are causing the problem. If you want to tell a story with your image, the feature "Captions" offers more options to do so than the image file name.
Best regards
Andreas
Hi Andreas,
Once again, thank you for being so helpful :-)
I've just tried to make a new directory, with the file permissions provided by you, and I uploaded a regular .jpg image to the folder, but the error stille occurs.
The links for the web page is:
Main: http://mopse.dk
The article containing the working gallery: http://mopse.dk/index.php?option=com_content&view=article&id=47&Itemid=55
The article containing the gallery I can't view: http://mopse.dk/index.php?option=com_content&view=article&id=55&Itemid=54
Any ideas?
Regards.
Hi Magnus!
Please go on tsting with image of file format JPG (not JPG2000), just to make sure we are dealing with only one problem.
Next, please check the directory permissions of the directories you created for the images. The directories should be set to 755, the files within to 644.
In addition - even if it produces an error - if possible please provide a link to the page again. I will check it.
Best regards
Andreas
Hi Andreas,
Thank you for your very fast reply.
Unfortunately uploading the images in .jpg does not solve my problem.
I have tested a bit further, and I see that the the images are only shown correct, when they are located in images/stories/billeder
When I use that direction, it is possible to show any picture corrrect. If I make another direction for a new gallery in another article, the error occurs.
Ever heard of that problem before?
Regards
Magnus
Hi Magnus!
The problem is caused by the images. The working gallery uses JPGs, the failing one trys to use PNGs. Usually the gallery has no problems with PNGs but I already had similar requests here and the images in these cases have been 24bit PNGs too and - they have been created using an update version of Adobe Creative Suite.
If you give it a try you will see that InternetExplorer (at least version 7) in not able to open the original PNG you uploaded at all. I would try to open the images with another image manipulation program, save them again and reupload them. This may help.
Best regards
Andreas
HI,
I found from a previous post, which I probably should have read before making a post of my own, that you must still make the original call to the gallery before making the call to create the captions. The following code now works perfectly:
{becssg}cssgallery{/becssg}
{becssg_c}0||MyName|MyText{/becssg_c}
Hi Andreas,
firstly - the plugin is great and just works. Well everything apart form the captions, I just cannot seem to get them going. I have checked out Section C - Captions in the "Howto Plugin Code" but still nothing works.
Here is my code for calling the gallery: {becssg}cssgallery{/becssg} this works fine.
So if i try to put a caption on the image pic01.jpg i try {becssg}cssgallery|pic01.jpg|myCaption|myText{/becssg} and it doesn't work. Is there something I am doing wrong? Other syntax I have tried which should result in the same title and text on each image: {becssg}cssgallery||myTitle|myText{/becssg}
Man mussFixed Startimage aud Nein setzen, einfach und Genial.
Ich habe ein kleines Problemchen... Alle Bilder sollen Namen und Text haben, haben sie auch.. nur der Text vom ersten Bild geht entweder nicht weg oder wir noch zusätzlich eingeblendet?!
Hier der Aufruf:
{becssg}kinder|caps=1||prld=1{/becssg}
{becssg_c}0|Bhutan_001.jpg|Kinder|aus Bhutan1{/becssg_c}
{becssg_c}0|Bhutan_002.jpg|Kinder|aus Bhutan2{/becssg_c}
{becssg_c}0|Bhutan_003.jpg|Kinder|aus Bhutan3{/becssg_c}
{becssg_c}0|Bhutan_004.jpg|Kinder|aus Bhutan4{/becssg_c}
{becssg_c}0|Cape_Coast.jpg|Kinder|aus CapeCost{/becssg_c}
{becssg_c}0|Elmina.jpg|Kinder|aus Elmina{/becssg_c}
{becssg_c}0|Sekundi.jpg|Kinder|aus Sekundi?{/becssg_c}
{becssg_c}0|Tongo.jpg|Kinder|aus Tongo{/becssg_c}
{becssg_c}0|Fete.jpg|Kinder|aus Fete, oder machen die eine?{/becssg_c}
Der Pfad stimmt(sonst würden die Bilder ja garnicht gezeigt...der Text wird auch gezeigt, aber der Text vom Bild: Bhutan_001.jpg geht nich wech?!
Wenn das gehn würde wow.