Вход

Отправить сообщение

Вы можете оставить сообщение, используя расположенную ниже форму контактов.
КАПЧА
Этот вопрос задается для того, чтобы выяснить, являетесь ли Вы человеком или представляете из себя автоматическую спам-рассылку.
CAPTCHA на основе изображений
Введите символы, которые показаны на картинке.

Error in module i18n

Скрыть все описания
Описание ошибки: 

Error displayed when you use the module i18n

warning: Parameter 1 to theme_i18n_node_select_translation() expected to be a reference, value given in ../includes/theme.inc on line 656

The cause of the problem in using PHP version 5.3

The solution is simple, but still requires some adjustment package module i18n. To this end, separates the folder is located in the module imageapi and open the file in the editor i18n.pages.inc. We are looking for a line 265 where it should place the following code:

<?php

function theme_i18n_node_select_translation(&$elements) {
 
$output = '';
  if (isset(
$elements['nid'])) {
   
$rows = array();
    foreach (
element_children($elements['nid']) as $lang) {
     
$rows[] = array(
       
drupal_render($elements['language'][$lang]),
       
drupal_render($elements['node'][$lang]),
      );
    }
   
$output .= theme('table', array(), $rows);
   
$output .= drupal_render($elements);
  }
  return
$output;
}
?>

Now we replace this function with this code:

<?php
function theme_i18n_node_select_translation($elements) {
 
$output = '';
  if (isset(
$elements['nid'])) {
   
$rows = array();
    foreach (
element_children($elements['nid']) as $lang) {
     
$rows[] = array(
       
drupal_render($elements['language'][$lang]),
       
drupal_render($elements['node'][$lang]),
      );
    }
   
$output .= theme('table', array(), $rows);
   
$output .= drupal_render($elements);
  }
  return
$output;
}
?>