PHP5 Header Problem

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 07:03 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
Today my host upgraded php to version 5 and things started getting little messy. When I am trying to login to the site, I am receiving this error:

Warning: Header may not contain more than a single header, new line detected. in /home/hostsite/public_html/login.php on line 59

I believe its something do with how redirections are being processed with PHP5. I couldnt figure out much as I am new to PHP.

Any help is highly appreciated.
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 10:23 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
Anybody?

I am stuck with this. No Idea how to get it up and running.

Please help/
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 05:01 PM
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Nov 2007
Posts: 10
Same here, got same problem here as well. I installed pligg a while ago made some modifications in the yget theme folder and then when I tried to login, I get this error saying "Warning: Header may not contain more than a single header, new line detected. in /home/myhost/public_html/login.php on line 60"

Some please provide some help. Thank you.
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 06:24 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
I moved the site to another account. Here are the details on how I did: Moving your Pligg Website | vaked.com

I figured it wasnt really a PHP5 problem. In fact I was still on PHP 4.4.4
Moving to another account, helped me solve the problem. I hope it helps you too.
Reply With Quote
  #5 (permalink)  
Old 03-12-2008, 08:15 PM
New Pligger
Pligg Version: 9.8
Pligg Template: not yet
 
Join Date: Dec 2007
Posts: 13
so xoail ... is that mean if I've got the same problem I should change my hosting provider because their servers doesn't support some crucial things in PHP ?

Cheers - Matt.
Reply With Quote
  #6 (permalink)  
Old 04-03-2008, 01:09 PM
moonring's Avatar
New Pligger
Pligg Version: 9.9
Pligg Template: yget
 
Join Date: Jun 2007
Location: In Front of PC
Posts: 20
Open 'login.php' [root]

Replace Line 60

PHP Code:
header('Location:  '.$return); 
With

PHP Code:
$return ereg_replace' +''%20'$return);
header('Location:'.$return); 
Reply With Quote
  #7 (permalink)  
Old 01-16-2009, 03:20 AM
New Pligger
 
Join Date: Jan 2009
Posts: 1
I also encountered the same problem. I was developing my template using MAMP (the XAMMP equivalent on Mac)
instead of setting $result if you have logged by clicking on Login
PHP Code:
header('Location:  index.php'); 
that worked for me
Reply With Quote
  #8 (permalink)  
Old 03-31-2009, 03:06 PM
New Pligger
Pligg Version: 9.9.5
 
Join Date: Mar 2009
Posts: 6
nothing here work for me :/
Reply With Quote
  #9 (permalink)  
Old 04-01-2009, 07:35 PM
New Pligger
 
Join Date: Feb 2009
Posts: 1
не работает
Reply With Quote
  #10 (permalink)  
Old 08-14-2009, 11:34 AM
New Pligger
 
Join Date: Aug 2009
Posts: 1
Quote:
Originally Posted by tofu View Post
nothing here work for me :/
Hi! I don't know if anyone is still looking for a solution...I came across this thread searching for solutions to the same problem...

I resolved it with:

Code:
 $updateGoTo = "page.php?p=".$var;
				  if (isset($_SERVER['QUERY_STRING'])) {
					$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
					$updateGoTo .= $_SERVER['QUERY_STRING'];
				  }
				  header(sprintf("Location: %s", $updateGoTo));
Wierdly enough though other pages from the same site are still working with header (Location: etc etc....
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with template in IE7 xsillence Questions and Comments 5 04-15-2011 10:52 PM
recurrent problem: stat failed sanli Questions and Comments 3 11-20-2009 04:00 PM
voting problem & comments problem DailyResearch Questions and Comments 11 07-09-2007 09:11 PM
Problem form doesn't work! nabil Questions and Comments 1 04-01-2006 09:53 PM
Need help on CSS <h1> header </h1> kepin Questions and Comments 5 02-22-2006 03:32 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development