Page 1 of 1

Error 500 - When submitting

Posted: 18 Jan 2019, 15:52
by MajikOne
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

Re: Error 500 - When submitting

Posted: 18 Jan 2019, 20:10
by atrol
Does running http://<yourMantisUrl>/admin/check/index.php show any errors or warnings?

Re: Error 500 - When submitting

Posted: 21 Jan 2019, 18:13
by MajikOne
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.

Re: Error 500 - When submitting

Posted: 21 Jan 2019, 18:25
by atrol
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.

Re: Error 500 - When submitting

Posted: 21 Jan 2019, 20:51
by MajikOne
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.

Re: Error 500 - When submitting

Posted: 21 Jan 2019, 21:31
by atrol
Good to hear.
Thanks for telling the solution.

Re: Error 500 - When submitting

Posted: 14 Feb 2019, 11:53
by TraceySpringer
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