Page 1 of 1

File upload - Error

Posted: Mon 15. Dec 2003, 10:54
by Narcanti
Hi,
I managed to install phpwcms on an Apache-Server with PHP 4.3.4 without problems. But now I have an error when uploading images
with the file-browser. Imagick is off and I want to use GD.
After I try to upload an image I see this:
Fatal error: Cannot instantiate non-existent class: hft_image in /var/htdocs/path_to_cms[replaced]/include/inc_lib/imagick.convert.inc.php on line 95

What could be the cause?

Posted: Mon 15. Dec 2003, 13:12
by Oliver Georgi
The GD class can not be loaded - maybe path problem. Check the given line.

Oliver

Solved

Posted: Mon 15. Dec 2003, 13:50
by Narcanti
True - it was a path-problem.
If I add include/inc_lib/ to the path in imagick.convert.inc.php, the class is found.

Thanks.

N.

Posted: Mon 29. Dec 2003, 12:07
by Heimleiter
Ich habe ein ähnliches Problem. Bei mir kommt beim "takeover selected files" die Fehlermeldung:

Fatal error: Call to undefined function: image_type_to_mime_type() in /kunden/vip/kunden/thomasweber/phpCMS/include/inc_act/act_ftptakeover.php on line 106

Im Quelltext steht in Linie 106:
$file_type = image_type_to_mime_type ($file_check[2]);

Die Zugriffsrechte sind bei den betroffenen Ordnern auf 777.

Wie kann ich das beheben? :?

Posted: Mon 29. Dec 2003, 15:15
by DeXXus
Heimleiter wrote:Ich habe ein ähnliches Problem. Bei mir kommt beim "takeover selected files" die Fehlermeldung:

Fatal error: Call to undefined function: image_type_to_mime_type() in /kunden/vip/kunden/thomasweber/phpCMS/include/inc_act/act_ftptakeover.php on line 106

Im Quelltext steht in Linie 106:
$file_type = image_type_to_mime_type ($file_check[2]);

Die Zugriffsrechte sind bei den betroffenen Ordnern auf 777.

Wie kann ich das beheben? :?
SEE File Takeover Problem
http://www.phpwcms.de/forum/viewtopic.php?p=317#317