Forum Support

Shape 5
May 08, 2021, 08:27:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: WARNING: ILLEGAL STRING OFFSET 'ACTIVE' IN PAGINATION.PHP - Joomla 3x Fix  (Read 296 times)
dsgmonkey
Jr. Member
**
Offline Offline

Posts: 9



« on: December 08, 2015, 06:44:06 PM »

I got this error recently while developing on the No1 Shopping template and thought I'd share the fix (that worked for me). Perhaps worth looking into a template update? Originally found at http://network.convergenceservices.in/forum/46-virtue-mart/4149-warning-illegal-string-offset-active-in-paginationphp.html

Joomla gives this warning in pagination.php. on line 90 and 96.

The reason is, in Joomla 3.x the pagination array has changed. You can find below code on line 90 and 96 in templates/your_template/html/pagination.php.

//line 90
if($page['data']['active'])
{
   $html .= '<strong>';
}
//line 96
if($page['data']['active'])
{
   $html .= '</strong>';
}


And replace it by

//line 90
if($page['active']) //Now in Joomla 3.x 'active' is not inside $page['data']. It is a different key of main page array now.
{
   $html .= '<strong>';
}
//line 96
if($page['active'])
{
   $html .= '</strong>';
}


Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: December 09, 2015, 02:29:21 PM »

Thanks for the update, I've updated our downloads to reflect this change.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.