2013-01-22 46 views
-3

所以我的joomla網站崩潰拋出我這個錯誤,奇怪的是,另一個人在我的網站在同一時間在另一個國家仍然有我的網站爲他工作確定..當我嘗試保存信息發佈到數據庫中時,它崩潰了。以下是錯誤,我會很感激,並且永遠感謝任何提示修復此問題!謝謝 !!順便說一句,我是從星巴克瀏覽它,每個人都在使用WiFi ...我的Joomla網站與此錯誤崩潰SQL代碼

Error loading module MySQL server has gone away SQL=SELECT m.id, m.title, m.module, m.position, m.content, m.showtitle, m.params, mm.menuid FROM pwo3d_modules AS m LEFT JOIN pwo3d_modules_menu AS mm ON mm.moduleid = m.id LEFT JOIN pwo3d_extensions AS e ON e.element = m.module AND e.client_id = m.client_id WHERE m.published = 1 AND e.enabled = 1 AND (m.publish_up = '0000-00-00 00:00:00' OR m.publish_up <= '2013-01-22 04:58:42') AND (m.publish_down = '0000-00-00 00:00:00' OR m.publish_down >= '2013-01-22 04:58:42') AND m.access IN (1,1,2,3) AND m.client_id = 0 AND (mm.menuid = 207 OR mm.menuid <= 0) ORDER BY m.position, m.ordering 

Warning: Invalid argument supplied for foreach() in /home/content/72/9959172/html/libraries/joomla/database/database/mysql.php on line 383 

Warning: Invalid argument supplied for foreach() in /home/content/72/9959172/html/libraries/joomla/database/database/mysql.php on line 383 

Warning: Invalid argument supplied for foreach() in /home/content/72/9959172/html/libraries/joomla/database/table.php on line 406 
An error has occurred. 
The requested page cannot be found. 
Home Page 

If difficulties persist, please contact the System Administrator of this site and report the error below. 
+1

是的,我*絕對*認爲這是相關的,你是從星巴克瀏覽。也許榛子巧克力脫脂大豆拿鐵不夠? – eggyal

回答

0
Warning: Invalid argument supplied for foreach() 

你應該檢查你所傳遞給foreach是使用is_array功能

數組

如果你不確定這將是一個數組,你可以隨時使用以下PHP示例代碼進行檢查:

if (is_array($variable)) { 

    foreach ($variable as $item) { 
    //do something 
    } 
} 

這意味着您的SQL中也有錯誤,因爲它不會將任何數據返回到foreach,只要我能理解。確保你的SQL是正確的。

+0

我不認爲這是問題,因爲它很少發生在網站上......但我會檢查 –

+0

與給定的錯誤,可能是問題。 – Techie