I have a form that collects data and may take several hours to complete since it has an editor where users can add creative elements. If the form is submitted after an hour or so, the site redirects to a 404 Not Found, the URL was not found on this server. I tested this using a very simple form processing script that prints out POST data and still got the error. This seems to only happen on our linux server. I have a WAMP local server running the same script and the POST data sends through fine, no matter how long the form is idle for. Any clues as to what I can try change on the Apache config or PHP side. Thanks
Related
I am developing laravel website and I encounter this very stressfull error.
Yesterday, my website is running smoothly until today. Today, after several times of form submit, It returns:
Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
I noticed that there are lots of cookies generated from localhost (see image below):
if I delete one of those cookie, I can open my website
I have done several checks on javacript and all other code but couldn't find anything wrong.
What could possibly go wrong? is it on my code? or my web server? or anything?
It turns out that I accidentaly calls 'web' middleware twice.
Just delete one of them and its finally works perfectly.
I'm hosting a port forwarded server on my computer. For a school assignment, I am trying to make a login page on my computer.
I set up my database and PHP script to validate my passwords and everything using AES_ENCRYPT() and AES_DECRYPT().
In Chrome, I launched the actual PHP script on localhost and the response performance I got for validating some sample data was excellent (the table has barely five rows right now).
However, in the actual site, I need to access this script using an AJAX request. As soon as I submit the request, the website freezes, and I have to close out the tab and try all over again (the tab doesn't refresh).
Why is this happening? I am using the POST method to send my data.
I have a PHP script that's called when submitting the order form (removed). The script does some basic verifications and uses an external API (sends a GET request with file_get_contents and stream_context_create) to register/update user info.
The problem is that sometimes it works right, but most of the times it reloads the page that called it. The page is hosted on my LAMP server (removed). If I host it locally, using the PHP build-in server, it does seem to work always.
I don't have a clue what can cause the webpage to reload instead of executing the echo statements.
The script worked right last Friday, but now it doesn't. Today I've updated PHP, but - as I expected - nothing has changed.
Obviously there isn't anything in the error_log.
There's probably a bug with the latest FastCGI handler. With any other handler (CGI, suPHP, DSO) the script works correctly.
I have been running a web service off of a php file. For no apparent reason (possibly some settings changes?), it now suddenly does not "notice" the posted request.
When I echo var_dump($_POST), I get a 0-length array. If I post the same request the same way on a different script, it works fine. This different script is hosted on a different server.
Do you guys have any idea what configuration may have been accidentally changed s.t. my php script does not get the post requests?
Thanks!
I'd start with the rewrites. Rewriting for example to a full url (http://...) would cause POST information to get lost.
I am working in a php web site and my web server application is IIS on Windows Server 2003.
I added a web form that is needed to be saved and sent by email.
There are four files used to achieve that:-
file1.php - to get the user inputs
through the form insisde it. file2.php
- to recieve the form data then save it in database using odbc and send
some of them by email file3.js - to
validate form elements file4.css - to
change the design and style of the web
page
I faced a strange error message which has not any reference to specific option or setting that I can change to solve the problem.
what I get is as the following:-
HTTP 500 Internal Server Error
The website cannot display the page
HTTP 500
Most likely causes:
•The website is under maintenance.
•The website has a programming error.
What you can try:
Refresh the page.
Go back to the previous page.
More information
Since at the moment there isn't much details in your question, I suggest you can do this: 1) try to print a "hello" in your PHP file and see if it works first, and if it does, then try the first few lines of your program, and print out something and see if it works or not. In other words, reduce to the simplest and see if it works or not. Then build on it gradually.
read IIS log
find IIS log in http://portal.smartertools.com/KB/a154/where-are-my-iis-log-files-stored.aspx