Warning: str_repeat(): Second argument has to be greater than or equal to 0 in libraries/cms/form/field/menuitem.php on line 234
-Thanks
As far as I understood this is not an issue, just a simple warning.
Did you check if the message disappears when you change the error report to "None" or "Simple"?
Global configuration > server tab > set error reporting to 'None' or 'Simple'
If it persists, please check the default php settings in your server. Probably they are higher than they should.
For more information, maybe this can help: https://forum.joomla.org/viewtopic.php?t=932244
there shouldnt be any warnings
@ittoufiq
can you replace that line libraries/cms/form/field/menuitem.php on line 234
with this one $levelPrefix = str_repeat('- ', max(0, $link->level - 1));
and report back result
IMO This is a sign of corruption of the menu.
Only one menu item "ROOT" can have $link->level less than 1.
Hi, Thanks a lot guys. Should i wait for next Joomla update? Thanks
Example code from @alikon should hide the warning but it probably does not fix a reason of your issue.
Do you see an unexpected menu item name like "ROOT" in select box below PHP warning?
If you have access to phpmyadmin you can show us rows from #__menu with column level <= 0.
I am going to close this due to a lack of reply - it can always be reopened if updated
Most helpful comment
Example code from @alikon should hide the warning but it probably does not fix a reason of your issue.
Do you see an unexpected menu item name like "ROOT" in select box below PHP warning?
If you have access to phpmyadmin you can show us rows from
#__menuwith column level <= 0.