0
我目前正在我公司安裝Ponydocs。我已經完成了安裝過程中的第4步,但在第5步中,當我嘗試訪問該網站時出現此錯誤。ponydocs安裝步驟5
解析錯誤:語法錯誤,意想不到的
$ponyDocsProductsList
(T_VARIABLE
)在上線C:\wamp\www\LocalSettings.php
179
這裏是它在談論
################# PONYDOCS START #################
#Ponydocs Logo
$wgLogo = "/extensions/PonyDocs/images/pony.png";
#Implicit group for all visitors, remove access beyond reading
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createpage'] = false;
$wgGroupPermissions['*']['upload'] = false;
$wgGroupPermissions['*']['reupload'] = false;
$wgGroupPermissions['*']['reupload-shared'] = false;
$wgGroupPermissions['*']['writeapi'] = false;
$wgGroupPermissions['*']['createtalk'] = false;
$wgGroupPermissions['*']['read'] = true;
#User is logged-in. Ensure that they still can't edit.
$wgGroupPermissions['user']['read'] = true;
$wgGroupPermissions['user']['createtalk'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['minoredit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['writeapi'] = false;
$wgGroupPermissions['user']['move-subpages'] = false;
$wgGroupPermissions['user']['move-rootuserpages'] = false;
$wgGroupPermissions['user']['purge'] = false;
$wgGroupPermissions['user']['sendemail'] = false;
$wgGroupPermissions['user']['writeapi'] = false;
#Our "in charge" group.
$wgGroupPermissions['bureaucrat']['userrights'] = true;
#Custom permission to branch ALL topics for a version.
$wgGroupPermissions['bureaucrat']['branchall'] = true;
#Implicit group for accounts that pass $wgAutoConfirmAge
$wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
#Implicit group for accounts with confirmed email addresses This has
#little use when email address confirmation is off
$wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
#Users with bot privilege can have their edits hidden from various log pages by default
$wgGroupPermissions['bot']['bot'] = true;
$wgGroupPermissions['bot']['autoconfirmed'] = true;
$wgGroupPermissions['bot']['nominornewtalk'] = true;
$wgGroupPermissions['bot']['autopatrol'] = true;
$wgArticlePath = '/$1';
#Ponydocs environment configuration. update to your specific install
define('PONYDOCS_PRODUCT_LOGO_URL', 'http://' . $_SERVER['interanetsrvr'] . '/extensions/PonyDocs/images/pony.png');
define('PONYDOCS_PDF_COPYRIGHT_MESSAGE', 'Copyright Splunk, Inc. All Rights Reserved');
define('PONYDOCS_ENABLE_BRANCHINHERIT_EMAIL', true)
#NOTE: this *must* match what is in Documentation:Products.This will be fixed in later versions
$ponyDocsProductsList = array("Foo");
define('PONYDOCS_DEFAULT_PRODUCT', "Foo");
include_once($IP . "/extensions/PonyDocs/PonyDocsExtension.php");
################# PONYDOCS END #################
好的代碼所以照顧這個答案。現在我得到一個視圖不同的錯誤。 http://tinypic.com/r/2z66o7t/6 – Nitroxsage 2012-08-10 17:15:44