这里需要一些帮助。这将不胜感激。我正在帮助她的一个朋友,她从客户那里得到了这个错误。使用localhost。
错误:
解析错误:语法错误,意外的$ end,期待第53行的C:\ xampp \ htdocs \ OurCammbackup \ libraries \ joomla \ error \ error.php中的T_FUNCTION
代码:
<?php
/**
* @package Joomla.Platform
* @subpackage Error
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. Allrights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
// Error Definition: Illegal Options
define('JERROR_ILLEGAL_OPTIONS', 1);
// Error Definition: Callback does not exist
define('JERROR_CALLBACK_NOT_CALLABLE', 2);
// Error Definition: Illegal Handler
define('JERROR_ILLEGAL_MODE', 3);
/**
* Error Handling Class
*
* This class is inspired in design and concept by patErrorManager <http://www.php- tools.net>
*
* patErrorManager contributors include:
* - gERD Schaufelberger <gerd@php-tools.net>
* - Sebastian Mordziol <argh@php-tools.net>
* - Stephan Schmidt <scst@php-tools.net>
*
* @package Joomla.Platform
* @subpackage Error
* @since 11.1
* @deprecated 12.1 Use PHP Exception
*/
abstract class JError
{
/**
* Legacy error handling marker
*
* @var boolean True to enable legacy error handling using JError, false to use exception handling. This flag
* is present to allow an easy transition into exception handling for code written against the
* existing JError API in Joomla.
* @since 11.1
*/
public static $legacy = false;
/**
* Array of message levels
*
* @var array
* @since 11.1
*/
我错过了什么吗?
答案 0 :(得分:0)
您没有提及版本但在3.x系列中该文件位于legacy
目录而不是joomla
的{{1}}目录中,所以我'与2.5.x一起
回答你的问题,“是的你错过了什么” - 文件的其余部分。该文件来自Joomla的2.5.x系列,应该超过900行,如下面2.5.14版所示:
/libraries