Error 500 - When submitting

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
MajikOne
Posts: 5
Joined: Nov 06, 2018 4:13 pm

Error 500 - When submitting

Post by MajikOne » Jan 18, 2019 10:52 am

Hello Everybody
NEED HELP PLS
I'm trying to upgrade our old Mantis Version 1.2.15 Schema 183
to the new version 2.18.0 Schema 209
on Windows IIS 7 - Windows Server 2008 R2
The upgrade went without any glitch.
Now when the user submit an issue, it will turn and turn, then a 500 error is displayed.
If I reload and view issues I find the new issue in the list.
If I try to add an attachment to this issue and submit, it will generate the same 500 error, and no attachment added.
Your help is needed and very well appreciated.
Keep in mind that that my knowledge in PHP is almost less then a beginner.
Thanks

atrol
Site Admin
Posts: 7691
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Error 500 - When submitting

Post by atrol » Jan 18, 2019 3:10 pm

Does running http://<yourMantisUrl>/admin/check/index.php show any errors or warnings?
Please use Search before posting and read the Manual

MajikOne
Posts: 5
Joined: Nov 06, 2018 4:13 pm

Re: Error 500 - When submitting

Post by MajikOne » Jan 21, 2019 1:13 pm

Hello
Thanks for the reply.
I executed .../admin/check/index.php
One fail test:
Fileinfo PHP extension is available to support file uploads
Ensure that the fileinfo extension is installed and enabled

Any Idea ???
Thanks.

atrol
Site Admin
Posts: 7691
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Error 500 - When submitting

Post by atrol » Jan 21, 2019 1:25 pm

There is nothing more to tell than what the error message is telling.
Ensure that the fileinfo extension is installed and enabled
http://php.net/manual/en/fileinfo.installation.php

This might fix the issue, but after that, run again ../admin/check/index.php as you might get new errors.
Please use Search before posting and read the Manual

MajikOne
Posts: 5
Joined: Nov 06, 2018 4:13 pm

Re: Error 500 - When submitting

Post by MajikOne » Jan 21, 2019 3:51 pm

Hello
Thanks for your help.
After fixing / enabling FileInfo extension.
Email non configuration errors.
Smtp non configuration errors.
The real error showed up :
max_file_size MantisBT option is less than or equal to the upload_max_filesize directive in php.ini
max_file_size is currently 5,000,000 bytes which is greater than the limit of 2,097,152 bytes imposed by the php.ini directive upload_max_filesize.

Et voilà, I put 6M in the php.ini file for the upload_max_filesize and everything now for the moment is Peachy.
Thanks again.

atrol
Site Admin
Posts: 7691
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Error 500 - When submitting

Post by atrol » Jan 21, 2019 4:31 pm

Good to hear.
Thanks for telling the solution.
Please use Search before posting and read the Manual

TraceySpringer
Posts: 1
Joined: Feb 07, 2019 2:21 am

Re: Error 500 - When submitting

Post by TraceySpringer » Feb 14, 2019 6:53 am

I am trying to send the content in this form to an email. However, it isn't working and when I submit it gives me an internal error. Here is the code that runs when I am submitting the form.

<?php
if(!isset($_POST['submit']))
{
//This page should not be accessed directly. Need to submit the form.
echo "error; you need to submit the form!";
}


$name = $_POST['first_name']; // required

$job = $_POST['job']; // required

$company = $_POST['company']; // required

$email = $_POST['email']; // required

$telephone = $_POST['telephone']; // required

$psn = $_POST['psn']; // required

$un = $_POST['un']; // required

$weight = $_POST['weight']; // not required

$pieces = $_POST['pieces']; // required

$dgpacked = $_POST['dgpacked']; // required

$address = $_POST['address']; // required

$readytime = $_POST['readytime']; // required

$deliverytype = $_POST['deliverytype']; // required

Post Reply