Issue uploading file into Mantis

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
dhebert24
Posts: 4
Joined: 16 Feb 2011, 22:40

Issue uploading file into Mantis

Post by dhebert24 »

Hello, I just recently installed mantis 1.2.4 onto my system running iis7 win2k8. Everything seems to be in order except I cannot upload files within the issues. Below is the error I get.

APPLICATION ERROR #15
File upload failed. File is not readable by MantisBT. Please check the project settings.

Please use the "Back" button in your web browser to return to the previous page. There you can correct whatever problems were identified in this error or select another action. You can also click an option from the menu bar to go directly to a new section.

any help on this would be great.

Thanks,
Dan
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Issue uploading file into Mantis

Post by atrol »

Check the settings of upload_tmp_dir in php.ini
Is the directory accessible by the account which runs the IIS process ?
Please use Search before posting and read the Manual
dhebert24
Posts: 4
Joined: 16 Feb 2011, 22:40

Re: Issue uploading file into Mantis

Post by dhebert24 »

I just did and it was commented out. I changed it to the upload path, "c:\uploads"

I still get that error however. I added the IIS_IUSER group and everyone to be able to write to that folder. In the projects, the upload path is set to c:\uploads\. Is it something with the config_inc.php file?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Issue uploading file into Mantis

Post by atrol »

dhebert24 wrote:Is it something with the config_inc.php file?
I think no, at least if you did not change the default setting of parameter $g_file_upload_method
Please use Search before posting and read the Manual
dhebert24
Posts: 4
Joined: 16 Feb 2011, 22:40

Re: Issue uploading file into Mantis

Post by dhebert24 »

I did at first because I thought that was the problem, but have since put it back. Below is the attachment part for config_inc.php Also a copy of the php.ini

# --- Attachments / File Uploads ---
$g_allow_file_upload = ON;
$g_file_upload_method = DATABASE; # or DISK
$g_absolute_path_default_upload_folder = ''; # used with DISK, must contain trailing \ or /.
$g_max_file_size = 5000000; # in bytes
$g_preview_attachments_inline_max_size = 256 * 1024;
$g_allowed_files = 'doc,xls,ppt,pdf,bmp,jpeg,jpg,gif,zip,png'; # extensions comma separated, e.g. 'php,html,java,exe,pl'
$g_disallowed_files = 'exe'; # extensions comma separated
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Issue uploading file into Mantis

Post by atrol »

dhebert24 wrote:Also a copy of the php.ini
?

Which PHP version do you use?
Did you get the same error message when using DISK upload method? (don't forget to set $g_absolute_path_default_upload_folder)
Did you have a look at the error / log files of php and the webserver?
Did you have a look at the logs of Windows (I don't know how this is called in an English Windows version, in German version it's called "Ereignisanzeige" maybe something like "System Event Log" in English)
Please use Search before posting and read the Manual
dhebert24
Posts: 4
Joined: 16 Feb 2011, 22:40

Re: Issue uploading file into Mantis

Post by dhebert24 »

PHP Version 5.3.5
MySQL version 5.5

In the system event log, nothing shows up for mantis. Nothing in the application log as well. and PHP is set to log there.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Issue uploading file into Mantis

Post by atrol »

Maybe related to your problem
http://www.howyoudo.info/index.php/how- ... ions-error

I never used IIS, I hope another can share his experience
Please use Search before posting and read the Manual
Post Reply