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.
Post Reply
User avatar
abernyte
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3571
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.
It ain't what you don't know that gets you into trouble. It's what you know for sure that just ain't so. Twain

Post Reply

Return to “Templates for Joomla! 3.x”