[RESOLVED] APPLICATION ERROR #401
Moderators: Developer, Contributor
[RESOLVED] APPLICATION ERROR #401
Hi to all
I've searched for old posts but not found solution to my problem.
The problem is really simple: When a user try to upload a file greater then 1Mb Mantis return "APPLICATION ERROR #401" and nothing else.
Into log file I can find nothing useful.
php.ini had
memory_limit = 128M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 8M
mysql my.ini had
max_allowed_packet=20M
mantis config_inc.php had
$g_max_file_size="2000000";
Can you help me?
thanks
I've searched for old posts but not found solution to my problem.
The problem is really simple: When a user try to upload a file greater then 1Mb Mantis return "APPLICATION ERROR #401" and nothing else.
Into log file I can find nothing useful.
php.ini had
memory_limit = 128M
post_max_size = 8M
file_uploads = On
upload_max_filesize = 8M
mysql my.ini had
max_allowed_packet=20M
mantis config_inc.php had
$g_max_file_size="2000000";
Can you help me?
thanks
Last edited by lordmax on 05 Jul 2011, 14:46, edited 1 time in total.
Re: APPLICATION ERROR #401
Yes.atrol wrote:Did you restart the database after setting this value?lordmax wrote: mysql my.ini had
max_allowed_packet=20M
sigh
^__^
I've restarted the mySql service
And I've restarted IIS too
Re: APPLICATION ERROR #401
atrol wrote:Check also max_execution_time in php.ini
Which version of MantisBT do you use?
Which version of PHP do you use?
max_execution_time =300
But I don't think it's a timeout problem, the error message is almost immediate and I can upload little files (less than 1Mb).
MantisBT Version 1.2.5 Schema Version 183, I thinks it's the last one.
PHP Version 5.3.6
Re: APPLICATION ERROR #401
I have no idea at the moment.
To exclude any database related issue you can switch to file storage for attachments.
Add temporary the following line to file config_inc.php and check the settings for "Upload File Path" in "Manage" -> "Manage Projects"
To exclude any database related issue you can switch to file storage for attachments.
Add temporary the following line to file config_inc.php and check the settings for "Upload File Path" in "Manage" -> "Manage Projects"
Code: Select all
$g_file_upload_method = DISK;
Re: APPLICATION ERROR #401
Done.atrol wrote:I have no idea at the moment.
To exclude any database related issue you can switch to file storage for attachments.
Add temporary the following line to file config_inc.php and check the settings for "Upload File Path" in "Manage" -> "Manage Projects"Code: Select all
$g_file_upload_method = DISK;
Sadly it works.
Go on DB, Tears, cracks, fans.
Re: [RESOLVED] APPLICATION ERROR #401
OK.
DB problem, some strange permission on server.
DB problem, some strange permission on server.
Re: [RESOLVED] APPLICATION ERROR #401
Well.
Problem was so simple that I feel idiot.
One of the Systems Engineer put a rule on the server that made all files read only but in a transparent way (I don't know how) so when I changed db settings on my.ini apparently it was changed but it was mantained at the original status.
Understood it I phone call the "engeneer" and get the right my.ini files on the system, restar mysql all done.
Problem was so simple that I feel idiot.
One of the Systems Engineer put a rule on the server that made all files read only but in a transparent way (I don't know how) so when I changed db settings on my.ini apparently it was changed but it was mantained at the original status.
Understood it I phone call the "engeneer" and get the right my.ini files on the system, restar mysql all done.
Re: [RESOLVED] APPLICATION ERROR #401
atrol - You are a genius, I had this problem for a year and did not know how to solve. Because of you I managed to solve. Thanks