Firefox PHP

Newbie: Integrate in CMS...

Posted by lindstrom 
Re: Newbie: Integrate in CMS...
December 14, 2006 02:52PM
Sorry, but I don´t understand where the error is located.

Line 238 in login.php is:

setcookie( "phorum_tmp_cookie", "this will be destroyed once logged in", 0, $PHORUM["session_path"], $PHORUM["session_domain"] );

Please try to give a solution which can be understood by idiots ;-)
Re: Newbie: Integrate in CMS...
December 15, 2006 04:06AM
Quote
lindstrom
Sorry, but I don´t understand where the error is located.

Line 238 in login.php is:

setcookie( "phorum_tmp_cookie", "this will be destroyed once logged in", 0, $PHORUM["session_path"], $PHORUM["session_domain"] );

Please try to give a solution which can be understood by idiots ;-)

Error is in your own code, you start to output something (a space is enough) and when Phorum tries to set a cookie it gives an error (you can't output anything to browser before setting a cookie or making a redirect for example.)

So check that there isn't anything in your php file before the opening <?php or that you don't echo anything before the cookie call in phorums login.php (as Thomas' message implied in the linked thread)

---
-=[ Panu ]=-
Re: Newbie: Integrate in CMS...
December 15, 2006 04:31AM
or use the ob_start command in the very first lines of your php-code so that nothing is really output before the phorum-code is run.


Thomas Seifert
Re: Newbie: Integrate in CMS...
December 15, 2006 08:44AM
Thanks for your replies. I wondering about the error because I didn´t change anything. I just installed Phorum, then the portable solution and last I included the phorum.php in my cms-template. I will check the login.php whether there is something wrong...

If not, can you explain the "ob_start" command, please?

The thing is I don´t need a login, because I want to offer posting without registering before. Perhaps I can deactivate the login and my problem is also solved. Is this possible?



Edited 1 time(s). Last edit at 12/15/2006 08:46AM by lindstrom.
Re: Newbie: Integrate in CMS...
December 15, 2006 12:06PM
You don't need to do this. You can set the permissions on the phorums to allow nonregistered users to read and post.
Re: Newbie: Integrate in CMS...
December 15, 2006 02:01PM
I know, but I want to hide the Login and Register Link...
Re: Newbie: Integrate in CMS...
December 16, 2006 07:10AM
Ok, I looked in the login.php and there is no space or something. The login.php is exactly as I downloaded it from here.

After that I thought the problem is my template in which I included Phorum. So I deleted all and now it looks like this:

<html>
<head>
<we:charset defined="ISO-8859-1">ISO-8859-1</we:charset>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="conthead">
</td>
</tr>
<tr>
<td class="conttbl3">
<? include ("/kunden/83050_33184/webseiten/projekte/forum/phorum.php"); ?> </td>
</tr>
<tr>
<td></td>
</tr>
</table>
<br></td>
</tr>
</table>
</body>
</html>


But the same error message comes again, when I click on login. I tried to answer to the test posting and the same message appears but for this time in common.php on line 862.

I am confused because the forum itself works fine but I don´t know what occurs these error messages...
Re: Newbie: Integrate in CMS...
December 18, 2006 04:03AM
And your cms template?

---
-=[ Panu ]=-
Re: Newbie: Integrate in CMS...
December 18, 2006 05:08AM
That is my cms template.
Re: Newbie: Integrate in CMS...
December 19, 2006 06:49AM
No other solutions? Ok, tested it again outside of my CMS and it works. So the problem is somehow my CMS...



Edited 1 time(s). Last edit at 12/19/2006 07:13AM by lindstrom.
Sorry, only registered users may post in this forum.

Click here to login