You are not enjoying the benefits offered by registering. To register click here...
  
Forums | Prefs | Your Messages | Members | Recent | Search
Quick Search


Advanced Search
| Calendar | Doc | Dev' Blog! |
Chat (Alpha Version)

Guest, do not forget to login ( Register )
 Top > Forums > This Software > Support, FAQ, How-to's
 Installed fine...but then this

Skin Selection:
 (1 pages) 1  
andrewccm


Newbie
Group: Members
Posts: 1
Reputation: 0


Posted on Feb 3, 2008, 3:53 am by andrewccm
Installed fine...but then this
Error type: E_WARNING
Message: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /usr/www/users/andrewd/BBS/common.php:2518)
Location: /usr/www/users/andrewd/BBS/user.php (line: 438)

 

I am receiving this error message when trying to access my site.  The install went fine, but as soon as I hit view site.... I got this error. 

Any help would be GREATLY appreciated.


 
Top

Commifreak

Story Teller
Group: Developers
Posts: 313
Reputation: 4


Posted on Feb 3, 2008, 12:30 pm by Commifreak
hm..

is your Brwoser allowed to accept cookies?

pls post your forum link here

EDIT:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /usr/www/users/andrewd/BBS/common.php on line 2518

yeah seems that you have errors in you php.ini

Last edit by Commifreak on Feb 3, 2008, 12:32 pm
Greetings,
CF
----
http://www.commifreak-online.de
 
Top

Burning Ice

Local Hero
Group: Testers
Posts: 72
Reputation: 5


Posted on Feb 3, 2008, 7:13 pm by Burning Ice

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /usr/www/users/andrewd/BBS/common.php on line 2520
Alas, I believe that you are trying to hack this board...

Lolz...

Anyway, after some googleïng i've found this:
(source)

What’s bad practice is the following:

function display($message) {
 echo $message;
}

$myMessage = 'Hello World!';

// Call time pass by reference - bad practice!
display(&$message);

That’s known as a call-time pass-by-reference, which PHP controls with the following setting in php.ini:

allow_call_time_pass_reference = Off

By default, in recent PHP releases the above setting should be switched to Off; turning it on is “frowned upon” by PHP’s makers. Switched off, PHP will generate warning errors every time a function call specifies an argument should be passed by reference. As such, it’s good practice to leave this setting off.

The reason why call time pass by reference is a “bad thing” is that call time passing by reference can make code extremely difficult to follow. I’ve occasionally seen PHP XML parsers written using a call-time pass-by-reference—it’s nearly impossible to gain any idea of what’s going on.

The “decision” as to whether a variable is passed by reference or not is one that belongs to the function being called, not the code that calls it. The above code written correctly would look like this:

// Accept by reference - good practice
function display(&$message)
{
 echo $message;
}

$myMessage = 'Hello World!';

display($message);

If you take a look to the common.php file on line 2518 and 2520 you'll see this:

php Code:
  1.   $ret = $this->parseEmo(&$ret, !$bStrip);

php Code:
  1.   $ret = $this->trimBannedWords(&$ret);

So imo this is why you get the error

Now, I could be wrong, but changing the php.ini file can only be done by your hosting service, or in some cases by uploading a php.ini file in your domain's root folder... 

You can ask Chris what you must do, but in your case I would give it a try to change the two lines in common.php into this:

php Code:
  1.   $ret = $this->parseEmo($ret, !$bStrip);

php Code:
  1.   $ret = $this->trimBannedWords($ret);

Greetz

 


You can do it if you really want it... - - - see my testforum (0.5.3)
 
Top

chris

The Culprit
Group: Admins
Posts: 1,541
Reputation: 38


Posted on Feb 3, 2008, 7:26 pm by chris
Well done!
If you download the nightly build, which I recommend, you will find that it is exactly how common.php is behaving nowadays.
I *really* need to release a new version because not everybody is motivated to download the nightly build...

 
Top

Burning Ice

Local Hero
Group: Testers
Posts: 72
Reputation: 5


Posted on Feb 3, 2008, 8:07 pm by Burning Ice

 chris wrote:
I *really* need to release a new version because not everybody is motivated to download the nightly build...

Actually...
When I came on nextbbs.com for the first time, I clicked on download, and I didn't have a clue what 'nightly build' meant...
So I was more looking at  "You can download the latest stable release of NextBBS from SourceForge: click here.", and downloaded 0.5.0
Guess that the most peops will follow that way
Greetz



Last edit by Burning Ice on Feb 3, 2008, 8:10 pm
You can do it if you really want it... - - - see my testforum (0.5.3)
 
Top

 (1 pages) 1 - Flat Mode | Threaded Mode  
Quick Jump:

         
Page generated in 0.03 seconds (Queries: 0.00) - Cpu: 0.28
Total DB [adodb:mysql] queries: 15
Total Strings Translated: 14
Powered by NextBBS SE v0.4.5 - Copyright © 2007 CFR & The NextBBS Team
Chatbox powered by smiletag