Search problem

A place for general not CMSimple related discussions
Post Reply
ustalo
Posts: 161
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Search problem

Post by ustalo » Wed May 25, 2022 11:17 am

www.ustalo.ru

on any search we get

Uncaught TypeError: Argument 1 passed to li() must be of the type array, null given, called in /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242) : eval()'d code on line 1 and defined in /Users/sima/Sites/cms.sima.spb.ru/cmsimple/tplfuncs.php:188
Stack trace:
#0 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242) : eval()'d code(1): li(NULL, 'sitemaplevel')
#1 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242): eval()
#2 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(202): XH_evaluateSinglePluginCall('li($hc,'sitemap...')
#3 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(299): evaluate_plugincall('\n\t
#5 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242) : eval()'d code(1): boilerplate('sitemap1')
#6 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242): eval()
#7 /Users/sima/Sites/cms.sima.spb.ru/cmsimple/f in /Users/sima/Sites/cms.sima.spb.ru/cmsimple/tplfuncs.php on line 188
Aleksei

lck
Posts: 2648
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Search problem

Post by lck » Wed May 25, 2022 11:38 am

ustalo wrote:
Wed May 25, 2022 11:17 am
on any search we get

Uncaught TypeError: Argument 1 passed to li() must be of the type array, null given, called in /Users/sima/Sites/cms.sima.spb.ru/cmsimple/functions.php(242) : eval()'d code on line 1 and defined in /Users/sima/Sites/cms.sima.spb.ru/cmsimple/tplfuncs.php:188
[...]
The cause is a call in a page from

Code: Select all

{{{li($hc, 'sitemaplevel');}}}
Solution of the problem, see here.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

Post Reply