联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
将原先完好的网站移植到群晖上之后运行报错请问怎么解决
类型:POSCMS 更新时间:2019-11-08 14:54:51
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


回帖
  • 江源
    #1楼    江源
    2019-11-08 14:36:34
    Chrome 0
    环境不匹配
  • 疾风
    #2楼    疾风
    2019-11-08 14:54:24
    Chrome 0
    问题已解决,数据库配置中'hostname' => 'localhost',更改为'hostname' => '127.0.0.1',即可
    满意答案
  • 疾风
    #3楼    疾风
    2019-11-08 14:54:51
    Chrome 0
    @疾风:问题已解决问题已解决