Hallo,
ich bin etwas ratlos. Ich hab die wt-gallery in verschiedene Homepages integriert, bisher ohne Probleme. Bei einem eigenen Projekt hakts aber.
Es kommt folgende Fehlermeldung:
Fatal error: Call to undefined function: imagecreatetruecolor() in /html/typo3conf/ext/wt_gallery/pi1/class.tx_wtgallery_pi1.php on line 611
Ich hab überhaupt keinen Plan, was das bedeuten kann.
Weiß jemand von Euch Rat?
Grüße, kaktus
So sieht die Zeile 611 aus:
$tmpPic=imageCreateTrueColor($x,$y);
Und jetzt?
Grüße, kaktus
Hallo
Die Extension benötigt min. PHP 4.0.6 - welche PHP Version ist im Einsatz?
Im Notfall durch diese Funktion ersetzen:
imagecreate($x,$y);
php 4.3.3, typo3 3.8.1
Soll ich die Zeile 611 durch imagecreate . . . ersetzen?
Was bewirkt diese Änderung? Irgendwelche Einschränkungen?
Grüße, kaktus
Andererseits ist das schon sehr komisch - das steht auf PHP.net - eventl. hilft das:
Here's how I resolved the "Fatal error: Call to undefined function: imagecreate()" error using Gentoo:
1) add a USE flag for gdb in /etc/make.conf
USE="3dnow avi [whatever else you have] gdb"
Note: here's a list of all of the USE flags:
http://www.gentoo.org/dyn/use-index.xml
2) unmerged mod_php
*Note* It could take awhile to "remerge" as it may need to compile several dependancies...do this during not production hours and have a backup if you absolutely cannot have downtime
emerge -C mod_php
3) emerged mod_php
emerge -p mod_php
# find out if it's going to take awhile
4) edit /etc/php/apach2-php4/php.ini
uncomment the "extension=php_gd2.dll" line
5) Restart apache2
/etc/init.d/apache2 restart
Hope this helps!
Das ist natürlich auch nicht uninteressant:
Depending on your PHP and GD versions this function is defined or not. With PHP 4.0.6 through 4.1.x this function always exists if the GD module is loaded, but calling it without GD2 being installed PHP will issue a fatal error and exit. With PHP 4.2.x this behaviour is different in issuing a warning instead of an error. Other versions only define this function, if the correct GD version is installed.
Die Pages, wo ich wt-gallery ohne Probleme integrieren konnte, laufen mit PHP 4.4.1.
Bevor ich irgendwelche Experimente mache, deren Auswirkung ich nicht kenne, lasse ich erst mal meine PHP Version updaten. Evtl. sollte ich mich ja auch langsam von typo 3.8.1 verabschieden. Gefällt mir aber auch nicht unbedingt.
Na, ich melde mich.
Grüße, kaktus
Es lag tatsächlich an der PHP Version. Nach einem Update auf PHP 4.4.1 läuft alles bestens.
Einen Wermutstropfen hat die Sache aber doch; ich hab zwischendurch von 3.8.1 auf 4.1.1 geupdatet. Lief problemlos, wenn man davon absieht, dass sich der RTE (htmlarea) komplett verabschiedet hat. Den hab ich ersetzt durch tiny_rte. Geht auch gut.
Nur die Performance im Backend hat gewaltig nachgelassen. #angry#
Grüße, und danke für die Hilfe!
kaktus
Nach einigen Aufräumarbeiten passt jetzt auch die Performance wieder.
Danke an den Support von Mittwald für die Hilfe!
Grüße, kaktus
imagecreatetruecolor
(PHP 4 >= 4.0.6, PHP 5)
imagecreatetruecolor — Create a new true color image
Beschreibung
resource imagecreatetruecolor ( int $width, int $height )
imagecreatetruecolor() returns an image identifier representing a black image of the specified size.
Depending on your PHP and GD versions this function is defined or not. With PHP 4.0.6 through 4.1.x this function always exists if the GD module is loaded, but calling it without GD2 being installed PHP will issue a fatal error and exit. With PHP 4.2.x this behaviour is different in issuing a warning instead of an error. Other versions only define this function, if the correct GD version is installed.