PDA

View Full Version : CMPS Error after adding code!!! Please help!


ChaoticMageDDC
04-24-2005, 04:51 PM
I've double checked everything two or three times. I have followed everything it has told me in the readme file of the CMPS install..

After i modify everything i get this error.

Parse error: parse error in C:\Inetpub\wwwroot\GOA\forum\includes\functions.ph p on line 2018

Here is the code it wants me to replace in the instructions!

if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))



Replace with



if (THIS_SCRIPT == 'online' OR THIS_SCRIPT == 'calendar' OR (THIS_SCRIPT == 'adv_index') OR (THIS_SCRIPT == 'index' AND $vboptions['showevents']))



Now im not completely sure if it has to do with the functions template or not but i would assume so... Can someone please help me get this problem resolved?

EDIT: I get this error when i try to install the portal using this link

http://www.goaguild.com/forum/admin...mps_install.php

and if you go to the main link http://www.goaguild.com/ i get all those errors. Everything works perfect when i revert back..

This is VB 3.07 and i would assume the latest version of CMPS i just downloaded it tonight.

I've fixed the chdir error message now if you go to the main link i still have the function.php parse error...

:ermm:

playstation
04-24-2005, 05:08 PM
Is it a fresh board install.?

If so try downloading vBulletin again and upload and edit the functions.php file again.

ChaoticMageDDC
04-24-2005, 05:56 PM
Is it a fresh board install.?

If so try downloading vBulletin again and upload and edit the functions.php file again.


yes, this is a fresh install of 3.07 No data is on the boards or no other modifications have been made...

I've also tried that a few times... :ermm:

Marco van Herwaarden
04-24-2005, 07:06 PM
Can you post that line complete with 5 lines above and under.

ChaoticMageDDC
04-24-2005, 11:09 PM
else // use combined permissions
{
$user['forumpermissions']["$forumid"] = $user['permissions']['forumpermissions'];
}
}
} // end if access masks enabled and is logged in user

if (!empty($user['membergroupids']))
{
$sqlcondition = "IN($USERGROUPID, $user[membergroupids])";
}
else
{
$sqlcondition = "= $USERGROUPID";
}


// 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
$_PERMQUERY[4] = "
SELECT calendarpermission.usergroupid, calendarpermission.calendarpermissions,calendar.ca lendarid,calendar.title, displayorder
FROM " . TABLE_PREFIX . "calendar AS calendar
LEFT JOIN " . TABLE_PREFIX . "calendarpermission AS calendarpermission ON (calendarpermission.calendarid=calendar.calendarid AND usergroupid IN(" . implode(', ', $membergroupids) . "))
ORDER BY displayorder ASC
";
$cpermscache = array();
$calendarcache = array();
$displayorder = array();
$calendarpermissions = $DB_site->query($_PERMQUERY[4]);
while ($calendarpermission = $DB_site->fetch_array($calendarpermissions))
{
$cpermscache["$calendarpermission[calendarid]"]["$calendarpermission[usergroupid]"] = intval($calendarpermission['calendarpermissions']);
$calendarcache["$calendarpermission[calendarid]"] = $calendarpermission['title'];
$displayorder["$calendarpermission[calendarid]"] = $calendarpermission['displayorder'];
}


Hope this helps

Anyone?? :ermm:

ChaoticMageDDC
04-26-2005, 05:51 PM
Nobody has an answer for me???

I' still have this problem. I've uinstalled and reinstalled numerous times and i just cant seem to get it to work...

Does the newest version of CMPS work with 3.07 or may that be my issue?

Deaths
04-26-2005, 06:08 PM
You must've forgotten to make the file edits to global.php, or forgot to reupload it.

ChaoticMageDDC
04-26-2005, 07:09 PM
hmmm i've done this about 5 times now and i'm pretty sure i'm doing everything correctly. I will try it again and double check the global.php edits.

Thanks

Nope!!!! :mad: Same error code... I did another fresh install, modified all the templates and php files and double checked that everything was uploaded which it was... I don't understand what the heck is wrong... I've never had a problem with cmps before on previous versions of VB :ermm:

PROBLEM FIXED :nervous: Finally!!!