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.
- Current PHP Version 8.2.28
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.”