ФорумПрограммированиеPHP для идиотов → Подружить php5 и Joomla_1.0.15-Stable

Подружить php5 и Joomla_1.0.15-Stable

  • Kvs

    Сообщения: 420 Репутация: N Группа: Кто попало

    Spritz 4 января 2011 г. 1:32

    Надо)) я все понимаю, но НАДО))

    Включил поддержку старых функций
    mbstring.func_overload = 7

    Половина ошибок исчезла, но есть еще масса:

    Deprecated: Assigning the return value of new by reference is deprecated in Z:\home\fc\www\includes\joomla.php on line 836

    строки от 829 до 840

    // check if site designated as a production site
    // for a demo site disallow expired page functionality
    // link must also be a Joomla link to stop malicious redirection
    if ( $link && strpos( $link, 'index2.php?option=com_' ) === 0 && $_VERSION->SITE == 1 && @$mosConfig_admin_expired === '1' ) {
    $now = time();

    $file = $this->getPath( 'com_xml', 'com_users' );
    $params =& new mosParameters( $my->params, $file, 'component' );

    // return to expired page functionality
    $params->set( 'expired', $link );
    $params->set( 'expired_time', $now );


    на что он жалуется?

    $params =& new mosParameters( $my->params, $file, 'component' );


    Для меня непонятная конструкция. Что там за возвращаемое значение устарело?
    Спустя 184 сек.
    дальше
    Warning: Cannot modify header information - headers already sent by (output started at Z:\home\fc\www\includes\joomla.php:836) in Z:\home\fc\www\index.php on line 252



    $_MOS_OPTION['buffer'] = ob_get_contents();

    ob_end_clean();

    initGzip();

    header( 'Expires: Mon, 26 Jul 1997 05:00:00 GMT' );
    header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
    header( 'Cache-Control: no-store, no-cache, must-revalidate' );
    header( 'Cache-Control: post-check=0, pre-check=0', false );
    header( 'Pragma: no-cache' );


    Вот тут из-за чего ошибка? initGzip(); не работет?
  • master

    Сообщения: 3244 Репутация: N Группа: Джедаи

    Spritz 4 января 2011 г. 1:34, спустя 1 минуту 44 секунды

    & убери
    не всё полезно, что в swap полезло
  • Kvs

    Сообщения: 420 Репутация: N Группа: Кто попало

    Spritz 4 января 2011 г. 1:48, спустя 14 минут 29 секунд

    Исчезла ошибка с заголовками. Спасибо.


    Warning: Parameter 2 to frontpage() expected to be a reference, value given in Z:\home\fc\www\includes\Cache\Lite\Function.php on line 100

    вот функция , строка сотая
    $result = call_user_func_array($target, $arguments);


    function call()
    {
    $arguments = func_get_args();
    $id = serialize($arguments); // Generate a cache id
    if (!$this->_fileNameProtection) {
    $id = md5($id);
    // if fileNameProtection is set to false, then the id has to be hashed
    // because it's a very bad file name in most cases
    }
    $data = $this->get($id, $this->_defaultGroup);
    if ($data !== false) {
    $array = unserialize($data);
    $output = $array['output'];
    $result = $array['result'];
    } else {
    ob_start();
    ob_implicit_flush(false);
    $target = array_shift($arguments);
    if (strstr($target, '::')) { // classname::staticMethod
    list($class, $method) = explode('::', $target);
    $result = call_user_func_array(array($class, $method), $arguments);
    } else if (strstr($target, '->')) { // object->method
    // use a stupid name ($objet_123456789 because) of problems when the object
    // name is the same as this var name
    list($object_123456789, $method) = explode('->', $target);
    global $$object_123456789;
    $result = call_user_func_array(array($$object_123456789, $method), $arguments);
    } else { // function
    $result = call_user_func_array($target, $arguments);
    }
    $output = ob_get_contents();
    ob_end_clean();
    $array['output'] = $output;
    $array['result'] = $result;
    $this->save(serialize($array), $id, $this->_defaultGroup);
    }
    echo($output);
    return $result;
    }


    в чем тут ошибка?
  • Sinkler

    Сообщения: 7958 Репутация: N Группа: в ухо

    Spritz 4 января 2011 г. 9:33, спустя 7 часов 45 минут 13 секунд

    страшная тема…

Пожалуйста, авторизуйтесь, чтобы написать комментарий!