после переноса площадки на сервер с php 5.5 в АЦ появились ошибки
понимаю что это скорее всего какой то хук но не знаю какой ведь у меня их тьма
помогите найти виновника или исправление ситуации
Warning: Illegal string offset 'hook_php_version_min' in /var/www/v-11741/data/www/asc.kz/forum/admin/applications/core/modules_admin/applications/hooks.php on line 3357 Warning: Illegal string offset 'hook_php_version_max' in /var/www/v-11741/data/www/asc.kz/forum/admin/applications/core/modules_admin/applications/hooks.php on line 3357 Warning: Illegal string offset 'required_applications' in /var/www/v-11741/data/www/asc.kz/forum/admin/applications/core/modules_admin/applications/hooks.php on line 3371
вот кусок кода из hooks.php
line 3357
if( $reqsData['hook_php_version_min'] OR $reqsData['hook_php_version_max'] )
line 3371
if ( is_array($reqsData['required_applications']) && count($reqsData['required_applications']) )
из этого куска
{
/* Init vars */
$hookData = array();
$reqsData = array();
$errors = array();
/* We already have some data? */
if ( is_array($hook) && count($hook) )
{
$hookData = $hook;
}
elseif ( is_int($hook) )
{
$hookData = $this->DB->buildAndFetch( array( 'select' => '*', 'from' => 'core_hooks', 'where' => 'hook_id=' . $hook ) );
}
/* Requirements are still serialized? */
if ( IPSLib::isSerialized($hookData['hook_requirements']) )
{
$hookData['hook_requirements'] = unserialize($hookData['hook_requirements']);
}
/* Make our var shorter... */
$reqsData = &$hookData['hook_requirements'];
/* Old data? - @todo: remove this check around 3.3(4?) */
if ( ! isset($reqsData['required_applications']['core']) && isset($reqsData['hook_ipb_version_min']) && ( $reqsData['hook_ipb_version_min'] > 0 || $reqsData['hook_ipb_version_max'] > 0 ) )
{
$reqsData['hook_ipb_version_min'] = ( $reqsData['hook_ipb_version_min'] < 30000 ) ? 30000 : $reqsData['hook_ipb_version_min'];
$reqsData['required_applications']['core'] = array( 'min_version' => intval($reqsData['hook_ipb_version_min']), 'max_version' => intval($reqsData['hook_ipb_version_max']) );
}
//-----------------------------------------
// Let's start checking requirements
//-----------------------------------------
/* PHP */
if( $reqsData['hook_php_version_min'] OR $reqsData['hook_php_version_max'] )
{
if( $reqsData['hook_php_version_min'] AND version_compare( PHP_VERSION, $reqsData['hook_php_version_min'], '<' ) == true )
{
$errors['php_min'] = sprintf( $this->lang->words['h_phpold'],$reqsData['hook_php_version_min'] );
}
if( $reqsData['hook_php_version_max'] AND version_compare( PHP_VERSION, $reqsData['hook_php_version_max'], '>' ) == true )
{
$errors['php_max'] = sprintf( $this->lang->words['h_phpnew'], $reqsData['hook_php_version_max'] );
}
}
/* Additional applications */
if ( is_array($reqsData['required_applications']) && count($reqsData['required_applications']) )
{
/* Get the setup class */
require_once( IPS_ROOT_PATH . 'setup/sources/base/setup.php' );/*noLibHook*/
/* Loop through all apps */
foreach( $reqsData['required_applications'] as $appKey => $appData )
{
/* Versions file doesn't exist? */
if ( !is_file( IPSLib::getAppDir( $appKey ) . '/xml/versions.xml' ) )
{
$errors[ $appKey.'_app' ] = sprintf( $this->lang->words['hook_require_appnotfound'], $appData['app_name'] );
}
/* App not installed/enabled? */
elseif ( !IPSLib::appIsInstalled( $appKey ) )
{
$errors[ $appKey.'_app' ] = sprintf( $this->lang->words['hook_require_appdisabled'], ipsRegistry::$applications[ $appKey ]['app_title'] );
}
elseif ( $appData['min_version'] OR $appData['max_version'] )
{
/* Fetch and check versions */
if ( !isset($this->cachedVersions[ $appKey ]) )
{
$this->cachedVersions[ $appKey ] = IPSSetUp::fetchXmlAppVersions( $appKey );
}
$versions = $this->cachedVersions[ $appKey ];
if ( is_array($versions) && count($versions) )
{
if ( !isset($this->cachedUpgradeInfo[ $appKey ]) )
{
$_key = in_array( $appKey, array( 'forums', 'members' ) ) ? 'core' : $appKey;
$this->cachedUpgradeInfo[ $_key ] = $this->DB->buildAndFetch( array( 'select' => '*', 'from' => 'upgrade_history', 'where' => "upgrade_app='{$_key}'", 'order' => 'upgrade_version_id DESC', 'limit' => array( 1 ) ) );
/* Extra caching for the three core apps */
if( in_array( $appKey, array( 'core', 'forums', 'members' ) ) )
{
$this->cachedUpgradeInfo['core'] = $this->cachedUpgradeInfo[ $_key ];
$this->cachedUpgradeInfo['forums'] = $this->cachedUpgradeInfo[ $_key ];
$this->cachedUpgradeInfo['members'] = $this->cachedUpgradeInfo[ $_key ];
}
}
/* Do we meet tha requirements? */
if ( $appData['min_version'] AND $this->cachedUpgradeInfo[ $appKey ]['upgrade_version_id'] < $appData['min_version'] )
{
$errors[ $appKey.'_min' ] = sprintf( $this->lang->words['hook_require_tooold'], isset($versions[ $appData['min_version'] ]) ? $versions[ $appData['min_version'] ] : $appData['min_version'] );
}
if ( $appData['max_version'] AND $this->cachedUpgradeInfo[ $appKey ]['upgrade_version_id'] > $appData['max_version'] )
{
$errors[ $appKey.'_max' ] = sprintf( $this->lang->words['hook_require_toonew'], isset($versions[ $appData['max_version'] ]) ? $versions[ $appData['max_version'] ] : $appData['max_version'] );
}
}
}
}
}
return $errors;
}