215 Posts
cubist
7 years ago
1
Topic

Hello Fellow Sebloders

Not sure what to make of this. I see this error on the Button Submit field dialog box when making settings:

Warning: str_repeat(): Second argument has to be greater than or equal to 0 in /home3/wcimain/public_html/libraries/cms/form/field/menuitem.php on line 220 -- see screenshot: http://coldwork.com/images/screenshots/error-img.png. FYI the submit (Search) button still works on the front-end tho.

This may be a carry over from an earlier migration. 

Since it's referring to the menu item PHP file, I looked at the Main Menu and at the top of the menu item "Parent Item" select box, I see this at the top -- see screenshot http://coldwork.com/images/screenshots/menu-img.png:

  • Menu Item Root  <-- I suspect this is the problem
  • Menu_Item_Root

What's odd is ONLY the second one is actually in the #__menu table. I searched the ENTIRE dB for "Menu Item Root" and nothing shows up ... ??

I have tried PHP 5.4, 5.5, and 5.6 but the error still appears. 

Any ideas re how to get rid of this first menu item?

Thx in advance, 

-- Dano

***********************************************************

Using J 3.6.4 and CCK v 3.10.0b


Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

Your #__menu table is somehow broken, I would suggest you delete wrong  Root from database - you will need to check which menu item is actually your root, compare both entries with root item in fresh install of joomla. Then go to administrator/index.php?option=com_menus&view=menus and click on Rebuild button to rebuild your menus.

Please make backup of the table before you do that in case something goes wrong.

Get a Book for SEBLOD