?
avatar ittoufiq
ittoufiq
5 Jul 2017

Problem in module manager search tools

Warning: str_repeat(): Second argument has to be greater than or equal to 0 in libraries/cms/form/field/menuitem.php on line 234

http://prntscr.com/frsfor

-Thanks

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
1.00

avatar ittoufiq ittoufiq - open - 5 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 5 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 5 Jul 2017
avatar ittoufiq ittoufiq - change - 5 Jul 2017
The description was changed
avatar ittoufiq ittoufiq - edited - 5 Jul 2017
avatar ittoufiq ittoufiq - change - 5 Jul 2017
The description was changed
avatar ittoufiq ittoufiq - edited - 5 Jul 2017
avatar ittoufiq ittoufiq - change - 5 Jul 2017
The description was changed
avatar ittoufiq ittoufiq - edited - 5 Jul 2017
avatar anabarcellos
anabarcellos - comment - 5 Jul 2017

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


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16975.

avatar brianteeman
brianteeman - comment - 5 Jul 2017

there shouldnt be any warnings

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jul 2017
Category com_joomlaupdate
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jul 2017
Status New Discussion
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Jul 2017
avatar alikon
alikon - comment - 5 Jul 2017

@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

avatar csthomas
csthomas - comment - 5 Jul 2017

IMO This is a sign of corruption of the menu.
Only one menu item "ROOT" can have $link->level less than 1.

avatar ittoufiq
ittoufiq - comment - 5 Jul 2017

Hi, Thanks a lot guys. Should i wait for next Joomla update? Thanks

avatar csthomas
csthomas - comment - 5 Jul 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jul 2017
Title
I have got this problem after update from 3.7.2 to 3.7.3
`Warning: str_repeat()` after update from 3.7.2 to 3.7.3
avatar joomla-cms-bot joomla-cms-bot - edited - 9 Jul 2017
avatar brianteeman
brianteeman - comment - 27 Jul 2017

I am going to close this due to a lack of reply - it can always be reopened if updated

avatar brianteeman brianteeman - change - 27 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-27 20:52:16
Closed_By brianteeman
avatar brianteeman brianteeman - close - 27 Jul 2017

Add a Comment

Login with GitHub to post a comment