Page 1 of 1

Erasure of Author on changing personal settings

Posted: Fri May 13, 2005 1:19 pm
by Maugrim_The_Reaper
I noticed this after a fresh installation of 0.8.

After importing some blog entries through an RSS 2 feed, I logged into my new Serendipity installation as the Admin (UL 255). After changing my personal settings, I was kicked out to re-login. However the login page displayed oddly - all text was replaced by what appear to be the related PHP constants... all capital letters interspaced with underlines - they certainly look like unparsed constants.

The login failed several times. On returning to the main blog, I was met with an error - function not found.

After examining the database - I realised that in updating my accounts personal settings, the actual author entry (everything except the MD5'd password) was reset to default, or left blank.

After manually re-entering the author data - and waiting a few minutes. I could login as Admins, and view the blog as normal.

I don't have the specific error messages since the database editing apparently fixed everything - but I can update my personal settings again to view the error once more ;)

I can work around this issue no problem - easily fixed with a quick update for the blank author entry on the database. Just thought I'd let someone know...

Keep up the good work!

Re: Erasure of Author on changing personal settings

Posted: Fri May 13, 2005 1:25 pm
by garvinhicking
Another user had this problems once. Are you by chance using Firefox and some Firefox extensions? There are some extensions like quickform, session saving and others that cause this behaviour by submitting HTTP requests twice.

Did you check your serendipty_authors table? Does it contain more than one author?

Regards,
Garvin

Posted: Fri May 13, 2005 1:36 pm
by Maugrim_The_Reaper

Code: Select all

Fatal error: Call to undefined function: serendipity_mb() in /home/quantum/public_html/blog/include/functions.inc.php on line 68
Well, there's the error. It happened again by requesting me to login. Seems to occur now after my session times out and I have not used the " Save Information " option on login. Author entry on database was not deleted either - presumably because I updated no personal settings this time.

Posted: Fri May 13, 2005 2:05 pm
by garvinhicking
The error happens because no valid language seems to be loadable.

You need to verify the serendipity_authors table is proper, and please look up your serendipity_config database table with authorid 1 (if you only have 1 author) and see if there the "lang" settings and others are right?

Regards,
Garvin

Posted: Fri May 13, 2005 2:18 pm
by Maugrim_The_Reaper
Yep, I am using Firefox 1.0.4.

I will disable all extensions and try adding them back one by one to see which may be responsible. Thanks!

Posted: Fri May 13, 2005 2:38 pm
by garvinhicking
Thanks a lot; I really think there is some extension making those problems.

Regards,
Garvin

Posted: Fri May 13, 2005 3:49 pm
by Maugrim_The_Reaper
Ok. I discovered that authorid in _config were all set to 0. I've switched these to authorid=1. Seems to take the blog a minute or so to catch up and run with the new settings...

Posted: Fri May 13, 2005 4:27 pm
by Maugrim_The_Reaper
Final word...

Okay, I *seem* to have everything fixed. After some thought, I re-edited my personal settings from a new session.

In there I did two changes.

1) changed my username from "Maugrim_The_Reaper" to "Maugrim"
2) Added a password before saving changes.

After submission - everything finally returned to normal. I can only guess the save process updated all fields correctly while failing to do so previously. I doubt removing underscores from my username had anything to do with it ;) - not any offhand reason at least. If it happens again I'll do some debugging and at least see where in the code was responsible.