Forum Moderators: coopster
I've already implemented custom search on another domain without any problems, so I'm fairly confident I'm not doing anything directly wrong myself.
The search box will be implemented on every page of www.widgets.com and points to www.widgets.com/searchresults.php. Google creates a far longer url for their search function to work, ofcourse.
The search box displays just fine but whenever I try to search for anything I get pointed to a 500 error page containing the following standard text:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Power MOD by Server at example.com Port 80
I've already tried tinkering a bit with file/folder permissions. This seems to solve nothing.
Thanks a ton, this is driving me insane :)
[edited by: eelixduppy at 4:33 am (utc) on Jan. 25, 2010]
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
IMO There is some redirect loop happening when the server is looking for the file and it's causing the server to error... It could possibly be caused by making the site extensionless or the query_string if those are stripped. A 500 Internal Server Error usually in my experience has to do with redirecting something and it appears your custom error page cannot be found, so to me it sounds like .htaccess.
Check the Error Logs for details.
(Not the regular logs they won't tell you anything.)
[edited by: TheMadScientist at 6:57 pm (utc) on Jan. 24, 2010]
It won't, however, tell you what is causing the problem, but it's probably just some faulty code you've got somewhere.
Check your error log on the server for more information.
This is the **definitive** first step, where to start, you're spinning your wheels until you get to this. :-) Even if you don't have command line access, the control panel for the hosting has to have error logs somewhere.
Re: the 404, just an extra 2 cents, it could also mean there just is no error document. That is, the .htaccess has an ErrorDocument directive, it's just not there, or where it expects it to be.
A 500 in PHP is rare, but have seen them, it could be a fatal error exceeding memory, a timeout, who knows. Basically it's causing PHP to crash on your application in one way or another.
All of which is of course speculation without the error_log entries.