File upload - Error

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Narcanti
Posts: 31
Joined: Fri 12. Dec 2003, 16:12

File upload - Error

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

The GD class can not be loaded - maybe path problem. Check the given line.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Narcanti
Posts: 31
Joined: Fri 12. Dec 2003, 16:12

Solved

Post 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.
Heimleiter
Posts: 2
Joined: Mon 29. Dec 2003, 00:57
Location: Germany · 54317 Gusterath near Luxembourg
Contact:

Post 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? :?
Thomas|Weber · www.Thomas-Weber.com
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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
Post Reply