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

Kyrsor

  • Захожу иногда
  • 317
  • 4 / 2
Подскажите как исправить?
Fatal error: Class GalleryViewIndex cannot extend from interface JView in D:\OpenServer\domains\localhost\administrator\components\com_gallery\views\index\view.html.php on line 8

Код
<?php
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');


class GalleryViewIndex extends JView
{

    protected $items;
    protected $pagination;
    protected $state;

    /**
     * @param null $tpl
     * @return bool
     */
    function display($tpl = null)
    {
        $this->items = $this->get('Items');
        $this->pagination = $this->get('Pagination');
        $this->state = $this->get('State');

        // Check for errors.
        if (count($errors = $this->get('Errors'))) {
            JError::raiseError(500, implode("\n", $errors));
            return false;
        }

        $this->_addToolbar();
        parent::display($tpl);
    }

    /**
     *
     */
    protected function _addToolbar()
    {
        $input = JFactory::getApplication()->input;
        JToolBarHelper::title(JText::_('COM_GALLERY_INDEX_TITLE'));
        //JToolBarHelper::addNew('work.add');
        //JToolBarHelper::editList('work.edit');
        //JToolBarHelper::divider();
        //JToolBarHelper::publish('work.publish', 'JTOOLBAR_PUBLISH', true);
        //JToolBarHelper::unpublish('work.unpublish', 'JTOOLBAR_UNPUBLISH', true);
        //JToolBarHelper::divider();
        //JToolBarHelper::custom('promo.delete', 'remove.png', 'remove_f2.png', 'JTOOLBAR_REMOVE', true);
        //JToolBarHelper::divider();
        //JToolBarHelper::preferences('com_');
        JSubMenuHelper::addEntry('Все материалы', 'index.php?option=com_gallery',
            ('index' === $input->get('view')));
        JSubMenuHelper::addEntry('Изображения', 'index.php?option=com_gallery&view=images',
            ('images' === $input->get('view')));
        JSubMenuHelper::addEntry('Видео', 'index.php?option=com_gallery&view=video',
            ('video' === $input->get('view')));
        JSubMenuHelper::addEntry('Категории', 'index.php?option=com_gallery&view=parents',
            ('parents' === $input->get('view')));
    }

}

*

Aleks.Denezh

  • Живу я здесь
  • 3406
  • 428 / 4
JView смените на JViewLegacy
*

dmitry_stas

  • Легенда
  • 13151
  • 1234 / 8
Подскажите как исправить?
что ж вы Joomla обновили, а все остальное нет? сторонние компоненты обновите, плагины, и т.д.
Тут дарят бакс просто за регистрацию! Успей получить!
Все советы на форуме раздаю бесплатно, то есть даром. Индивидуально бесплатно консультирую только по вопросам стоимости индивидуальных консультаций
*

Kyrsor

  • Захожу иногда
  • 317
  • 4 / 2
что ж вы Joomla обновили, а все остальное нет? сторонние компоненты обновите, плагины, и т.д.
Данного компонента нет для J3
Спасибо Aleks.Denezh, помогло!
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Что хранится в таблице overrider Joomla 3?

Автор web1

Ответов: 1
Просмотров: 72
Последний ответ 27.03.2024, 19:14:58
от web1
Ошибка 0 Call to undefined function GuzzleHttp\choose_handler()

Автор Alllex

Ответов: 0
Просмотров: 76
Последний ответ 15.03.2024, 21:03:09
от Alllex
reCAPTCHA V2 Google - Для Joomla 3

Автор Alex GOOD

Ответов: 35
Просмотров: 8258
Последний ответ 10.01.2024, 21:41:38
от Vastriet
Ошибка version_compare(): Argument #3 ($operator)

Автор Шмайсер

Ответов: 1
Просмотров: 394
Последний ответ 07.11.2023, 20:44:21
от fsv
Joomla 3.10.12 и MySQL 8

Автор designer71

Ответов: 0
Просмотров: 371
Последний ответ 19.10.2023, 11:25:18
от designer71