"Header may not contain more than a single header"

igoris

Joined: 2006-06-19
Posts: 3
Posted: Mon, 2006-06-19 11:43

When I register a new user on the Gallery and subseqently try to log them in (testing), I get the following error:

Warning: Header may not contain more than a single header, new line detected. in .....\gallery\modules\core\classes\GalleryPhpVm.class on line 124

I've looked at the file, but i can see nothing wrong with the header function there. Not entirely sure what's causing this problem...

You can register to test this: www.foto-albumas.lt/index.php
After register in same window press Login and try to logim with your username and password...

Installation is new, clean.

Any ideas?
System info dump below.

Gallery versija = 2.1.1 pagrindas 1.1.0.1
PHP versija = 5.1.4 cgi-fcgi
Web serveris = Microsoft-IIS/5.0
Duombazė = mysql 5.0.21-community-nt, lock.system=database
Grafikos įrankiai = Exif, ImageMagick, SquareThumb
Aksceleracija = none, none
Operacijų sistema = Windows NT SERVER 5.0 build 2195
Numatyta tema = matrix
Localė = lt_LT
Naršyklė = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; InfoPath.1)

 
igoris

Joined: 2006-06-19
Posts: 3
Posted: Mon, 2006-06-19 13:46

maybe i must change server to the Debian?

 
printlessfoot

Joined: 2006-07-31
Posts: 1
Posted: Mon, 2006-07-31 13:52

I have the same problem. Is there any solution?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-08-01 03:47

please try the latest nightly snapshot of gallery 2.
i seem to remember that we fixed something like that since g2.1.1a.

 
webmaster33

Joined: 2006-11-22
Posts: 29
Posted: Wed, 2006-11-22 07:10

I also got this error, in Gallery v2.1.2, too.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-11-22 13:47

same advice for you. please try the nightly snapshot of g2.2 and if the problem persists, we can diagnose it.

 
webmaster33

Joined: 2006-11-22
Posts: 29
Posted: Wed, 2006-11-22 21:36

Sorry, but I install only stable version.

 
Remco

Joined: 2008-02-29
Posts: 1
Posted: Fri, 2008-02-29 08:48

Hey, I have a solution for this:

You may not have spaces in vars you put in the $location beneath, so do this:

$location = ereg_replace( ' +', '%20', $location );
header("Location:$location");

This error was generated after a migration to PHP5.