Postings

You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).

Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!

Warning: Invalid argument

  • admin
  • admin's Avatar Topic Author
  • Administrator
  • Administrator
More
IP: 207.181.196.3 14 years 10 months ago #2 by admin
Warning: Invalid argument supplied for foreach() in /home/www/.../components/com_contact/helpers/route.php on line 122

For the contacts to show properly, you need to have a menu item where your contacts would show. Create a menu item that will show the category (or all the categories if your contacts are from several categories). You probably don't want this menu item in your menu but it needs to exist in order for the contacts to load in a page fit for them. Add .item-xxx {display:none} to your template stylesheet. This way, the menu item won't show (xxx is the menu item ID for the menu item created).

Olivier.
More
IP: 98.31.34.242 14 years 9 months ago #58 by aimeegeek
I added the menu item with all contact categories and that has eliminated the error message. I added .item-183 {display:none} in the template CSS, but that menu item (personnel > hide) is still showing.
Here's the site: www.atfd2007.com/people.html
Can you help?
The following user(s) said Thank You: admin
  • admin
  • admin's Avatar Topic Author
  • Administrator
  • Administrator
More
IP: 207.181.196.3 14 years 9 months ago #59 by admin
Replied by admin on topic Re: Warning: Invalid argument
Hello!
It does not work because your template overrides the standard way menus are created. You will have to give this menu item a CSS class in your template (hopefully the templates allows that) and give that class a display:none. Moreover, do not put that menu item first or last in your menu because the template adds a specific class to the first and last elements for look purposes.

Olivier.
More
IP: 98.31.34.242 14 years 9 months ago #60 by aimeegeek
Thank you for your quick reply. The template is not cooperating with specific classes for menu items. As an alternate, how can I eliminate the error: "1057 Error Invalid controller class: ContactController" being thrown by the menu item with the categories. www.atfd2007.com/people/hide.html
  • admin
  • admin's Avatar Topic Author
  • Administrator
  • Administrator
More
IP: 207.181.196.3 14 years 9 months ago #61 by admin
Replied by admin on topic Re: Warning: Invalid argument
I just realized that you don't have links on your contacts so you don't even need to have a menu item (it is just a workaround when you get an error 500). The 1057 error is a documented issue with Joomla!. But just get rid of that menu item and this will work for you!

Olivier.
More
IP: 98.31.34.242 14 years 9 months ago #62 by aimeegeek
If I unpublish that menu item then I get the Warning: Invalid argument supplied for foreach() in /...com_contact/helpers/route.php on line 122 error.