-
AuthorPosts
-
presto Friend
presto
- Join date:
- August 2012
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 2 times in 1 posts
July 30, 2014 at 12:43 am #200098Warning: Illegal string offset ‘active’ in /ja_ironis/html/pagination.php on line 117
This is the message I am getting on my home page all of the sudden. Here is the link: GetPresto.biz. What should I do to fix this error?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
July 30, 2014 at 2:04 am #543853Take a backup of this file : /ja_ironis/html/pagination.php
Remove the existing code and add this code to that
[PHP]<?php
// 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 : int
* $list[limitfield] : string
* $list[pagescounter] : string
* $list[pageslinks] : string
*
* pagination_list_render
* Input variable $list is an array with offsets:
* $list
* : string
* : boolean
* $list
* : string
* : boolean
* $list[previous]
* : string
* : boolean
* $list[next]
* : string
* : boolean
* $list
* : string
* : boolean
* $list[pages]
* [{PAGE}] : string
* [{PAGE}] : 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)
{
// Initialize variables
$lang = JFactory::getLanguage();
$html = “<div class=”list-footer”>n”;if ($lang->isRTL())
{
$html .= “n<div class=”counter”>”.$list[‘pagescounter’].”</div>”;
$html .= $list[‘pageslinks’];
$html .= “n<div class=”limit”>”.JText::_(‘Display Num’).$list[‘limitfield’].”</div>”;
}
else
{
$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
$lang = JFactory::getLanguage();
$html = “<div class=”pagination”><ul>”;
// Reverse output rendering for right-to-left display
if($lang->isRTL())
{
$html .= “<li class=”pagination-start”>”.$list[‘start’][‘data’].”</li>”;
$html .= “<li class=”pagination-prev”>”.$list[‘previous’][‘data’].”</li>”;$list[‘pages’] = array_reverse( $list[‘pages’] );
foreach( $list[‘pages’] as $page ) {
//if($page[‘data’][‘active’]) {
// $html .= ‘<strong>’;
//}$html .= “<li>”.$page[‘data’].”</li>”;
//if($page[‘data’][‘active’]) {
// $html .= ‘</strong>’;
//}
}$html .= “<li class=”pagination-next”>”.$list[‘next’][‘data’].”</li>”;
$html .= “<li class=”pagination-end”>”.$list[‘end’][‘data’].”</li>”;
// $html .= ‘«’;
}
else
{foreach( $list[‘pages’] as $page )
{
//if($page[‘data’][‘active’]) {
// $html .= ‘<strong>’;
//}$html .= “<li>”.$page[‘data’].”</li>”;
//if($page[‘data’][‘active’]) {
// $html .= ‘</strong>’;
//}
}}
$html .= “</ul></div>”;
return $html;
}?>
[/PHP]
-
AuthorPosts
This topic contains 3 replies, has 2 voices, and was last updated by presto 10 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum