【问题标题】:Could Not Connect - Database or Coding Error无法连接 - 数据库或编码错误
【发布时间】:2012-09-27 01:47:01
【问题描述】:

我们已上传网站,而网站http://bartanwale.gls.in 显示错误:

"could not connect"

那时我们也修正了各种。

我们已经检查了代码的每一部分

我们已经仔细检查了数据库。

请使用我们发现以下错误的 firebug 帮助我们解决错误 - 他们不必对此做任何事情。

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)?...

请指导。

【问题讨论】:

  • 查看日志,暂时将debug设置为2,看看是什么错误原因
  • 说实话?阅读 CakePHP 手册。从头开始。那里解释了基础知识。 book.cakephp.org

标签: php mysql cakephp mysqli


【解决方案1】:

我在您的源代码中发现了这个错误,在现在显示为“无法连接:”的 div 中

警告:mysql_fetch_array() 期望参数 1 是资源,布尔值在 /home/bartanwa/public_html/bartanwale/trendcart/api/api_methods.php 中给出753

也许您可以在错误中引用的 php 文档的第 753 行周围粘贴一些代码?

【讨论】:

    猜你喜欢
    • 2012-10-29
    • 1970-01-01
    • 1970-01-01
    • 2020-07-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多