PDA

View Full Version : Functions.php Error, HELP PLEASE!


TexasHorns
12-12-2004, 04:53 PM
Hey guys, I really need help here :mad:

I get an error when I try to go anywhere that requires functions.php which is almost every page.

"Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/big12/public_html/forum/includes/functions.php on line 1887
"
Is the error I get when I try to visit the pages.

Line 1887 =
$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";

Now I got the error after I followed this step in installing the CMPS.

In your /forum/includes/functions.php:

Find:
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))
Replace it with:
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index') OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))[/

I will be so gateful if you can help me. Thanks a ton!

TexasHorns
12-12-2004, 05:02 PM
EDIT//

I have fixed this problem, but if anyone else has this same problem I will keep this here.

How to resolve it you ask?
Delete the line!

Our Sponsors
 

Jester
12-12-2004, 09:00 PM
I am getting the same error message after going through a fresh install. So which line are you talking about??

NOTE: I am getting this as I attempt to run the install script.

REVISED: I solved the problem...figured out what the above user was talking about.

Brian
12-13-2004, 12:28 AM
You really shouldn't be deleting lines like that. You need to get a fresh, un-hacked version of that file and edit with Notepad or another simple text editor, NOT Dreamweaver.

Our Sponsors
 

Jester
12-13-2004, 06:37 AM
You really shouldn't be deleting lines like that. You need to get a fresh, un-hacked version of that file and edit with Notepad or another simple text editor, NOT Dreamweaver.
Good call on the Dreamweaver. So do I need to re-insert this line?

Zachery
12-13-2004, 07:27 AM
As brian stated start with a fresh unhacked version of the file.