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

maks84zp

  • Осваиваюсь на форуме
  • 14
  • 0 / 0
Добрый время суток уважаемые форумчане!
Нужна ваша помощь, обновил Joomla 2.5 до Joomla 3.4, обновил все модули и компоненты, все прекрасно работает, но на одной из страниц, вылезает следующая ошибка:
Warning: Illegal string offset 'active' in /home/tvoistyl/tvoy-divan.ru/demo/templates/web_studio/html/pagination.php on line 89

Warning: Illegal string offset 'active' in /home/tvoistyl/tvoy-divan.ru/demo/templates/web_studio/html/pagination.php on line 93

Warning: Illegal string offset 'active' in /home/tvoistyl/tvoy-divan.ru/demo/templates/web_studio/html/pagination.php on line 89

Warning: Illegal string offset 'active' in /home/tvoistyl/tvoy-divan.ru/demo/templates/web_studio/html/pagination.php on line 93
Как можно исправить эту проблему?
*

robert

  • Живу я здесь
  • 4974
  • 457 / 20
Re: Нужна помощь ошибки в pagination.php
« Ответ #1 : 26.04.2015, 18:26:32 »
У вас пользовательский pagination.php, пока не выложите его содержимое сюда, врядли кто-нибудь может вам помочь.
Не будь паразитом, сделай что-нибудь самостоятельно!
*

maks84zp

  • Осваиваюсь на форуме
  • 14
  • 0 / 0
Re: Нужна помощь ошибки в pagination.php
« Ответ #2 : 26.04.2015, 18:40:40 »
У вас пользовательский pagination.php, пока не выложите его содержимое сюда, врядли кто-нибудь может вам помочь.
<?php
/**
 * @version      $Id: pagination.php 10381 2008-06-01 03:35:53Z pasamio $
 * @package      Joomla
 * @copyright   Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license      GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

/**
 * This is a file to add template specific chrome to pagination rendering.
 *
 * pagination_list_footer
 *    Input variable $list is an array with offsets:
 *       $list[limit]      : int
 *       $list[limitstart]   : int
 *       $list[total]      : int
 *       $list[limitfield]   : string
 *       $list[pagescounter]   : string
 *       $list[pageslinks]   : string
 *
 * pagination_list_render
 *    Input variable $list is an array with offsets:
 *       $list[all]
 *          [data]      : string
 *          [active]   : boolean
 *       $list[start]
 *          [data]      : string
 *          [active]   : boolean
 *       $list[previous]
 *          [data]      : string
 *          [active]   : boolean
 *       $list[next]
 *          [data]      : string
 *          [active]   : boolean
 *       $list[end]
 *          [data]      : string
 *          [active]   : boolean
 *       $list[pages]
 *          [{PAGE}][data]      : string
 *          [{PAGE}][active]   : boolean
 *
 * pagination_item_active
 *    Input variable $item is an object with fields:
 *       $item->base   : integer
 *       $item->link   : string
 *       $item->text   : string
 *
 * pagination_item_inactive
 *    Input variable $item is an object with fields:
 *       $item->base   : integer
 *       $item->link   : string
 *       $item->text   : string
 *
 * This gives template designers ultimate control over how pagination is rendered.
 *
 * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both
 */

function pagination_list_footer($list)
{
   $html = "<div class=\"list-footer\">\n";

   $html .= "\n<div class=\"limit\">".JText::_('Display Num').$list['limitfield']."</div>";
   $html .= $list['pageslinks'];
   $html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>";

   $html .= "\n<input type=\"hidden\" name=\"limitstart\" value=\"".$list['limitstart']."\" />";
   $html .= "\n</div>";

   return $html;
}

function pagination_list_render($list)
{
   // Initialize variables
   $html = "<div class=\"pagination\"><ul>";
   $html .= $list['start']['data'];
   $html .= $list['previous']['data'];
   foreach( $list['pages'] as $page )
   {
      if($page['data']['active']) {
         // $html .= '<strong>';
      }
      $html .= $page['data'];
      if($page['data']['active']) {
         //  $html .= '</strong>';
      }
   }
   $html .= $list['next']['data'];
   $html .= $list['end']['data'];
   // $html .= '«';
   $html .= "</ul></div>";
   return $html;
}
function pagination_item_active(&$item) {
   return "<li><a href=\"".$item->link."\" title=\"".$item->text."\">".$item->text."</a></li>";
}
function pagination_item_inactive(&$item) {
   return "<li class=\"disabled\"><a href=\"#\">".$item->text."</a></li>";
}
?>
Файл полностью
*

robert

  • Живу я здесь
  • 4974
  • 457 / 20
Re: Нужна помощь ошибки в pagination.php
« Ответ #3 : 26.04.2015, 21:38:33 »
Попробуйте заменять этот код
Код: php-brief
   foreach( $list['pages'] as $page )
   {
      if($page['data']['active']) {
         // $html .= '<strong>';
      }
      $html .= $page['data'];
      if($page['data']['active']) {
         //  $html .= '</strong>';
      }
   }
этим
Код: php-brief
   foreach( $list['pages'] as $page )
   {
      $html .= $page['data'];
   }
Не будь паразитом, сделай что-нибудь самостоятельно!
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Сохранить не удалось из-за ошибки: Содержимое превышает допустимые лимиты

Автор R31rus

Ответов: 21
Просмотров: 3231
Последний ответ 27.03.2024, 16:46:13
от Gorilla
Нужна помощь и руководство

Автор ArtColyer

Ответов: 3
Просмотров: 543
Последний ответ 27.01.2024, 17:14:58
от web1
Странная хрень происходит, нужна помощь!

Автор RicoID

Ответов: 17
Просмотров: 15075
Последний ответ 08.11.2023, 09:37:38
от Kivlov
jos-Error: Материал не найден вместо 404 ошибки

Автор bugmenot

Ответов: 4
Просмотров: 908
Последний ответ 10.01.2023, 11:32:11
от Mick_20
Ошибки при переходе на PHP 8.2

Автор Dram

Ответов: 6
Просмотров: 770
Последний ответ 30.12.2022, 13:44:32
от Dram