ITDim
    Все будет итышно, когда вы с нами :)

Joomla 1.0 и PHP 5.3 Ошибки

Это сделайте в первую очередь:

Добавьте в configuration.php такой код:
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
date_default_timezone_set('Europe/Kiev');
И в файле /includes/Cache/Lite/Function.php замените строку №92

 $result = call_user_func_array(array($class, $method), $arguments);
на
 $result = call_user_func_array(array($class, $method), &$arguments);
и строку 100:
$result = call_user_func_array($target, $arguments);
на
$result = call_user_func_array($target, &$arguments);

Еще один патч файла includes/joomla.php :
$params =& new mosParameters( $my->params, $file, 'component' );
на
 $params = new mosParameters( $my->params, $file, 'component' );


На ошибку:  Function eregi() is deprecated in /includes/sef.php on line 397
Примерно 393 строка: include/sef.php 
if ($mosConfig_sef && !eregi("^(([^:/?#]+):)",$string) && !strcasecmp(substr($string,0,9),'index.php')) {
Заменяем на:
if ($mosConfig_sef && !preg_match("/^(([^\/:?#]+):)/i",$string) && !strcasecmp(substr($string,0,9),'index.php')) {

На ошибку:
Fatal error: Cannot redeclare quoted_printable_encode() in includes/vcard.class.php on line 74
In vcard.class.php around line 36 is the function quoted_printable_encode. This ends up declaring twice, causing the error, so you can prevent the error and fix the error by checking if the function already exists, and if it does, PHP ignores the function declaration. Adding the green lines of code before and after the existing function clears the problem.
if(!function_exists('quoted_printable_encode')) {
 function quoted_printable_encode($input, $line_max=76) {
 /* ... */
 }
}

Только не забудьте закрыть скобки!


0 коммент.:

Отправить комментарий