Вот такая вот ошибка:
Invalid argument supplied for foreach()
/applications/core/sources/Setup/Upgrade.php::1192
Непонятно с чем связано.
А вот участок файла:
public static function repairFileUrls( $application )
{
$settings = json_decode( \IPS\Settings::i()->upload_settings, TRUE );
foreach ( $settings as $k => $v )
{
$exploded = explode( '_', $k );
$classname = "IPS\\{$exploded[2]}\\extensions\\core\\FileStorage\\{$exploded[3]}";
if ( $exploded[2] != $application )
{
continue;
}
if( class_exists( $classname ) )
{
$extension = new $classname;
\IPS\Task::queue( 'core', 'RepairFileUrls', array( 'storageExtension' => $k, 'count' => $extension->count() ), 1 );
}
}
}
/**
* Determine what our cutoff should be for long running queries
*
* @param array $changes The changes to make to the mr data
* @return string
*/
public static function adjustMultipleRedirect( $changes )
{
$mr = json_decode( urldecode( base64_decode( \IPS\Request::i()->mr ) ), TRUE );
foreach( $changes as $k => $v )
{
if( is_array( $v ) )
{
foreach( $v as $_k => $_v )
{
$mr[ $k ][ $_k ] = $_v;
}
}
else
{
$mr[ $k ] = $v;
}
}
\IPS\Request::i()->mr = base64_encode( urlencode( json_encode( $mr ) ) );
return \IPS\Request::i()->mr;
}
}