Our site has been running slow since yesterday and is crashing often. We received this error once when navigating the site: DB function failed with error number 2006 MySQL server has gone away SQL=SELECT * FROM jos_k2_categories WHERE id=6 AND published=1 AND trash=0 AND access<=0 Warning: Invalid argument supplied for foreach() in /home/***/public_html/components/com_k2/sef_ext/com_k2.php on line 115 DB function failed with error number 2006 MySQL server has gone away SQL=SELECT * FROM jos_k2_categories WHERE id= AND published=1 AND trash=0 AND access<=0 Warning: Invalid argument supplied for foreach() in /home/****/public_html/components/com_k2/sef_ext/com_k2.php on line 98 DB function failed with error number 2006 MySQL server has gone away SQL=SELECT name, link,id FROM jos_menu WHERE id = 77 AND published='1' I forwarded the error message to our hosting provider and this was his reply: Thank you for contacting Hostgator.com. Mysql appears to be running fine ( if it was offline your site would not display) what seems to be the problem is with the joomla plugin com_k2 on this line of its code. /home/****/public_html/components/com_k2/sef_ext/com_k2.php 98 foreach ($fullPath as $path) { 115 foreach ($fullPath as $path) {' I was unable to login to your admin to test this plugin, you may want to check with the creator of the plugin. do you know what would be the cause of this problem and how to fix it? Thanks,