Unexpected number function convert_li error Topic is solved

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4189
Joined: Fri May 15, 2009 2:01 pm
Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड

Unexpected number function convert_li error

Post by abernyte » Fri Sep 07, 2018 2:21 am

If you have a template based on the Wright framework and your site breaks when you try to enable PHP 7.2, with the error
'Unexpected number function convert_li'
Go to templates/your template/wright/html/joomla3.0/mod_menu/default.php and on line 18 change

Code: Select all

function convert_li($matches, $img) {
to

Code: Select all

function convert_li($matches, $img = '') {
YMMV but I have deployed this successfully on three separate sites so far.
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine

Locked

Return to “Templates for Joomla! 3.x”