[RESOLVED] APPLICATION ERROR #401

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

[RESOLVED] APPLICATION ERROR #401

Post by lordmax »

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
Last edited by lordmax on 05 Jul 2011, 14:46, edited 1 time in total.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol »

lordmax wrote: mysql my.ini had
max_allowed_packet=20M
Did you restart the database after setting this value?
Please use Search before posting and read the Manual
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

Re: APPLICATION ERROR #401

Post by lordmax »

atrol wrote:
lordmax wrote: mysql my.ini had
max_allowed_packet=20M
Did you restart the database after setting this value?
Yes.
sigh
^__^

I've restarted the mySql service
And I've restarted IIS too
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol »

Check also max_execution_time in php.ini

Which version of MantisBT do you use?
Which version of PHP do you use?
Please use Search before posting and read the Manual
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

Re: APPLICATION ERROR #401

Post by lordmax »

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
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: APPLICATION ERROR #401

Post by atrol »

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;
Please use Search before posting and read the Manual
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

Re: APPLICATION ERROR #401

Post by lordmax »

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;
Done.
Sadly it works. :oops:

Go on DB, Tears, cracks, fans. :evil:
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

Re: [RESOLVED] APPLICATION ERROR #401

Post by lordmax »

OK.


DB problem, some strange permission on server.
:roll:
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: [RESOLVED] APPLICATION ERROR #401

Post by atrol »

lordmax wrote: DB problem, some strange permission on server.
:roll:
Really strange, can you tell which permission has to be changed?
Please use Search before posting and read the Manual
lordmax
Posts: 24
Joined: 01 Jul 2011, 09:38

Re: [RESOLVED] APPLICATION ERROR #401

Post by lordmax »

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.
:cry: :roll:
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: [RESOLVED] APPLICATION ERROR #401

Post by atrol »

Thanks for telling the real cause.
Please use Search before posting and read the Manual
lexlogos
Posts: 1
Joined: 30 Jun 2012, 21:02

Re: [RESOLVED] APPLICATION ERROR #401

Post by lexlogos »

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