Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Help > General Help



PHP5 Header Problem


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 06:03 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
PHP5 Header Problem

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
Sponsor
  #2 (permalink)  
Old 02-18-2008, 09:23 PM
New Pligger
Pligg Version: Pligg 9.8
Pligg Template: Default
 
Join Date: Nov 2007
Posts: 17
Question

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, 04:01 PM
New Pligger
Pligg Version: 9.9
Pligg Template: Custom
 
Join Date: Nov 2007
Posts: 11
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, 05: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, 07:15 PM
New Pligger
Pligg Version: 9.8
Pligg Template: not yet
 
Join Date: Dec 2007
Posts: 15
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, 12: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); 

Web 2.0 Analyst Programmer
Reply With Quote
  #7 (permalink)  
Old 01-16-2009, 02:20 AM
New Pligger
 
Join Date: Jan 2009
Posts: 3
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, 02: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, 06:35 PM
New Pligger
 
Join Date: Feb 2009
Posts: 1
не работает :(
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with template in IE7 xsillence General Help 2 08-29-2007 11:30 PM
Problem with server down erico General Help 1 06-26-2007 10:26 PM
Need help on CSS <h1> header </h1> kepin Template Support 5 02-22-2006 02:32 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development