View Full Version : Parse error
1996 328ti
08-09-2004, 09:41 PM
I've run into a problem. I get this message after running vbacmps_install.php
Parse error: parse error, unexpected ';', expecting ')' in /home/steven/public_html/test/forum/global.php on line 33
Line 33 readsrequire_once('./includes/init.php');
What I have done to solve the problem.
Searched for possible parse errors involving global.php.
Reinstalled all 3 files needing to be edited.
Edited those files again.
My cmps_index.php file has been edited as
chdir('./test/forum');
I am running vBulletin 3.0.3
...steven
Brian
08-10-2004, 12:26 PM
Try removing the file changes you made to your functions.php file and then re-applying them.
1996 328ti
08-10-2004, 09:07 PM
I edited a fresh copy of functions.php twice and still get the same error.
My global.php file reads<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.0.3 - Licence Number
|| # ---------------------------------------------------------------- # ||
|| # Copyright ©2000Ò2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/
// identify where we are
define('VB_AREA', 'Forum');
// #############################################################################
// Start initialisation
if (defined('VBA_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);
$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
'adv_portal_opts',
'attachmentcache',
require_once('./includes/init.php');
// #############################################################################
// Start functions and my functions.php file at around 2995 looks like // query calendar permissions
if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index') OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))
{ // Only query calendar permissions when accessing the calendar or subscriptions or index.php
Zachery
08-10-2004, 09:38 PM
this should not be
if (defined('VBA_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);
$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
'adv_portal_opts',
'attachmentcache',
it should be
if (defined('VBA_PORTAL'))
{
$phrasegroups = array_merge($phrasegroups,
array(
'calendar',
'adv_portal',
'postbit'
)
);
$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
'adv_portal_opts',
'attachmentcache',
'bbcodecache',
'birthdaycache',
'eventcache',
'iconcache',
'maxloggedin',
'smiliecache',
'userstats'
)
);
$globaltemplates = array_merge($globaltemplates,
array(
'adv_portal',
'adv_portal_footer'
)
);
}
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.