Posted on: 04/19/04 10:41pm
By: Leita
Hi - I tried to input the journal comment display for the What's New Block and I'm getting this error when I add it to my lib-custom.php. Any ideas what this is?
my site is
7 Deadly-Sins[*1] . But it has to be listed in config as theveil.org since it was originally moved over from the Veil.
Parse error: parse error in /home/theveil.org/html/adventures/system/lib-custom.php on line 430
Warning: Cannot modify header information - headers already sent by (output started at /home/theveil.org/html/adventures/system/lib-custom.php:430) in /home/theveil.org/html/adventures/system/lib-sessions.php on line 185
Warning: Cannot modify header information - headers already sent by (output started at /home/theveil.org/html/adventures/system/lib-custom.php:430) in /home/theveil.org/html/adventures/system/lib-sessions.php on line 197
Journal Comments - What's New Block
Posted on: 04/20/04 10:11am
By: Turias
Sounds like you have a parse error on or before line 430 of that file.
Also check for extra whitespace after ?> at the end of the file. Delete it if there is any.
Journal Comments - What's New Block
Posted on: 04/21/04 04:05am
By: Leita
no blank spaces ,( I had made sure of that. All I did was add the code to the end of my lib-custom.php.
Journal Comments - What's New Block
Posted on: 04/21/04 09:49am
By: Turias
Then there is a parse error. Maybe someething split onto two lines, an unescaped quotation mark, etc.
Journal Comments - What's New Block
Posted on: 04/24/04 03:31pm
By: Leita
Well, I'm not very good with this, so it may sound dumb. I remember reading a while back that you need to space over instead of hitting the tab key in php. So I took the coding and deleted all the spaces and spaced over with the spacebar.
Now the parse error is on line 449 and this is 449:
$str = "<a href="{$_CONF['site_url']}/journal/index.php?mode=read"
this is line 450:
."&type=entry&je_id={$item['sid']}#comments">";
And if I look at the code in dreamweaver,
#comments">";
is in orange, like something is missing.
Journal Comments - What's New Block
Posted on: 04/24/04 04:20pm
By: Dazzy
I take it for granted you didn't use dreamweavor when you edited the file?
Journal Comments - What's New Block
Posted on: 04/24/04 04:22pm
By: Leita
That's correct - I edited it in notepad
Journal Comments - What's New Block
Posted on: 04/25/04 08:13am
By: Dazzy
I have also tried to implemnt this on my 'test server' and receive the same error as yourself!
I'm no php expert but wouldn't the # in line 450 indicate a comment?
."&type=entry&je_id={$item['sid']}#comments">";
Journal Comments - What's New Block
Posted on: 04/25/04 05:40pm
By: Turias
A # is a comment in many languages, but not in php.
The forum strips backslashes out, so you might be doing it correctly, but see how $str is a string? Since you are defining the string with double quotes, make sure you escape the double quotes inside that string with backslashes (right after the href= and right after #comments).
Journal Comments - What's New Block
Posted on: 04/25/04 05:59pm
By: Leita
Awesome! Thanks - that was it - so it should like like this:
$str = "<a href=\"{$_CONF['site_url']}/journal/index.php?mode=read"
."&type=entry&je_id={$item['sid']}#comments\">";