Error 6 - On upload of images from pc

Bumpsy

Joined: 2008-09-30
Posts: 4
Posted: Tue, 2008-09-30 04:52

I have just installed Gallery 2. When I try and upload an image from the web browser I get an error msg:
"There was a problem processing your request, see below for details.
Input file csat.gif was not uploaded. Error 6"

Below the web browser form I get this:
"PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0"

Any ideas?

CJ

Gallery version: gallery 2.2.6 typical
Web Server Type: Windows 2003 - IIS 6.0
Database: MS SQL2008
Activated toolkits: GD
Operating system: XP
Browser (e.g. Firefox 2.0): Firefox 3.0.1 & Explorer 7.0

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22883
Posted: Tue, 2008-09-30 05:09

I suspect that your temp folder is not writable by the webserver/php/gd
Did you get any warnings during install?
Does any other image toolkit test properly?
See if you can install another toolkit as GD hass some memory issues.
FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Bumpsy

Joined: 2008-09-30
Posts: 4
Posted: Tue, 2008-09-30 15:22

Install went well except with the following:

1. Translation support Warning
Your webserver does not support localization. To enable support for additional languages please instruct your system administrator to reconfigure PHP with the gettext option enabled.
Output buffering disabled Warning
Warning: Output buffering is enabled in your PHP by the output_buffering parameter(s) in php.ini. Gallery can function with this setting - downloading files is even faster - but Gallery might be unable to serve large files (e.g. large videos) and run into the memory limit. Also, some features like the progress bars might not work correctly if output buffering is enabled unless ini_set() is allowed.
Gallery file integrity Warning
+ Modified files (1) README.html

2. Security, could not find the path so I omitted security check:
For maximum security you should pick a directory that is not web accessible. If this is not possible, specify a randomized name for this directory.
If you choose a randomized name or prefer to stick with the specified directory, please confirm your choice.

Yes, please omit the security check:

3. The addons modules are fine except when this time ImageMagik:
The ImageMagick module was installed, but needs configuration to be activated, and

Warning: exec() [function.exec]: Unable to fork [cmd /c " "C:\Perl\bin\composite.exe" "-geometry" "+0+0" "E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.jpg" "E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.gif" "E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\imgA9ED.tmp" 2> "E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dA9EE.tmp" "] in E:\web\veteranvoic\htdocs\gallery2\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 96

4. On ImageMagik cionfiguration through the Site Admin I got this:
is_dir(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\)
Loading plugin imagemagick
imagemagick plugin successfully instantiated
Check the version of the imagemagick plugin
The version of the imagemagick plugin is ok
getcwd()
chdir(e:\web\veteranvoic\htdocs\gallery2\g2data\tmp\)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\gm.exe)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\identify.exe)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\gm.exe)
tempnam(e:\web\veteranvoic\htdocs\gallery2\g2data\tmp\, imgk_)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\convert.exe)
unlink(E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\imgAB57.tmp)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\gm.exe)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\combine.exe)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\composite.exe)
file_exists(E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\gm.exe)
tempnam(e:\web\veteranvoic\htdocs\gallery2\g2data\tmp\, imgk_)
Executing: cmd /c "
"E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\composite.exe"
"-geometry" "+0+0"
"E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.jpg"
"E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.gif"
"E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\imgAB58.tmp" 2>
"E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dAB59.tmp" "
getParameter exec.expectedStatus for core plugin
file_exists(E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dAB59.tmp)
filesize(E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dAB59.tmp)
unlink(E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dAB59.tmp)
Regular Output:
Error Output:
Status: -1 (expected 0)
unlink(E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\imgAB58.tmp)
chdir(E:\web\veteranvoic\htdocs\gallery2)

5. And of course, when I try to upload an image through the web browser I get the same as per the orginal msg I sent.

Everything is writable. No warnings were given.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22883
Posted: Tue, 2008-09-30 20:01
Quote:
Warning: exec() [function.exec]: Unable to fork [cmd /c " "C:\Perl\bin\composite.exe" "-geometry" "+0+0" "E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.jpg" "E:\web\veteranvoic\htdocs\gallery2\modules\imagemagick\data\test.gif" "E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\imgA9ED.tmp" 2> "E:\web\veteranvoic\htdocs\gallery2\g2data\tmp\g2dA9EE.tmp" "] in E:\web\veteranvoic\htdocs\gallery2\modules\core\classes\GalleryPlatform\WinNtPlatform.class on line 96

I am no windows expert so can only guess that the webserver user does not have proper permissions. Do you have safe_mode off?
pleae post a php info link.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Bumpsy

Joined: 2008-09-30
Posts: 4
Posted: Tue, 2008-09-30 21:26

All permissions are fine. What is a php info link?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22883
Posted: Tue, 2008-09-30 22:07
Quote:
What is a php info link?

FAQ: What information is required when I ask for help in the forums?
Like I said I minght not be able to help much as I have little or zero windows server knowlage.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22883
Posted: Tue, 2008-09-30 22:09

@fork: http://www.somacon.com/p255.php

Quote:
The most likely cause is insufficient permissions to execute system calls in the web server environment.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Bumpsy

Joined: 2008-09-30
Posts: 4
Posted: Tue, 2008-09-30 23:42

Cool! Here is what I got:

PHP Version 5.2.6

System Windows NT WEB119 5.2 build 3790
Build Date May 2 2008 18:01:20
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"
Server API CGI/FastCGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\php5\php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety enabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*