View Full Version : Parse Error (functions.php) while preparing to Install
Edric
06-22-2004, 10:38 AM
Hello, I am trying to install vbAdvanced CMPS, unfortunately I thought I did everything correct but I cannot load any page from my forum any longer and I get the following error:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/httpd/vhosts/avemelita.com/httpdocs/forum/includes/functions.php on line 1864
Can anyone help me in fixing this?
Brian
06-22-2004, 10:51 AM
You made a mistake when editing your functions.php file. Try taking a clean, un-hacked version of the file and reapply the changes. Also be sure not to use Dreamweaver or another similar program as they have been known to cause problems in the past.
Edric
06-22-2004, 10:58 AM
I used Dreamweaver. What should I use? I tried re-uploading the unhacked files but the Forum still does not load.
Brian
06-22-2004, 11:01 AM
You should use Notepad or any other simple text editor to make the changes. Does your forum still give the same error after you uploaded the unhacked file?
Edric
06-22-2004, 11:02 AM
Yes it still does.
You wouldn't know how to re-upload the forum files using SSH2 right? I have the Forum folder saved on my server as a .tar.gz file.
I'd rather restore the folder to start from scratch.
Edric
06-22-2004, 11:22 AM
Ignore my last question I managed to restore the Forum problem. Now I would like to install your great hack. You think I did an error in the editting of the functions.php file?
Edric
06-22-2004, 11:41 AM
It is indeed a problem with functions.php. Now I'll check it with detail to see what I did wrong.
Edric
06-22-2004, 11:54 AM
I supposedly installed vbAdvanced CMPS successfully since I received no error messages during the Installation process. However I get this when I try to access the cmps_index.php file:
Warning: main(./global.php): failed to open stream: No such file or directory in /home/httpd/vhosts/avemelita.com/httpdocs/cmps_index.php on line 25
Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/avemelita.com/httpdocs/cmps_index.php on line 25
I hope someone can help so I implement this hack.
Edric
06-23-2004, 11:06 AM
So no one has an idea of how to fix the problem in the post above?
Sorry to disturb.
Brian
06-23-2004, 11:16 AM
FAQ forum. ;)
Edric
06-23-2004, 11:37 AM
Sorry I'll go check.
Edric
06-23-2004, 12:07 PM
I checked the FAQ Forum, but I found nothing that answers my problem. Sorry if I am disturbing, but I am not very good with codes and that stuff (And I guess it shows). I tried checking the global.php file and I did all the file editing required I think, so I do not know what is the problem now.
Do you know what is the possible problem?
Brian
06-23-2004, 12:09 PM
Your chdir line in your cmps_index.php file should be this:
chdir('/home/httpd/vhosts/avemelita.com/httpdocs/forum_name_here');
Edric
06-23-2004, 12:35 PM
OK managed to get it to work, now I'll play around with the settings to get the wanted look for the homepage.
I'll go click on install at vb.org.
Thanks a lot Brian, one question, how do I get the Forum and Home link in the Navigation Bar at the top?
Thanks a lot once again, this is an awesome hack! :D
Brian
06-23-2004, 12:39 PM
Glad you got it worked out. Here's the link to the dynamic forum/home mod. ;)
http://www.vbadvanced.com/forum/showthread.php?t=41
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.