Jump to content

Recommended Posts

Hello...

 

I have a website that has worked with no problem. I login using .../admin and enter credentials.

 

I've moved it to a new server and frontend works fine.

 

When I trying logging in the backend, it I enter the wrong user/pass it tells me wrong user/pass. But when I enter in the correct credentials it simply reloads the login page versus the index page with no message. Since I get the message when it's incorrect I know it's connecting to the DB.

 

The php versions are the same. I have php error logging and it's not giving an error.

 

Can anyone give me tips or advice as to what I should be looking for?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/205745-error-logging-in-new-server/
Share on other sites

Could be a number of reasons, you need to debug your code.

 

Find out what should be happening (and where in the code it should happen) when you login.

Then you would echo specific variables to make sure they are what you expect (like header(location...) redirects).

Something is obviously wrong, usually it is to do with GLOBALS where the POST data hasnt actually been recieved but that cause seems unlikely in this situation. You have to debug the code.

 

-cb-

:psychic:

 

Simply amazing, another "my code does not work but I'm not going to provide you with any real information about what my code is that would allow you to help me."

 

Best guess is you are outputting content to the browser before your redirect and/or you don't really have error_reporting set to E_ALL and log_errors turned on so that ALL php errors would be logged.

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.