-- url of the page with the problem -- : vanillashop23.ru
-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.10.0
-- PHP version -- : 8.0.3
-- Error-message(debug-mod must be tuned on) -- : Fatal error: Cannot declare class hikashopPaginationHelper, because the name is already in use in /home/r/rmmoto/vanillashop23.ru/public_html/templates/vanillashop/html/com_hikashop/administrator/helpers/pagination.override.php on line 371
Hi!
I've tried to override pagination.php file, but I couldn't do it.
For the first time, I had created pagination.override.php in my_template/html/com_hikashop/administrator/ , next, I added original code from pagination.php and some changes to override class hikashopBridgePaginationHelper:
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.3
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
//jimport('joomla.html.pagination');
//include_once $originalFile;
include_once(JPATH_ADMINISTRATOR . '/components/com_hikashop/helpers/pagination.php');
class hikashopBridgePaginationHelperOverride extends hikashopBridgePaginationHelper {
var $hikaSuffix = '';
var $form = '';
function getPagesLinks() {
$app = JFactory::getApplication();
$lang = JFactory::getLanguage();
$lang->load('lib_joomla');
I have an error message now:
Fatal error: Cannot declare class hikashopPaginationHelper, because the name is already in use in /home/r/rmmoto/vanillashop23.ru/public_html/templates/vanillashop/html/com_hikashop/administrator/helpers/pagination.override.php on line 371
What have I made wrong and how could I fix it?