PDA

View Full Version : Password/index.php problem


parikha
08-17-2006, 01:52 AM
I just changed my password using the password_recovery.php file (the password recovery function on my admin page wouldn't work), and now when I go to my index.php page and try to log in, I can't log in and I get this message:

Warning: Cannot modify header information - headers already sent by (output started at /home/parikha/public_html/photos/admin/index.php:1) in /home/parikha/public_html/photos/admin/index.php on line 126

Does anyone have any hints on how I can fix it? I tried looking at the code of the php file to see if I could pinpoint an error on line 126, but I didn't see anything wrong.

If this can't be fixed, I guess I can just delete and re-install Pixelpost altogether... to un-install it, do I just delete all the folders on the server?

Cheers,
Parikha

Dennis
08-17-2006, 05:05 AM
Do you fill comfortable in adding one more line at the top at index.php?

If so, place the following line

error_reporting(E_ALL); // Report all PHP errors

just after <? or <?PHP

This will probably give some more information about the error you're dealing with.

Connie
08-17-2006, 05:28 AM
Cannot modify header information - headers already sent

this message always means that there is some blank, empty line or space before the start of the output to the browser

check that there is no linebreak etc. before the code which you added or edited

Dennis
08-17-2006, 06:10 AM
Connie, you're right, BUT it could also be that errorreporting is set to none in PHP.ini and that the errors mess things up.

If that's not the case, it would probably be a space or something like that (suggestion: view source)

Come to think of it: if error reporting was set to none will it still show the headers not send message.

Ouch, my head is hurting... still early here...

Connie
08-18-2006, 06:31 AM
re-installing is not very time consuming and it helps very very often..

I sometimes wonder why people don't use this "therapy" ;=)

GeoS
08-18-2006, 09:42 AM
Its nice that all is fine right now. As you see Pixelpost isnt so bad as sometimes it looks.