Error 500 - When submitting

General discussion of Mantis.

Moderators: Developer, Contributor

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

Error 500 - When submitting

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

Re: Error 500 - When submitting

Post by atrol »

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: 06 Nov 2018, 21:13

Re: Error 500 - When submitting

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

Re: Error 500 - When submitting

Post 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.
Please use Search before posting and read the Manual
MajikOne
Posts: 5
Joined: 06 Nov 2018, 21:13

Re: Error 500 - When submitting

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

Re: Error 500 - When submitting

Post by atrol »

Good to hear.
Thanks for telling the solution.
Please use Search before posting and read the Manual
TraceySpringer
Posts: 1
Joined: 07 Feb 2019, 07:21

Re: Error 500 - When submitting

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