2012-09-27 21 views
-4

我們已經上傳的網站和網站http://bartanwale.gls.in顯示錯誤:無法連接 - 數據庫或編碼錯誤

"could not connect" 

我們已經糾正了各種然後過。

我們已經過檢查代碼的所有部分

我們仔細檢查了數據庫。

請幫助我們用錯誤使用螢火蟲,我們發現以下錯誤 - 他們不必做任何事情。

The character encoding declaration of the HTML document was not found when 
prescanning the first 1024 bytes of the file. When viewed in a 
differently-configured browser, this page will reload automatically. The encoding 
declaration needs to be moved to be within the first 1024 bytes of the file. 

<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/> 

The character encoding declaration of the HTML document was not found when 
prescanning the first 1024 bytes of the file. When viewed in a 
differently-configured browser, this page will reload automatically. 
The encoding declaration needs to be moved to be within the first 1024 bytes of 
the file. 


...(u){r=u.arguments?'chrome':u.stack?'firefox':window.opera&&!('stacktrace' in u)?... 

請指導。

+0

檢查日誌並臨時將調試設置爲2以查看錯誤原因是什麼 – tigrang

+0

@tigrang如何做到這一點 – WILSON

+0

說實話?閱讀CakePHP手冊。從頭開始。這裏介紹基礎知識。 book.cakephp.org – burzum

回答

0

我發現這個錯誤在你的源代碼,現在讀「無法連接」的DIV中

警告:mysql_fetch_array()預計參數1是資源,布爾在給出的/ home/bartanwa /的public_html/bartanwale/trendcart/API/api_methods.php上線

也許你可以在周邊的一些錯誤引用的PHP文檔的行753代碼粘貼?