Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

map-pin Warning: Invalid argument

More
12 years 11 months ago #2 by admin
Warning: Invalid argument was created 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.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #58 by aimeegeek
Replied by aimeegeek on topic Re: Warning: Invalid argument
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

Please Log in or Create an account to join the conversation.

More
12 years 10 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.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #60 by aimeegeek
Replied by aimeegeek on topic Re: Warning: Invalid argument
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

Please Log in or Create an account to join the conversation.

More
12 years 10 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.

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #62 by aimeegeek
Replied by aimeegeek on topic Re: Warning: Invalid argument
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.

Please Log in or Create an account to join the conversation.