Некорректно отображаются модули в панели управления

Тема в разделе "Ошибки при работе с Joomla", создана пользователем garmoni, 04.08.2014.

  1. Offline

    garmoni Недавно здесь

    Регистрация:
    25.03.2014
    Сообщения:
    8
    Симпатии:
    0
    Добрый день. После установки Joomla в менеджере модулей не могу корректно открыть ни один модуль, все отображаются с крякозяблями и текстом.
    Скриншот http://c2n.me/iE4QIX

    Внизу модуля ошибка
    Warning: JFormFieldNN_AssignmentSelection::require_once(__DIR__/toggler.php) [jformfieldnn-assignmentselection.require-once]: failed to open stream: No such file or directory in ..../plugins/system/nnframework/fields/assignmentselection.php on line 33

    Fatal error: JFormFieldNN_AssignmentSelection::require_once() [function.require]: Failed opening required '__DIR__/toggler.php' (include_path='./:/') in .../plugins/system/nnframework/fields/assignmentselection.php on line 33

    Код указанного файла
    Код (xml):
    1. <?php
    2. /**
    3. * Element: AssignmentSelection
    4. * Displays Assignment Selection radio options
    5. *
    6. * @package         NoNumber Framework
    7. * @version         12.9.8
    8. *
    9. * @author          Peter van Westen <peter@nonumber.nl>
    10.  * @link            http://www.nonumber.nl
    11.  * @copyright       Copyright © 2012 NoNumber All Rights Reserved
    12.  * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
    13.  */
    14.  
    15. // No direct access
    16. defined('_JEXEC') or die;
    17.  
    18. require_once JPATH_PLUGINS . '/system/nnframework/helpers/text.php';
    19.  
    20. class JFormFieldNN_AssignmentSelection extends JFormField
    21. {
    22.     public $type = 'AssignmentSelection';
    23.  
    24.     protected function getLabel()
    25.     {
    26.         return;
    27.     }
    28.  
    29.     protected function getInput()
    30.     {
    31.         $this->params = $this->element->attributes();
    32.  
    33.         require_once __DIR__ . '/toggler.php';
    34.         $toggler = new nnFieldToggler();
    35.  
    36.         $this->value = (int) $this->value;
    37.         $label = $this->def('label');
    38.         $param_name = $this->def('name');
    39.  
    40.         $html = array();
    41.  
    42.         if ($label) {
    43.             $label = NNText::html_entity_decoder(JText::_($label));
    44.  
    45.             $html[] = '<div style="clear: both;"></div>';
    46.             $html[] = $toggler->getInput(array('div' => 1, 'param' => 'show_assignments|' . $param_name, 'value' => '1|1,2'));
    47.  
    48.             $class = 'nn_panel nn_panel_title nn_panel_toggle';
    49.             if ($this->value === 1) {
    50.                 $class .= ' nn_panel_include';
    51.             } else if ($this->value === 2) {
    52.                 $class .= ' nn_panel_exclude';
    53.             }
    54.             $html[] = '<div class="' . $class . '"><div class="nn_block nn_title">';
    55.             $html[] = '<input type="checkbox" class="checkbox" ' . ($this->value ? 'checked="checked"' : ''). ' onchange="nnScripts.setRadio(\'' . $param_name . '\', this.checked);">';
    56.             $html[] = $label;
    57.             $html[] = '<div style="clear: both;"></div>';
    58.             $html[] = '</div></div>';
    59.  
    60.             $html[] = $toggler->getInput(array('div' => 1, 'param' => $param_name, 'value' => '1,2'));
    61.             $html[] = '<div class="nn_panel nn_panel"><div class="nn_block">';
    62.  
    63.             $html[] = '<ul class="adminformlist"><li>';
    64.  
    65.             $label = JText::_('NN_SELECTION');
    66.             $tip = htmlspecialchars(trim($label, ':'). '::' . JText::_('NN_SELECTION_DESC'), ENT_COMPAT, 'UTF-8');
    67.             $html[] = '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="hasTip" title="' . $tip . '">' . $label . '</label>';
    68.             $html[] = '<fieldset id="' . $this->id . '" class="radio">';
    69.  
    70.             $html[] = '<div style="display:none;">';
    71.             $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 0, 8)"';
    72.             $html[] = '<input type="radio" id="' . $this->id . '0" name="' . $this->name . '" value="0"' . ((!$this->value)? ' checked="checked"' : ''). $onclick . '/>';
    73.             $html[] = '</div>';
    74.  
    75.             $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 1, 7)"';
    76.             $html[] = '<input type="radio" id="' . $this->id . '1" name="' . $this->name . '" value="1"' . (($this->value === 1)? ' checked="checked"' : ''). $onclick . '/>';
    77.             $html[] = '<label for="' . $this->id . '1">' . JText::_('NN_INCLUDE'). '</label>';
    78.  
    79.             $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 2, 7)"';
    80.             $onclick .= ' onload="nnScripts.setToggleTitleClass(this, ' . $this->value . ', 7)"';
    81.             $html[] = '<input type="radio" id="' . $this->id . '2" name="' . $this->name . '" value="2"' . (($this->value === 2)? ' checked="checked"' : ''). $onclick . '/>';
    82.             $html[] = '<label for="' . $this->id . '2">' . JText::_('NN_EXCLUDE'). '</label>';
    83.  
    84.             $html[] = '</fieldset>';
    85.         } else {
    86.             $html[] = '<div style="clear: both;"></div>';
    87.             $html[] = '</li></ul>';
    88.  
    89.             $html[] = '<div style="clear: both;"></div>';
    90.             $html[] = '</div></div>';
    91.  
    92.             $html[] = $toggler->getInput(array('div' => 1));
    93.             $html[] = $toggler->getInput(array('div' => 1));
    94.         }
    95.  
    96.         return implode($html);
    97.     }
    98.  
    99.     private function def($val, $default = '')
    100.     {
    101.         return (isset($this->params[$val]) && (string) $this->params[$val] != '')? (string) $this->params[$val] : $default;
    102.     }
    103. }
     
  2.  
  3. OlegK
    Offline

    OlegK Russian Joomla! Team Команда форума ⇒ Профи ⇐

    Регистрация:
    17.01.2011
    Сообщения:
    7 813
    Симпатии:
    771
    Пол:
    Мужской
    Отключи плагин system/nnframework
    Джумла откуда скачана ? в стандартном дистре Джумла,нет nnframework
     
  4. Offline

    garmoni Недавно здесь

    Регистрация:
    25.03.2014
    Сообщения:
    8
    Симпатии:
    0
    Joomla была установлена с быстрым стартом для шаблона. Думаю нашла ошибку директория файла __DIR__ добавлена в PHP 5.3.0., а у меня 5.2. Когда была php 5.3, не работал модуль вывода флажков языков.
     

Поделиться этой страницей

Загрузка...