can't login

narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Wed, 2005-06-15 10:01

I've had this error for a couple of days now but have kept updating it from the latest nightly hoping it'd fix but it hasn't.

I can't login as admin, I can't login as any other user. No one can login. Here is the error it gives:

Quote:
Warning: Wrong parameter count for headers_sent() in /home/narflet/public_html/gallery2/modules/core/classes/GalleryPhpVm.class on line 136

Warning: Wrong parameter count for header() in /home/narflet/public_html/gallery2/modules/core/classes/GalleryPhpVm.class on line 122

Warning: Cannot add header information - headers already sent by (output started at /home/narflet/public_html/gallery2/modules/core/classes/GalleryPhpVm.class:136) in /home/narflet/public_html/gallery2/main.php on line 472

I don't recall doing anything unusual that might have caused this.

I can't find out the gallery details from the handy maintence task so I've done the best I can...

Thanks

----

Gallery URL (optional): http://jasmine.wyrdweb.com/~narflet/gallery2
Gallery version: g2b3 nightly 15/06/05
Webserver (with version): Apache/1.3.26 (Unix)
Datatabase (with version): Mysql (don't know version)
PHP version (eg 4.2.1): PHP/4.1.2
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: GNU/Linux
Web browser/version: firefox 1.0.4
G1 version (for migration bugs):

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-15 10:46

narflet, thanks for the report. this is a G2 bug. i forgot our php < 4.3.0 compatiblity. i've a fix on my local develepment version, just want the opinion of another dev on it.

if you want to apply the fix now... here's the diff (just patch modules/core/classes/GalleryPhpVm.class):
http://dev.nei.ch/headersSent_diff.txt

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2005-06-15 13:59

narflet, off topic...

Nice pictures. I've looked at your Gallery before. I can't get over how much I like looking at your pictures. You're very talented.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-15 15:29

narflet, ok, it's fixed now in the cvs.
Get the next nightly snapshot to get the fixed version.

 
narflet
narflet's picture

Joined: 2004-08-14
Posts: 21
Posted: Wed, 2005-06-15 23:53

valiant - thanks! I'll get the fix tomorrow morning then as your link is giving me a 404. I've lived with it for a couple of days one more night isn't a bother :)

nivekiam - thanks very much, however I'm still learning! :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2005-06-16 02:10

narflet, aren't we all? You've definetly got a natural eye.