联系我们
软件销售
投诉邮箱

q@xunruicms.com

将原先完好的网站移植到群晖上之后运行报错请问怎么解决
方案栏目:POSCMS 发布时间:2019-11-08 14:22:22
PHP程序里面

将原先完好的网站移植到群晖nas上之后运行报错,请问怎么解决?

An uncaught Exception was encountered

Type: Error

Message: Call to a member function real_escape_string() on boolean

Filename: /volume1/web/www/perfectfont/diy/system/database/drivers/mysqli/mysqli_driver.php

Line Number: 391

Backtrace:

File: /volume1/web/www/perfectfont/diy/poscms/model/Member.php
Line: 341
Function: where

File: /volume1/web/www/perfectfont/diy/dayrui/controllers/admin/Login.php
Line: 36
Function: admin_login

File: /volume1/web/www/perfectfont/diy/Init.php
Line: 99
Function: require

File: /volume1/web/www/perfectfont/index.php
Line: 49
Function: require

File: /volume1/web/www/perfectfont/admin.php
Line: 8
Function: require


解决方案列表
  • 2019-11-08 14:36:34

    环境不匹配

  • 2019-11-08 14:54:24

    问题已解决,数据库配置中

    'hostname' => 'localhost',

    更改为

    'hostname' => '127.0.0.1',

    即可

    最佳满意方案
  • 2019-11-08 14:54:51
    @疾风:问题已解决问题已解决