foreach() argument must be of type array|object, null and acces array offset

Started by bebesito_fiufiu, October 03, 2022, 06:20:54 PM

Previous topic - Next topic

bebesito_fiufiu

hello, sorry for the annoyance but i have these errors in logs in the webs
hxxp:masnubes.com/index.php?action=admin;area=pretty;sa=test [nonactive]
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (Línea 269)

Quote2: foreach() argument must be of type array|object, null given

line 269:
    

foreach ($tab_context['tabs'] as $sa => $tab)
and this another error thats repeat in three lines of code
Quote2: Trying to access array offset on value of type null

hxxp:masnubes.com/index.php?action=admin;area=pretty;sa=test [nonactive]
/www/wwwroot/masnubes.com/Themes/default/GenericMenu.template.php (this error repeat in line 255, 269 and 261)


255 <span class="text_menu">', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '</span>
261 ', sprintf($txt['mobile_generic_menu'], $tab_context['title']), '

269 [code]foreach ($tab_context['tabs'] as $sa => $tab)

-
im using the version SMF 2.1.2 and the trouble appears with plugin prettyurls, the configuration is
Enable url rewriting, rewrite board, topics and actions

and have others mods installed:
ad_mod_v3.5_SMF_2.0_and_SMF2.1d
optimus_2.10.6_smf21
TinyPortal-2.2.2

anyone know how to resolve this?

Sir Osis of Liver

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

Advertisement: