Добрый день. После установки 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): <?php /** * Element: AssignmentSelection * Displays Assignment Selection radio options * * @package NoNumber Framework * @version 12.9.8 * * @author Peter van Westen <peter@nonumber.nl> * @link http://www.nonumber.nl * @copyright Copyright © 2012 NoNumber All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ // No direct access defined('_JEXEC') or die; require_once JPATH_PLUGINS . '/system/nnframework/helpers/text.php'; class JFormFieldNN_AssignmentSelection extends JFormField { public $type = 'AssignmentSelection'; protected function getLabel() { return; } protected function getInput() { $this->params = $this->element->attributes(); require_once __DIR__ . '/toggler.php'; $toggler = new nnFieldToggler(); $this->value = (int) $this->value; $label = $this->def('label'); $param_name = $this->def('name'); $html = array(); if ($label) { $label = NNText::html_entity_decoder(JText::_($label)); $html[] = '<div style="clear: both;"></div>'; $html[] = $toggler->getInput(array('div' => 1, 'param' => 'show_assignments|' . $param_name, 'value' => '1|1,2')); $class = 'nn_panel nn_panel_title nn_panel_toggle'; if ($this->value === 1) { $class .= ' nn_panel_include'; } else if ($this->value === 2) { $class .= ' nn_panel_exclude'; } $html[] = '<div class="' . $class . '"><div class="nn_block nn_title">'; $html[] = '<input type="checkbox" class="checkbox" ' . ($this->value ? 'checked="checked"' : ''). ' onchange="nnScripts.setRadio(\'' . $param_name . '\', this.checked);">'; $html[] = $label; $html[] = '<div style="clear: both;"></div>'; $html[] = '</div></div>'; $html[] = $toggler->getInput(array('div' => 1, 'param' => $param_name, 'value' => '1,2')); $html[] = '<div class="nn_panel nn_panel"><div class="nn_block">'; $html[] = '<ul class="adminformlist"><li>'; $label = JText::_('NN_SELECTION'); $tip = htmlspecialchars(trim($label, ':'). '::' . JText::_('NN_SELECTION_DESC'), ENT_COMPAT, 'UTF-8'); $html[] = '<label id="' . $this->id . '-lbl" for="' . $this->id . '" class="hasTip" title="' . $tip . '">' . $label . '</label>'; $html[] = '<fieldset id="' . $this->id . '" class="radio">'; $html[] = '<div style="display:none;">'; $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 0, 8)"'; $html[] = '<input type="radio" id="' . $this->id . '0" name="' . $this->name . '" value="0"' . ((!$this->value)? ' checked="checked"' : ''). $onclick . '/>'; $html[] = '</div>'; $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 1, 7)"'; $html[] = '<input type="radio" id="' . $this->id . '1" name="' . $this->name . '" value="1"' . (($this->value === 1)? ' checked="checked"' : ''). $onclick . '/>'; $html[] = '<label for="' . $this->id . '1">' . JText::_('NN_INCLUDE'). '</label>'; $onclick = ' onclick="nnScripts.setToggleTitleClass(this, 2, 7)"'; $onclick .= ' onload="nnScripts.setToggleTitleClass(this, ' . $this->value . ', 7)"'; $html[] = '<input type="radio" id="' . $this->id . '2" name="' . $this->name . '" value="2"' . (($this->value === 2)? ' checked="checked"' : ''). $onclick . '/>'; $html[] = '<label for="' . $this->id . '2">' . JText::_('NN_EXCLUDE'). '</label>'; $html[] = '</fieldset>'; } else { $html[] = '<div style="clear: both;"></div>'; $html[] = '</li></ul>'; $html[] = '<div style="clear: both;"></div>'; $html[] = '</div></div>'; $html[] = $toggler->getInput(array('div' => 1)); $html[] = $toggler->getInput(array('div' => 1)); } return implode($html); } private function def($val, $default = '') { return (isset($this->params[$val]) && (string) $this->params[$val] != '')? (string) $this->params[$val] : $default; } }
Отключи плагин system/nnframework Джумла откуда скачана ? в стандартном дистре Джумла,нет nnframework
Joomla была установлена с быстрым стартом для шаблона. Думаю нашла ошибку директория файла __DIR__ добавлена в PHP 5.3.0., а у меня 5.2. Когда была php 5.3, не работал модуль вывода флажков языков.