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


hello, sorry for the annoyance but i have these errors in logs in the webs;area=pretty;sa=test [nonactive]
/www/wwwroot/ (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;area=pretty;sa=test [nonactive]
/www/wwwroot/ (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:

anyone know how to resolve this?

Sir Osis of Liver

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