aminmix Posted February 14, 2012 Share Posted February 14, 2012 Hello My website was working well but this morning when i woke up i saw this line instead of my homepage : Link to database cannot be established. When i read the errorlog file : i saw this error occurred many times : [26-Jan-2012 12:16:14] PHP Warning: Invalid argument supplied for foreach() in /home/canrodlu/public_html/modules/blockhomesellers/blockhomesellers.php on line 101 and then this error : [29-Jan-2012 13:57:15] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 104 in /home/canrodlu/public_html/classes/MySQL.php on line 34 [07-Feb-2012 23:42:56] PHP Warning: include(/home/canrodlu/public_html/tools/smarty/compile/7043af35649a2f99e792d9a5d736a56adb42360b.file.blocksearch-top.tpl.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/canrodlu/public_html/tools/smarty/sysplugins/smarty_internal_template.php on line 433 [07-Feb-2012 23:42:57] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home/canrodlu/public_html/tools/smarty/compile/7043af35649a2f99e792d9a5d736a56adb42360b.file.blocksearch-top.tpl.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/canrodlu/public_html/tools/smarty/sysplugins/smarty_internal_template.php on line 433 and the last eror is : [14-Feb-2012 14:47:17] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/canrodlu/public_html/classes/MySQL.php on line 34 Then may website stopped working . What is the problem???? i am tired Link to comment Share on other sites More sharing options...
Mike Kranzler Posted February 14, 2012 Share Posted February 14, 2012 Hi aminmix, It will likely show the same information as you posted above, but just to check, can you please open your config/config.inc.php file and set "display errors" to "on"? Then, please reload your page and let me know what error message, if any, you see. -Mike Link to comment Share on other sites More sharing options...
aminmix Posted February 14, 2012 Author Share Posted February 14, 2012 Thankyou Mike Where should i change display errors ? I have added a new parametr in config.inc.php: define('display errors', 'on'); but no change made. My website domain is : http://www.nouzohoor.com/ Link to comment Share on other sites More sharing options...
tomerg3 Posted February 14, 2012 Share Posted February 14, 2012 This usually means that your database is down. Can you access phpMyAdmin from your cPanel? You should contact your host and ask them to look into your DB Link to comment Share on other sites More sharing options...
petete2008 Posted February 25, 2013 Share Posted February 25, 2013 I have the same problem Link to comment Share on other sites More sharing options...
tomerg3 Posted February 25, 2013 Share Posted February 25, 2013 Then you should follow what I wrote in the last post..... Link to comment Share on other sites More sharing options...
Krishkv Posted February 26, 2013 Share Posted February 26, 2013 You have lost the database connectivity, check your website admin panel. Link to comment Share on other sites More sharing options...
Recommended Posts