problem uploading files to local testserver

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
hiro
Posts: 7
Joined: Fri 29. Jul 2005, 02:13
Location: London

problem uploading files to local testserver

Post by hiro »

Hi everybody,

I've got a problem when uploading images on version 1.2.6.
The file browser only shows the first image. I receive a couple of errors on apache's error log.

When uploading gifs, I get:

Code: Select all

[Mon Jan 09 14:44:40 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  upload in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 28, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:44:40 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  file_keywords in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 39, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:44:40 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined variable:  file_keys in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 76, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:44:41 2006] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function:  imagetypes() in E:\\Apache2\\htdocs\\cms\\include\\inc_lib\\general.inc.php on line 493, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:44:44 2006] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function:  imagetypes() in E:\\Apache2\\htdocs\\cms\\include\\inc_lib\\general.inc.php on line 493, referer: http://localhost/cms/phpwcms.php?do=files&f=0&uploaded=1
When uploading jpegs I get:

Code: Select all

[Mon Jan 09 14:47:52 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  upload in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 28, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:47:52 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined index:  file_keywords in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 39, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:47:52 2006] [error] [client 127.0.0.1] PHP Notice:  Undefined variable:  file_keys in E:\\Apache2\\htdocs\\cms\\include\\inc_tmpl\\files.private.upload.tmpl.php on line 76, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:47:52 2006] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function:  imagecreatefromjpeg() in E:\\Apache2\\htdocs\\cms\\include\\inc_ext\\ss_image\\ss_image.class.php on line 84, referer: http://localhost/cms/phpwcms.php?do=files&f=0&upload=0
[Mon Jan 09 14:47:54 2006] [error] [client 127.0.0.1] PHP Fatal error:  Call to undefined function:  imagecreatefromjpeg() in E:\\Apache2\\htdocs\\cms\\include\\inc_ext\\ss_image\\ss_image.class.php on line 84, referer: http://localhost/cms/phpwcms.php?do=files&f=0&uploaded=1
Any suggestions?
Help is appreciated!!!!

hiro
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

turn the 'Notice' Error-Handler of PHP off
in php.ini set

Code: Select all

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
hiro
Posts: 7
Joined: Fri 29. Jul 2005, 02:13
Location: London

Post by hiro »

thanks, but that turning off error reporting doesn't solve the problem.
still need to upload images.... :?
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post by pico »

Hi

check that your Server has the GD-Library or ImageMagick installed (check with phpinfo() in Backend->Admin Section)- see also in your conf.inc.php for the correct settings of the Imagehandling

Code: Select all

$phpwcms["imagick"]           = 0; //0 = GD,  1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"]      = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"]           = 1; //0 = GD1, 1 = GD2
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
hiro
Posts: 7
Joined: Fri 29. Jul 2005, 02:13
Location: London

Post by hiro »

thanks pico,

I just recently updated my php-installation and forgot to enable the gd-library

hmmm...

cheers,
hiro
Post Reply