PDA


View Full Version : Installation Parse Error


DOMIN8
04-21-2005, 04:06 PM
Im getting this php parse error and im not sure on what to do. Can some one assist me please?

error:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/rodneyrv/public_html/forum/includes/functions.php on line 2018


The code its talking about is:

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";

I have tried to just remove the code and I dont ger the erron anymore but what is this code used for?

Can some one shed some light on this for me?

Thanks in advance

ConqSoft
04-21-2005, 04:08 PM
Sounds like you made an error with your file edits. Start with a fresh file and try again.

DOMIN8
04-21-2005, 04:10 PM
Sounds like you made an error with your file edits. Start with a fresh file and try again.

any idea with what file. I have done this twice with the same output

ConqSoft
04-21-2005, 04:10 PM
With functions.php apparently...

DOMIN8
04-21-2005, 04:12 PM
heh, ok ill give it a shot again

DOMIN8
04-21-2005, 04:21 PM
Ok the parse error is on line 2018 and the code in which the install doc says to replace is on line 3139. So this means to me that the code that i replaced does not have an issue.

What is the code

$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')'?')'?')=== false, '?', '?','?','?','?','?','&amp;') . "explain=1\">Explain</a>)<br />\n";

used for and why?

ConqSoft
04-21-2005, 04:26 PM
Do you get that error before you make your change for CMPS? If so, then it's not a CMPS issue. If not, then you edited incorrectly. :)

Brian
04-21-2005, 05:21 PM
Get a fresh, unhacked version of the functions.php file and re-apply the changes with Notepad instead of Dreamweaver.

DOMIN8
04-21-2005, 05:24 PM
Get a fresh, unhacked version of the functions.php file and re-apply the changes with Notepad instead of Dreamweaver.


ok how did you know i was using DW?

Brian
04-21-2005, 05:28 PM
I'm good like that. :p

There's some type of auto-correct setting in Dreamweaver that always tries to correct code that it shouldn't in functions.php. If you search the forums you'll probably find a few dozen (if not a few hundred) posts discussing this issue.