-2

我打开了错误屏幕,但错误只是警告,所以没有什么重要的。

我在网站文件夹中添加了一个 .html 文件,其中包含一些文本,例如“是的,它可以工作”并显示出来。所以它应该说......我没有任何想法。


迁移是从 ubuntu 服务器 10.10 到 ubuntu 12.04 服务器,全新安装。我安装了所有东西(LAMPP ofc)...例如 PHP Myadmin 正在工作,我的 MYSQL 数据库也在工作。我还可以在每个网页文件夹中显示 info.php 页面。

我在 apache2 服务器上运行了另一个网站,它运行良好。

我没主意了。任何帮助都会很快得到支持。

提前致谢

Deprecated: Function set_magic_quotes_runtime() is deprecated in /data/xxxx/www/index.php on line 11
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 311 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 385 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB.php on line 923 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX/Server.php on line 161 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX.php on line 612 
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/HTML/AJAX/Serializer/JSON.php on line 46 
Warning: include_once(../pear/Net/Socket.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Net/SMTP.php on line 25 
Warning: include_once(): Failed opening '../pear/Net/Socket.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Net/SMTP.php on line 25 
Warning: include_once(PEAR.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Mail/mime.php on line 65 
Warning: include_once(): Failed opening 'PEAR.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Mail/mime.php on line 65
Warning: include_once(../pear/Mail/mimePart.php): failed to open stream: No such file or directory in /data/xxxx/www/pear/Mail/mime.php on line 75
Warning: include_once(): Failed opening '../pear/Mail/mimePart.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /data/xxxx/www/pear/Mail/mime.php on line 75
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/Spreadsheet/Excel/Writer/Workbook.php on line 180
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/Spreadsheet/Excel/Writer/Workbook.php on line 189
Deprecated: Call-time pass-by-reference has been deprecated in /data/xxxx/www/modules/statistics/frontend.class.php on line 16
Deprecated: Call-time pass-by-reference has been deprecated in /data/xxxx/www/modules/users/frontend.class.php on line 19
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB/common.php on line 958
Deprecated: Assigning the return value of new by reference is deprecated in /data/xxxx/www/pear/DB/common.php on line 1150
Notice: DB Error: connect failed in /data/xxxx/www/classes/registry.class.php on line 70

That'y my Error log.

所以这是来自 DB ERROR 的代码:

function GetDbEngineService()
    {
            $conf = $this->conf;
            $type = $this->config['system']['db']['type'];
            $host = $this->config['system']['db']['host'];
            $user = $this->config['system']['db']['user'];
            $pass = $this->config['system']['db']['pass'];
            $db_name = $this->config['system']['db']['db_name'];

            $dsn = "$type://$user:$pass@$host/$db_name";
            $engine = DB::connect($dsn);
            $this->db_engine = $engine;

            if (DB::isError($engine)) {
                    user_error  ( $engine->getMessage());
                    exit();
            }

            $engine->query("set names utf8");
            return $engine;
    }

    function GetSettings()

这有帮助吗?因为我不是教授。php中的编码器...

编辑:现在我修复了数据库问题,并出现了这个错误(我收到了警告并弃用了)

Notice: Undefined variable: row in /data/xxxx/www/classes/web_logic.class.php on line 238 Deprecated: Function split() is deprecated in /data/xxxx/www/classes/web_interface.class.php on line 159 
Notice: Undefined index: special in /data/xxxx/www/classes/web_interface.class.php on line 162 Notice: Undefined variable: row in /data/xxxx/www/classes/web_logic.class.php on line 34 
Notice: Undefined variable: header in /data/xxxx/www/classes/web_logic.class.php on line 42 Notice: Undefined offset: 0 in /data/xxxx/www/classes/web_interface.class.php on line 56 
Notice: Undefined offset: 0 in /data/xxxx/www/classes/web_interface.class.php on line 60 Deprecated: Function split() is deprecated in /data/xxxx/www/classes/web_view.class.php on line 320 
Notice: Undefined index: ajax_action in /data/xxxx/www/classes/web_interface.class.php on line 132

0

4

1 回答 1

1
Notice: DB Error: connect failed in /data/xxxx/www/classes/registry.class.php on line 70

可能是你问题的根源。

由于某种原因,您无法连接到数据库。

确保您的数据库服务器正在运行并且您有权从新服务器进行连接

于 2013-08-16T09:42:36.967 回答