: WARNING: ILLEGAL STRING OFFSET 'ACTIVE' IN PAGINATION.PHP - Joomla 3x Fix : dsgmonkey 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>'; } : Re: WARNING: ILLEGAL STRING OFFSET 'ACTIVE' IN PAGINATION.PHP - Joomla 3x Fix : jonahh December 09, 2015, 02:29:21 PM Thanks for the update, I've updated our downloads to reflect this change.
|