Top Menu and Errors being displayed

More
11 years 2 months ago - 11 years 2 months ago #31849 by Lucien_VRN
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.
Attachments:
Last edit: 11 years 2 months ago by Lucien_VRN.

Please Log in to join the conversation.

More
11 years 2 months ago #31852 by Lucien_VRN
I made the suggested change to template_css.css as suggested in a previous post, i.e:
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.

More
11 years 2 months ago #31870 by ivan.milic
Just set error reporting in joomla global configuration to lower value.

Please Log in to join the conversation.

More
11 years 2 months ago - 11 years 2 months ago #31877 by Lucien_VRN
Thanks Ivan, yes, solved issue with error reporting, appreciate the input.

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.
Last edit: 11 years 2 months ago by Lucien_VRN. Reason: mis-spelling

Please Log in to join the conversation.

More
11 years 2 months ago #31881 by ivan.milic
You or some component you use added:
Code:
<script type="text/javascript"> jQuery(document).ready(function() { jQuery('.hasTooltip').tooltip({"container": false}); }); </script>

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:
Code:
<script type="text/javascript"> jQuery(document).ready(function() { try{ jQuery('.hasTooltip').tooltip({"container": false}); }catch(e){} }); </script>

Please Log in to join the conversation.

More
11 years 1 month ago #32190 by Lucien_VRN
By a process of elimination I found that the component creating this menu behaviour was the hot Photo Gallery plugin, which I had used in the all of the blog articles. Once I disabled both 'Load jQuery' and 'jQuery No Conflict Mode' in the plugin manager then the menus all work correctly. Maybe an issue between this plug-in and K2. I did use the Joomla 3 version (version 3.0.2).

Please Log in to join the conversation.

Time to create page: 0.366 seconds
Powered by Kunena Forum