- Posts: 28
- Thank you received: 0
Top Menu and Errors being displayed
-
Lucien_VRN
Inactive member - Topic Author
- Member
I've just uploaded a new website based on Explorer template. I did extensively test it on my PC and all worked fine, but when uploaded onto the server a few problems have arisen. Solved some of them, one was related to the Mb()string issue with K2 articles but once Mbstring was enabled in PHP that cured it.
However, I'm still left with the error message 'Warning: Invalid argument supplied for foreach() in /home/magicvil/public_html/components/com_k2/views/item/view.html.php on line 442' on some pages. I have set Display Errors Off in the configuration.php file, Magic Quotes is set to off but I just can't clear this one error!
I also have some pages were the Top Menu stays fully out with all sub menu items showing, see attached image. I have noticed that there is a similar post to amend the template_css.css file so will try this fix.
The site is live:
www.magic-villas.com
Super template though, very pleased with it.
Please Log in to join the conversation.
-
Lucien_VRN
Inactive member - Topic Author
- Member
- Posts: 28
- Thank you received: 0
Add this to bottom of template_css.css:
.menu.nav.mnu_mainmenu UL{
display:none;
}
This stops the menu showing when the page loads, but it also prevents the sub-menu items showing when you mouse over.
The second issue re 'error message 'Warning: Invalid argument supplied for foreach() in /home/magicvil/public_html/components/com_k2/views/item/view.html.php on line 442' has cured itself since I reloaded, maybe it was 'old pages' in the cache...but fixed now.
Lucien_VRN wrote: Hi,
I've just uploaded a new website based on Explorer template. I did extensively test it on my PC and all worked fine, but when uploaded onto the server a few problems have arisen. Solved some of them, one was related to the Mb()string issue with K2 articles but once Mbstring was enabled in PHP that cured it.
However, I'm still left with the error message 'Warning: Invalid argument supplied for foreach() in /home/magicvil/public_html/components/com_k2/views/item/view.html.php on line 442' on some pages. I have set Display Errors Off in the configuration.php file, Magic Quotes is set to off but I just can't clear this one error!
I also have some pages were the Top Menu stays fully out with all sub menu items showing, see attached image. I have noticed that there is a similar post to amend the template_css.css file so will try this fix.
The site is live:
www.magic-villas.com
Super template though, very pleased with it.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
- Posts: 14116
- Thank you received: 1639
Please Log in to join the conversation.
-
Lucien_VRN
Inactive member - Topic Author
- Member
- Posts: 28
- Thank you received: 0
Still have a problem with the sub menues showing as 'moused over' then threy're not, it isn't on all pages, can you take a look at the top menu 'About Florida Blog' and you can see what I mean. If I do the fix that was previously suggested in the forum then you get no sub-menus at all.
I did simplify the menu structure to see if that helps but it made no difference. It is only on certain pages and it seems to be when you call a K2 category.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
- Posts: 14116
- Thank you received: 1639
That code breaks , I think it stops other things from functioning.
You need to find where that comes fro and best you just wrapp tooltip line with try..catch becuse it may do something useful on some other page:
Please Log in to join the conversation.
-
Lucien_VRN
Inactive member - Topic Author
- Member
- Posts: 28
- Thank you received: 0
Please Log in to join the conversation.