Webmaster Forum

Webmaster Forum (http://www.v7n.com/forums/index.php)
-   Coding Forum (http://www.v7n.com/forums/forumdisplay.php?f=16)
-   -   internal server error - error 500 (http://www.v7n.com/forums/showthread.php?t=430032)

kontrol 09-12-2019 11:28 AM

internal server error - error 500
 
Hello
I have just completed a project and i am faced with this issue of error 500 (internal server error). On click of the login button the server is unable to find the php file with the login script.
However i have uploaded the same project onto another server but surprisingly everything works fine on the other server.

What could be the problem and how do i solve it?

Thank you.

ScriptMan 09-12-2019 03:10 PM

If allowed enable full error reporting on the problem server or check the error logs in the control panel.

Just about anything can cause that generic message.

edit: check path for the script.

jeet 10-27-2019 11:15 AM

It seems like an old thread, but I am posting a reply so others facing similar problem can benefit.

Doesn't looks like script not found error.
Looks more like a PHP version issue to me.
You are probably using a depricated function in the login.php script.
The server where this code is working is still using an older version of PHP. The server where its not working is probably using a newer PHP version, or vice versa.

Check error log, find the function which is causing this error.

In my case when the webhost upgraded to PHP 7, all my older scripts using mysql functions started throwing error.
Fortunately, I was not directly using mysql functions in the script, but was calling a function I wrote. The function had mysql code, so as soon as I updated the function to mysqli, the script started working.

Thanks


All times are GMT -7. The time now is 08:31 AM.

3.8.7