Warning: array_flip() [<a href='function.array-flip'>function.array-flip</a>]: Can only flip STRING and INTEGER values! in /app/code/local/Df/Core/lib/fp/array.php on line 458
при правке должности в админке.
Весь текст ошибки:
URL:
http://ftshop.morphes.tmweb.ru/index.php/ftadmin/permissions_role/editrole/key/7bf1d8cb82daef19c37955b0994976b7/
Версия Magento: 2.36.5 (1.7.0.2)
Версия PHP: 5.3.18
Время: 2014-08-06 13:58:10 MSK
***********************************
Warning: array_flip() [<a href='function.array-flip'>function.array-flip</a>]: Can only flip STRING and INTEGER values! in /app/code/local/Df/Core/lib/fp/array.php on line 458
***********************************
Файл:
Строка: 0
Субъект: array_flip
Объект: mageCoreErrorHandler
Файл: app/code/local/Df/Core/lib/fp/array.php
Строка: 458
Субъект: rm_array_unique_fast
Объект: array_flip
Контекст:
/**
* Работает в разы быстрее, чем @see array_unique()
* @link http://stackoverflow...9991540_5036538
* @link http://www.php.net/m...nique.php#70786
* @param mixed[] $array
* @return mixed[]
*/
function rm_array_unique_fast(array $array) {return array_keys(array_flip($array));}
/**
* @param string $glue
* @param string|string[] $elements
* @return string
*/
function rm_concat_clean($glue, $elements) {
if (!is_array($elements)) {
************************************
Файл: app/code/local/Df/Logging/Model/Processor.php
Строка: 47
Субъект: Df_Logging_Model_Processor::getCollectedIds
Объект: rm_array_unique_fast
Контекст:
return $this;
}
/** @return int[] */
public function getCollectedIds() {
$ids = array();
foreach ($this->_collectedIds as $className => $classIds) {
$uniqueIds = rm_array_unique_fast($classIds);
$ids = array_merge($ids, $uniqueIds);
$this->_collectedIds[$className] = $uniqueIds;
}
return $ids;
}
/** @var int[] */
protected $_collectedIds = array();
************************************
Файл: app/code/local/Df/Logging/Model/Handler/Controllers.php
Строка: 23
Субъект: Df_Logging_Model_Handler_Controllers::postDispatchGeneric
Объект: Df_Logging_Model_Processor::getCollectedIds
Контекст:
*
* @param Varien_Simplexml_Element $config
* @param Df_Logging_Model_Event $eventModel
* @return Df_Logging_Model_Event
*/
public function postDispatchGeneric($config, $eventModel, $processorModel)
{
if ($collectedIds = $processorModel->getCollectedIds()) {
$eventModel->setInfo(
Df_Logging_Helper_Data::s()->implodeValues($collectedIds)
);
return true;
}
return false;
}
************************************
Файл: app/code/local/Df/Logging/Model/Processor.php
Строка: 169
Субъект: Df_Logging_Model_Processor::logAction
Объект: Df_Logging_Model_Handler_Controllers::postDispatchGeneric
Контекст:
$defaulfCallback = 'postDispatchGeneric';
$classMap = $this->_getCallbackFunction($callback, $this->_controllerActionsHandler, $defaulfCallback);
$handler = $classMap['handler'];
$callback = $classMap['callback'];
if (!$handler) {
return;
}
if ($handler->$callback($this->_eventConfig, $loggingEvent, $this)) {
$loggingEvent->save();
if ($eventId = $loggingEvent->getId()) {
foreach ($this->_eventChanges as $changes){
if ($changes && ($changes->getOriginalData() || $changes->getResultData())) {
$changes->setEventId($eventId);
$changes->save();
}
}
************************************
Файл: app/code/local/Df/Logging/Model/Observer.php
Строка: 52
Субъект: Df_Logging_Model_Observer::controllerPostdispatch
Объект: Df_Logging_Model_Processor::logAction
Контекст:
public function controllerPostdispatch($observer) {
if (
df_cfg()->logging()->isEnabled()
&&
df_enabled(Df_Core_Feature::LOGGING)
) {
if ($observer->getEvent()->getControllerAction()->getRequest()->isDispatched()) {
Df_Logging_Model_Processor::s()->logAction();
}
}
}
/**
* @param Varien_Event_Observer $observer
* @return void
*/
************************************
Файл: app/code/core/Mage/Core/Model/App.php
Строка: 1338
Субъект: Mage_Core_Model_App::_callObserverMethod
Объект: Df_Logging_Model_Observer::controllerPostdispatch
Контекст:
* @param Varien_Event_Observer $observer
* @return Mage_Core_Model_App
* @throws Mage_Core_Exception
*/
protected function _callObserverMethod($object, $method, $observer)
{
if (method_exists($object, $method)) {
$object->$method($observer);
} elseif (Mage::getIsDeveloperMode()) {
Mage::throwException('Method "'.$method.'" is not defined in "'.get_class($object).'"');
}
return $this;
}
public function setUpdateMode($value)
{
************************************
Файл: app/code/core/Mage/Core/Model/App.php
Строка: 1317
Субъект: Mage_Core_Model_App::dispatchEvent
Объект: Mage_Core_Model_App::_callObserverMethod
Контекст:
$object = Mage::getModel($obs['model']);
$this->_callObserverMethod($object, $method, $observer);
break;
default:
$method = $obs['method'];
$observer->addData($args);
$object = Mage::getSingleton($obs['model']);
$this->_callObserverMethod($object, $method, $observer);
break;
}
Varien_Profiler::stop('OBSERVER: '.$obsName);
}
}
return $this;
}
************************************
Файл: app/Mage.php
Строка: 447
Субъект: Mage::dispatchEvent
Объект: Mage_Core_Model_App::dispatchEvent
Контекст:
* @param string $name
* @param array $data
* @return Mage_Core_Model_App
*/
public static function dispatchEvent($name, array $data = array())
{
Varien_Profiler::start('DISPATCH EVENT:'.$name);
$result = self::app()->dispatchEvent($name, $data);
Varien_Profiler::stop('DISPATCH EVENT:'.$name);
return $result;
}
/**
* Retrieve model object
*
* @link Mage_Core_Model_Config::getModelInstance
************************************
Файл: app/code/core/Mage/Core/Controller/Varien/Action.php
Строка: 551
Субъект: Mage_Core_Controller_Varien_Action::postDispatch
Объект: Mage::dispatchEvent
Контекст:
Mage::dispatchEvent(
'controller_action_postdispatch_'.$this->getFullActionName(),
array('controller_action'=>$this)
);
Mage::dispatchEvent(
'controller_action_postdispatch_'.$this->getRequest()->getRouteName(),
array('controller_action'=>$this)
);
Mage::dispatchEvent('controller_action_postdispatch', array('controller_action'=>$this));
}
public function norouteAction($coreRoute = null)
{
$status = ( $this->getRequest()->getParam('__status__') )
? $this->getRequest()->getParam('__status__')
: new Varien_Object();
************************************
Файл: app/code/core/Mage/Core/Controller/Varien/Action.php
Строка: 423
Субъект: Mage_Core_Controller_Varien_Action::dispatch
Объект: Mage_Core_Controller_Varien_Action::postDispatch
Контекст:
$_profilerKey = self::PROFILER_KEY.'::'.$this->getFullActionName();
Varien_Profiler::start($_profilerKey);
$this->$actionMethodName();
Varien_Profiler::stop($_profilerKey);
Varien_Profiler::start(self::PROFILER_KEY.'::postdispatch');
$this->postDispatch();
Varien_Profiler::stop(self::PROFILER_KEY.'::postdispatch');
}
}
}
catch (Mage_Core_Controller_Varien_Exception $e) {
// set prepared flags
foreach ($e->getResultFlags() as $flagData) {
list($action, $flag, $value) = $flagData;
************************************
Файл: app/code/core/Mage/Core/Controller/Varien/Router/Standard.php
Строка: 250
Субъект: Mage_Core_Controller_Varien_Router_Standard::match
Объект: Mage_Core_Controller_Varien_Action::dispatch
Контекст:
// set parameters from pathinfo
for ($i = 3, $l = sizeof($p); $i < $l; $i += 2) {
$request->setParam($p[$i], isset($p[$i+1]) ? urldecode($p[$i+1]) : '');
}
// dispatch action
$request->setDispatched(true);
$controllerInstance->dispatch($action);
return true;
}
/**
* Get router default request path
* @return string
*/
************************************
Файл: app/code/core/Mage/Core/Controller/Varien/Front.php
Строка: 176
Субъект: Mage_Core_Controller_Varien_Front::dispatch
Объект: Mage_Core_Controller_Varien_Router_Standard::match
Контекст:
Varien_Profiler::start('mage::dispatch::config_url_rewrite');
$this->rewrite();
Varien_Profiler::stop('mage::dispatch::config_url_rewrite');
Varien_Profiler::start('mage::dispatch::routers_match');
$i = 0;
while (!$request->isDispatched() && $i++<100) {
foreach ($this->_routers as $router) {
if ($router->match($this->getRequest())) {
break;
}
}
}
Varien_Profiler::stop('mage::dispatch::routers_match');
if ($i>100) {
Mage::throwException('Front controller reached 100 router match iterations');
}
************************************
Файл: app/code/core/Mage/Core/Model/App.php
Строка: 354
Субъект: Mage_Core_Model_App::run
Объект: Mage_Core_Controller_Varien_Front::dispatch
Контекст:
$scopeCode = isset($params['scope_code']) ? $params['scope_code'] : '';
$scopeType = isset($params['scope_type']) ? $params['scope_type'] : 'store';
$this->_initCurrentStore($scopeCode, $scopeType);
$this->_initRequest();
Mage_Core_Model_Resource_Setup::applyAllDataUpdates();
}
$this->getFrontController()->dispatch();
}
return $this;
}
/**
* Initialize PHP environment
*
* @return Mage_Core_Model_App
************************************
Файл: app/Mage.php
Строка: 683
Субъект: Mage::run
Объект: Mage_Core_Model_App::run
Контекст:
self::$_events = new Varien_Event_Collection();
self::_setIsInstalled($options);
self::_setConfigModel($options);
self::$_app->run(array(
'scope_code' => $code,
'scope_type' => $type,
'options' => $options,
));
Varien_Profiler::stop('mage');
} catch (Mage_Core_Model_Session_Exception $e) {
header('Location: ' . self::getBaseUrl());
die();
} catch (Mage_Core_Model_Store_Exception $e) {
require_once(self::getBaseDir() . DS . 'errors' . DS . '404.php');
die();
} catch (Exception $e) {
************************************
Файл: index.php
Строка: 87
Субъект:
Объект: Mage::run
Контекст:
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
Mage::run($mageRunCode, $mageRunType);
************************************