I am getting internal server error after submitting form.. Already checked error_log but nothing is generating. This issue is occured when I moved website to another server. In old server, everything was working fine.
found the error log location at /home/username/logs/domainname.php.error.log -- but it is empty. this is likely not the error log for my 500 error.
form.php
<form method="post" action="submitUpdatedSpeaker.php" name="Contact Form" id="contactform" enctype="multipart/form-data">
<textarea name="content" id="content"></textarea>
<input type="submit" value="Submit" />
</form>
submitUpdatedSpeaker.php
<?php
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
echo "Test";
?>
I have many fields in form but for checking I just added this simple code and submitted form, but still this code is not working. submitUpdatedSpeaker.php file gives blank screen when I do view source it prints Internal Server Error 500.
Issue is only occured when I submitted following text in textarea
"Unknown is a professional football quarterback currently playing for the Test in the He was selected as the first overall pick in the YEAR Draft by the Location.
Name attended School Name High School in City, Country, where he excelled as as quarterback, amassing Number passing yards and Number touchdowns over three varsity seasons. He then played college football at the Univeristy of State, Country, from 2013 to 2015. During his tenure with the Country Club, Name set numerous school records, including career passing yards (Number) and touchdown passes (Number). In his junior year, he set Name single-season records with Number passing yards and Number touchdown passes. Following this standout season, Name declared for the Shortform Draft."
There was a problem from server side.. Server restricted some characters, so when I am adding that content, it was considered as SQL injection by server, and it is giving Internal Server Error. And not generating log of it in error_log.
As all the solutions given by developers not working, so I finally reached to server for the support. As that code was working with previous server. They have solved it from their side.
So, if anyone facing this type of problem after migrating and even code also right. Then please talk with server support.
Thank you very much all of developers. who have supported this question and gave me solutions regarding this.