Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 33 Ответов
  • 6916 Просмотров
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Ошибка модуля!
« : 08.09.2012, 18:08:44 »
Здравствуйте.
Такая ошибка на сайте: /modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php on line 167. Шаблон Rt Crystalline, Joomla 2,5. http://test.delovoytorgok.ru/
Помогите пожалуйста, что делать не знаю. В чем может быть причина? :o
Спасибо
*

saxap

  • Осваиваюсь на форуме
  • 31
  • 1 / 0
Re: Ошибка модуля!
« Ответ #1 : 08.09.2012, 18:13:34 »
перед этим что-то меняли в этом файле?
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #2 : 08.09.2012, 18:27:31 »
Я конечно тоже подумала, что что то поменяла и в этом суть. В настройках шаблона переставила тип меню, а потом все настройки вернула обратно. Но, ошибка все равно есть. Больше ничего не трогала. Только настройки шаблона в админке.
*

saxap

  • Осваиваюсь на форуме
  • 31
  • 1 / 0
Re: Ошибка модуля!
« Ответ #3 : 08.09.2012, 19:11:35 »
значит не все вернули, ничего просто так не бывает.)
возможно еще у вас варезный шаблон, покажите хоть что в этом файле в 167 строке.
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #4 : 08.09.2012, 19:36:45 »
Может и не все вернула, но что еще не помню(((
Вот этот файл, ошибка то в модуле :o

<?php
/**
 * @version   2.2 October 20, 2010
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

class RokNavMenu1XRenderer implements RokMenuRenderer {
    protected $provider;
    protected $args;

    public function __construct(){
       
    }
   
    /**
     * @param  array $args
     * @return void
     */
    public function setArgs(array &$args) {
        $this->args =& $args;
    }

    /**
     * @return array
     */
    public function getDefaults() {
        if (!isset($this->theme)) {
            return array();
        }
        return $this->theme->getDefaults();
    }

    /**
     * @return void
     */
    public function initialize(RokMenuProvider $provider) {
        $menu_data = $provider->getMenuTree();
        if (!empty($menu_data) && $menu_data !== false) {
            $menu = $this->convertNodes($menu_data);

            $menu_params = new JParameter("");
            $menu_params->loadArray($this->args);

            $menu = $this->getFormattedMenu($menu, $menu_params);
            $this->layout_path = modRokNavMenuHelper::getLayoutPath($menu_params);
            $this->menu = &$menu;
        }
    }

    /**
     * @return string
     */
    public function renderHeader() {
        return '';
    }

    /**
     * @return string
     */
    public function renderMenu() {
        $menu =& $this->menu;
        require($this->layout_path);
    }

    /**
     * @return string
     */
    public function renderFooter() {
        return '';
    }

    protected function convertNodes(RokMenuNodeTree $menu) {

        $top = new RokNavMenuTree();
        $top->_params = $this->convertArgsToParams();

        $subnodes = array();
        // convert the nodes to an array of old school node types
        $itr = new RecursiveIteratorIterator($menu, RecursiveIteratorIterator::SELF_FIRST);
        foreach ($itr as $tmp) {
            $node = new RokNavMenuNode();
            $node->id = $tmp->getId();
            $node->parent = $tmp->getParent();
            $node->title = $tmp->getTitle();
            $node->access = $tmp->getAccess();
            $node->link = $tmp->getLink();
            $node->level = $tmp->getLevel();
            $node->image = $tmp->getImage();
            $node->alias = $tmp->isAlias();
            $node->nav = $tmp->getTarget();
            switch ($tmp->getTarget()) {
                case 'newnotool':
                    $node->displayType = 2;
                    break;
                case 'new':
                    $node->displayType = 1;
                    break;
                default:
                    $node->displayType = 0;
                    break;
            }
            $node->setParameters($tmp->getParams());
            $node->type = $tmp->getType();
            //$node->order = $item->ordering;

            foreach(explode(" ",$tmp->getListItemClasses()) as $class){
                $node->addListItemClass($class);
            }
            foreach(explode(" ",$tmp->getSpanClasses()) as $class){
                $node->addSpanClass($class);
            }
            foreach(explode(" ",$tmp->getLinkClasses()) as $class){
                $node->addLinkClass($class);
            }
            foreach($tmp->getLinkAttribsArray() as $name => $attrib){
                $node->addLinkAttrib($name, $attrib);
            }
            foreach($tmp->getLinkAdditionsArray() as $name => $value){
                $node->addLinkAddition($name, $value);
            }

            if ($node->parent == 0){
                $node->_parentRef = $top;
                $top->_children[$node->id] = $node;

            }
            else {
                foreach ($subnodes as $subnode){
                    if ($node->parent == $subnode->id){
                        $subnode->addChild($node);
                        break;
                    }
                }
            }
            $subnodes[] = $node;
        }
        return $top;
    }

    protected function convertArgsToParams() {
        $params = new JParameter("");
        $params->loadArray($this->args);
        return $params;
    }


    public function getThemePath(&$params) {
        $default_module_theme_dir = JPath::clean('/modules/mod_roknavmenu/themes');
        $basic_theme = $default_module_theme_dir . '/basic';
        $theme = $params->get('theme', $basic_theme);
        // Set the theme to the old school default theme if it exists
        if ($params->get('default_formatter', false)) {
            $theme = $default_module_theme_dir . '/' . $params->get('default_formatter', 'default');
        }
        return $theme;
    }

    public function getFormatterPath(&$params) {
        global $mainframe;
        $theme = $this->getThemePath($params);

        // Get the formatters path
        $formatter_path = JPath::clean(JPATH_ROOT . $params->get('theme', $theme). "/formatter.php");

        $template_default_formatter_path = JPath::clean(JPATH_ROOT . '/templates/' . $mainframe->getTemplate(). '/html/mod_roknavmenu/formatter.php');
        if (JFile::exists($template_default_formatter_path)) {
            $formatter_path = $template_default_formatter_path;
        }

        //see if the backwards compat custom_formatter is set.
        $template_formatter = $params->get('custom_formatter', "default");
        $template_named_formatter_path = JPath::clean(JPATH_ROOT . '/templates/' . $mainframe->getTemplate(). '/html/mod_roknavmenu/formatters/' . $template_formatter . '.php');
        if (JFile::exists($template_named_formatter_path)) {
            $formatter_path = $template_named_formatter_path;
        }
        return $formatter_path;
    }

    public function getLayoutPath(&$params) {
        global $mainframe;
        $theme = $this->getThemePath($params);

        // Get the layout path
        $layout_path = JPath::clean(JPATH_ROOT . $theme . "/layout.php");

        $joomla_layout_path = JModuleHelper::getLayoutPath('mod_roknavmenu');
        if (JFile::exists($joomla_layout_path)) {
            $layout_path = $joomla_layout_path;
        }

        //see if the backwards compat custom_formatter is set.
        if ($params->get('custom_layout', false)) {
            $template_layout = $params->get('custom_layout', "default");
            $template_named_layput_path = JPath::clean(JPATH_ROOT . '/templates/' . $mainframe->getTemplate(). '/html/mod_roknavmenu/layouts/' . $template_layout . '.php');
            if (JFile::exists($template_named_layput_path)) {
                $layout_path = $template_named_layput_path;
            }
        }
        return $layout_path;
    }

    protected function getFormattedMenu($menu, &$params) {
        global $mainframe;
        // get the base menu data structure

        // Run the basic formatter
        $this->formatMenu($menu);

        $default_module_theme_dir = JPath::clean('/modules/mod_roknavmenu/themes');

        $theme = $this->getThemePath($params);

        $theme_name = basename($params->get('theme', $theme));

        $formatter_path = $this->getFormatterPath($params);

        //load the formatter
        require_once ($formatter_path);

        $theme_type = 'Template';
        // Find if this is a Default or Template theme
        if (dirname(JPath::clean($params->get('theme'))) == $default_module_theme_dir) {
            $theme_type = 'Default';
        }

        // run the formatter class
        $theme_formatter_class = 'RokNavMenuFormatter' . str_replace('-', '', $theme_type . $theme_name);
        if (class_exists($theme_formatter_class)) {
            $formatter = new $theme_formatter_class();
            $formatter->format_tree($menu);
        }
        else if (class_exists('RokNavMenuFormatter')) {
            $formatter = new RokNavMenuFormatter();
            $formatter->format_tree($menu);
        }

        return $menu;
    }

    /**
     * Perform the basic common formatting to all menu nodes
     */
    protected function formatMenu(&$menu) {


        //set the active tree branch
        $joomlamenu = &JSite::getMenu();
        $active = $joomlamenu->getActive();
        if (isset($active) && isset($active->tree) && count($active->tree)) {
            reset($active->tree);
            while (list($key, $value) = each($active->tree)) {
                $active_node =& $active->tree[$key];
                $active_child =& $menu->findChild($active_node);
                if ($active_child !== false) {
                    $active_child->addListItemClass('active');
                }
            }
        }

        // set the current node
        if (isset($active)) {
            $current_child =& $menu->findChild($active->id);
            if ($current_child !== false && !$current_child->menualias) {
                $current_child->css_id = 'current';
            }
        }


        // Limit the levels of the tree is called for By limitLevels
        if ($menu->getParameter('limit_levels')) {
            $start = $menu->getParameter('startLevel');
            $end = $menu->getParameter('endLevel');

            //Limit to the active path if the start is more the level 0
            if ($start > 0) {
                $found = false;
                // get active path and find the start level that matches
                if (isset($active) && isset($active->tree) && count($active->tree)) {
                    reset($active->tree);
                    while (list($key, $value) = each($active->tree)) {
                        $active_child = $menu->findChild($active->tree[$key]);
                        if ($active_child != null && $active_child !== false) {
                            if ($active_child->level == $start - 1) {
                                $menu->resetTop($active_child->id);
                                $found = true;
                                break;
                            }
                        }
                    }
                }
                if (!$found) {
                    $menu->_children = array();
                }
            }
            //remove lower then the defined end level
            $menu->removeLevel($end);
        }

        // Remove the child nodes that were not needed to display unless showAllChildren is set
        $showAllChildren = $menu->getParameter('showAllChildren');
        if (!$showAllChildren) {
            if ($menu->hasChildren()) {
                reset($menu->_children);
                while (list($key, $value) = each($menu->_children)) {
                    $toplevel =& $menu->_children[$key];
                    if (isset($active) && isset($active->tree) && in_array($toplevel->id, $active->tree)!== false) {
                        $last_active =& $menu->findChild($active->tree[count($active->tree) - 1]);
                        if ($last_active !==  false) {
                            $toplevel->removeIfNotInTree($active->tree, $last_active->id);
                            //$toplevel->removeLevel($last_active->level+1);
                        }
                    }
                    else {
                        $toplevel->removeLevel($toplevel->level);
                    }
                }
            }
        }
    }

    protected function _getJSVersion() {
        if (version_compare(JVERSION, '1.5', '>=') && version_compare(JVERSION, '1.6', '<')) {
            if (JPluginHelper::isEnabled('system', 'mtupgrade')) {
                return "-mt1.2";
            } else {
                return "";
            }
        } else {
            return "";
        }
    }

}
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #5 : 09.09.2012, 23:39:21 »
Люди помогите очень прошу! Проблема не решена. Восстановила сайт по бэкапу, все заново сделала, много работы, все иделаьно, и тут бац. Зашла снова в настройки шаблонами всего лишь поставила в "off" копирайт и системные сообщения, и все снова!
Fatal error: require_once() [function.require]: Failed opening required '/home/delovoyt/public_html/testпортал-fusion/formatter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/delovoyt/public_html/test/modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php on line 231

Что ж такое уже и обратно вернула все равно. Что делать то, как быть?
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
Re: Ошибка модуля!
« Ответ #6 : 10.09.2012, 00:06:06 »
1. Зачем были танцы с бекапом. Вам надо было отключить модуль меню в админке. Не выходит работать с модулем меню берете ставите любой другой.
2. Что означает ошибка Failed opening required 'includes/joomla.php'?
Проверьте правильность пути к файлу formatter.php
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #7 : 10.09.2012, 00:14:40 »
1. Затем, что никто не подсказал
2. Где это проверить? ^-^
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #8 : 10.09.2012, 00:17:10 »
Отключила в админке модуль RokNavMenu и вообщ все модули меню, но не работает! >:(
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
Re: Ошибка модуля!
« Ответ #9 : 10.09.2012, 00:22:37 »
/templates/ваша тема шаблона/html/mod_roknavmenu/formatter.php
По этому пути есть файл? Приведите путь с учетом имени вашего шаблона
Вы, что имя шаблона переименовали русскими буквами?
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #10 : 10.09.2012, 00:26:19 »
Оооо, а такого файла по этому пути нет :o
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #11 : 10.09.2012, 00:28:55 »
Нет, не переименовывала.
/templates/rt_crystalline/html/mod_roknavmenu/
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #12 : 10.09.2012, 00:29:37 »
А внутри папка themes и index.html
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #13 : 10.09.2012, 00:30:11 »
includes/joomla.php'
И кстати такой строки тоже нет
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #14 : 10.09.2012, 00:31:37 »
ой, нашла formatter.php внутри папки themes/gantry-splitmenu
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #15 : 10.09.2012, 00:41:15 »
estпортал-fusion/formatter.php - Да и правда непонятно, почему такие крокозябры и 231-я строка: require_once ($formatter_path); правда на formatter что то жалуется
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #16 : 10.09.2012, 00:42:17 »
Может это как то связано с тем, что это поддомен? Но до этого то все отлично работало((
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #17 : 10.09.2012, 00:45:12 »
А по какому же пути он должен быть - этот файл?
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
Re: Ошибка модуля!
« Ответ #18 : 10.09.2012, 00:45:45 »
так скопируйте его, чтобы был по указанному пути /templates/ваша тема шаблона/html/mod_roknavmenu/formatter.php
включите модуль
сайт - общие настройки - Сервер -Сообщения об ошибках - Установите для разработчиков все ошибки PHP
какие сейчас будут критические ошибки
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #19 : 10.09.2012, 00:50:19 »
ОГо, много ошибок, вот6

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/rokgzipper/rokgzipper.php on line 34

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/k2/k2.php on line 278

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/rokextender/rokextender.php on line 32

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/k2/k2.php on line 24

Strict Standards: Non-static method RokCandyHelper::getMacros() should not be called statically, assuming $this from incompatible context in /home/delovoyt/public_html/test/plugins/system/rokcandy/rokcandy.php on line 28

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 13

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 14

Strict Standards: Non-static method RokCandyHelper::getUserMacros() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Non-static method RokCandyHelper::getUserMacros() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Non-static method RokCandyHelper::getUserMacros() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 24

Strict Standards: Non-static method RokCandyHelper::getTemplateOverrides() should not be called statically, assuming $this from incompatible context in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 18

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 41

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 42

Strict Standards: Non-static method RokCandyHelper::readIniFile() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Non-static method RokCandyHelper::readIniFile() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Non-static method RokCandyHelper::readIniFile() cannot be called statically in /home/delovoyt/public_html/test/libraries/joomla/cache/controller/callback.php on line 159

Strict Standards: Non-static method RokCandyHelper::getCurrentTemplate() should not be called statically in /home/delovoyt/public_html/test/administrator/components/com_rokcandy/helpers/rokcandy.php on line 53

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/k2/k2.php on line 107

Strict Standards: Only variables should be assigned by reference in /home/delovoyt/public_html/test/plugins/system/rokcandy/rokcandy.php on line 67
И кодировка в админке стала кракозябры какие то
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #20 : 10.09.2012, 00:51:59 »
Теперь сюда жалуется home/delovoyt/public_html/test/modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php на линии 64
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #21 : 10.09.2012, 00:53:13 »
 require($this->layout_path);
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #22 : 10.09.2012, 00:54:02 »
Где то может кодировка не совпадает?
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #23 : 10.09.2012, 00:55:19 »
Выбора Цвета

Warning: require(/home/delovoyt/public_html/testпортал-fusion/layout.php) [function.require]: failed to open stream: No such file or directory in /home/delovoyt/public_html/test/modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php on line 64

Fatal error: require() [function.require]: Failed opening required '/home/delovoyt/public_html/testпортал-fusion/layout.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/delovoyt/public_html/test/modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php on line 64
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #24 : 10.09.2012, 10:41:46 »
Я похоже сама с собой разговариваю :'(
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #25 : 10.09.2012, 23:31:09 »
 :'( >:( >:( >:( >:(
*

Fedor Vlasenko

  • Живу я здесь
  • 3845
  • 733 / 7
  • https://fedor-vlasenko.web.app
Re: Ошибка модуля!
« Ответ #26 : 11.09.2012, 00:00:01 »
1. Попробуйте поменять шаблон сайта на какой нибудь другой. Сайт работает?
2. Удалите этот модуль. Удалите из папки HTML его также. Сайт работает? Переустановите модуль
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #27 : 11.09.2012, 11:05:33 »
1. Да, пробовала, с другими работает.
2. Да удалила модуль и из папки HTML, пытаюсь его установить заново, вот что: Критическая ошибка: Call to undefined метод JXMLElement::getElementByPath (в) /home/delovoyt/public_html/test/administrator/components/com_roknavmenubundle/installer/install.php на линии 12
И постоянно ошибка открытия на сайте.
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #28 : 11.09.2012, 11:46:47 »
Кое как установила, опубликовала, но в папке HTML он не появился, а на сайте теперь вот так Fatal error: Call to a member function getTemplate() on a non-object in /home/delovoyt/public_html/test/modules/mod_roknavmenu/lib/renderers/RokNavMenu1XRenderer.php on line 167
*

melissa2011

  • Захожу иногда
  • 210
  • 2 / 0
Re: Ошибка модуля!
« Ответ #29 : 11.09.2012, 11:56:55 »
удалила модуль снова, без него на сайте все съехало (((
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Ошибка загрузки скрипта

Автор shane

Ответов: 0
Просмотров: 1135
Последний ответ 17.09.2019, 01:35:43
от shane
Управление модулем из другого модуля

Автор capvic

Ответов: 7
Просмотров: 1033
Последний ответ 27.05.2019, 11:46:21
от capvic
Ошибка 500 вместо 404 на несуществующих страницах с расширением только php

Автор old_lotar

Ответов: 12
Просмотров: 1966
Последний ответ 12.02.2019, 12:58:13
от draff
Ошибка в слове на главной странице. Как исправить?

Автор nqui

Ответов: 3
Просмотров: 2845
Последний ответ 29.03.2018, 05:15:41
от TkGhoul
Ошибка &amp;amp;amp;amp;quot;error&amp;amp;amp;amp;quot;. нужен специалист! гарантирую оплату!

Автор mimoza

Ответов: 6
Просмотров: 1450
Последний ответ 25.02.2018, 14:47:40
от mimoza