View Full Version : functions.php problem
k01nr01
01-22-2005, 07:41 PM
I just tried to install this and everything was going well, but I ended up with this message:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /public_html/includes/functions.php on line 1922
Line 1922 is:
$debughtml .= "<select>\n\t<option>(Page Generated in $totaltime Seconds)</option>\n$messages</select>\n";
I'm running vB 3.0.5 and using the latest version of the hack. I'm pretty new to this, and any help would be appreciated.
Zachery
01-22-2005, 07:48 PM
retry hacking functions.php and dont use dreamweaver
k01nr01
01-22-2005, 08:10 PM
Thanks for the quick reply. I tried rehacking functions.php using TextEdit and not Dreamweaver, but I'm still getting the same error, but this time line 1922 is different:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "explain=1\">Explain</a>)<br />\n";
Wifey
01-23-2005, 08:05 PM
okay, I'm helping her on this board and I went through and rehacked everything because she k01nr01 had several errors. It still wasn't working. Sooo, I suggested that she uninstall and revert to the original php files. Still not working.
This is the error we're now getting:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/wizardi/public_html/includes/functions.php on line 1916
And this is the line:
$debughtml .= " (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "tempusage=1\">Template Usage</a>) (<a href=\"" . htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH, '?') '?')'?')'?')=== false, '?', '?','?','?','&') . "explain=1\">Explain</a>)<br />\n";
I have this hack on my boards, version .95 I believe, and I installed it error free quickly. I'm not sure what has gone wrong, but reverting didn't work.
Any ideas?
Link14716
01-23-2005, 08:08 PM
You have to rehack a clean functions.php without using Dreamweaver. See the FAQ topic at the top of this forum.
Wifey
01-23-2005, 08:54 PM
I don't even own dreamweaver so I wasn't using it. I never even knew you could use dreamweaver to hack. I use good old notepad.
It's been solved though, but thanks!
pelican
01-24-2005, 11:22 PM
using notepad is a good advise :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.