我正在爲我的警告之一尋找解決方案。PHP警告:缺少sfOutputEscaperGetterDecorator :: get()的參數1,在
系統信息: OS:FreeBSD的 引擎:nginx的+ PHP-FPM CMS:Sympfony 1.4
問題是,當我嘗試列出在後臺的Symfony主頁的數據我收到以下錯誤,數據不能可以顯示原始數據(鏈接到用戶的帳戶),但不能顯示任何內容。
[錯誤] 7716#100111:* 1288的FastCGI在標準錯誤發送:「PHP消息:PHP的警告:)缺少參數1 sfOutputEscaperGetterDecorator ::得到(,堪稱/數據/斌/緩存/後端/ PROD /modules/autoSfGuardUser/templates/_list_td_tabular.php在第2行,並在第45行的/data/bin/lib/symfony/escaper/sfOutputEscaperGetterDecorator.class.php中定義。012hPHP消息:PHP警告:array_key_exists():第一個參數應該是字符串或/data/bin/lib/symfony/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php上線的整數1357
文件:/數據/ bin中/ LIB /的symfony /逃避者/ sfOutputEscaperGetterD ecorator.class.php
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Abstract output escaping decorator class for "getter" objects.
*
* @see sfOutputEscaper
* @package symfony
* @subpackage view
* @author Mike Squire <[email protected]>
* @version SVN: $Id: sfOutputEscaperGetterDecorator.class.php 9047 2008-05-19 08:43:05Z FabianLange $
*/
abstract class sfOutputEscaperGetterDecorator extends sfOutputEscaper
{
/**
* Returns the raw, unescaped value associated with the key supplied.
*
* The key might be an index into an array or a value to be passed to the
* decorated object's get() method.
*
* @param string $key The key to retrieve
*
* @return mixed The value
*/
public abstract function getRaw($key);
/**
* Returns the escaped value associated with the key supplied.
*
* Typically (using this implementation) the raw value is obtained using the
* {@link getRaw()} method, escaped and the result returned.
*
* @param string $key The key to retieve
* @param string $escapingMethod The escaping method (a PHP function) to use
*
* @return mixed The escaped value
*/
public function get($key, $escapingMethod = null)
{
if (!$escapingMethod)
{
$escapingMethod = $this->escapingMethod;
}
return sfOutputEscaper::escape($escapingMethod, $this->getRaw($key));
}
}