迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
剛才打開網(wǎng)站出現(xiàn)系統(tǒng)崩潰,請問怎么處理?
運行這個,然后發(fā)錯誤日志過來給我看
參考文檔:《PHP環(huán)境偵探工具》
系統(tǒng)崩潰,請檢查錯誤日志
{ "title": "CodeIgniter\\Database\\Exceptions\\DatabaseException", "type": "CodeIgniter\\Database\\Exceptions\\DatabaseException", "code": 500, "message": "Unable to connect to the database.", "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseConnection.php", "line": 381, "trace": [ { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseConnection.php", "line": 602, "function": "initialize", "class": "CodeIgniter\\Database\\BaseConnection", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseBuilder.php", "line": 1866, "function": "query", "class": "CodeIgniter\\Database\\BaseConnection", "type": "->", "args": [ "SELECT `password`, `salt`, `id`\nFROM `dr_member`\nWHERE `username` = :username:\n LIMIT 1", { "username": [ "愛測評好推薦", true ] }, false ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Model\\Auth.php", "line": 123, "function": "get", "class": "CodeIgniter\\Database\\BaseBuilder", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Core\\Controllers\\Admin\\Login.php", "line": 50, "function": "login", "class": "Phpcmf\\Model\\Auth", "type": "->", "args": [ "愛測評好推薦", "ABCD8779368" ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 931, "function": "index", "class": "Phpcmf\\Controllers\\Admin\\Login", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 427, "function": "runController", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [ { "uid": 0, "admin": false, "member": null, "module": null, "member_cache": { "auth2": { "1": { "public": { "member": { "login_score": "0", "login_exp": "0", "avatar_score": "0", "avatar_exp": "0" }, "home": { "show": "0", "is_category": "0" }, "module": { "news": { "show": "0", "search": "0", "comment_add": "1", "comment_exp": "", "comment_score": "" } }, "form_public": "", "share_category_public": { "show": "1", "add": "1", "edit": "1", "code": "1", "verify": "0", "exp": "", "score": "", "money": "", "day_post": "", "total_post": "" }, "category_public": [ { "test": "1" } ], "mform_public": "", "form": null, "share_category": null, "category": null, "mform": null } } }, "config": { "cname": "", "edit_name": "1", "userlen": "1", "pwdlen": "1", "pwdpreg": "", "edit_mobile": "1", "logintime": "0", "verify_msg": "", "pagesize": "0", "pagesize_mobile": "0", "pagesize_api": "0" }, "login": { "code": "1", "field": [ "phone", "email" ] }, "oauth": { "login": "0", "field": "0", "qq": { "id": "", "value": "" }, "weixin": { "id": "", "value": "" } }, "register": { "cutname": "0", "preg": "", "close": "0", "groupid": "1", "field": [ "username", "phone", "email" ], "unprefix": "", "code": "1", "verify": "", "notallow": [ "" ], "group": [ "1" ] }, "myfield": null, "field": [], "authid": [ 0, "1" ], "group": { "1": { "id": "1", "name": "注冊用戶", "price": "0.00", "unit": "0", "days": "0", "apply": "1", "register": "1", "setting": { "level": { "auto": "0", "unit": "0", "price": "0" }, "verify": "0" }, "displayorder": "0", "field": null } } }, "site": { "1": 1 }, "site_info": { "1": { "SITE_NAME": "愛測評好推薦", "SITE_DOMAIN": "www.zgmxsjg.cn", "SITE_LOGO": "http://www.zgmxsjg.cn/uploadfile/202101/e6605323edca76b.png", "SITE_MOBILE": "m.zgmxsjg.cn", "SITE_AUTO": "1", "SITE_IS_MOBILE_HTML": "", "SITE_MOBILE_NOT_PAD": "", "SITE_CLOSE": "0", "SITE_THEME": "default", "SITE_TEMPLATE": "default", "SITE_REWRITE": null, "SITE_SEOJOIN": "筆記本電腦測評,筆記本電腦推薦,平板電腦推薦,WIFI6路由器圖文設置教程", "SITE_LANGUAGE": "zh-cn", "SITE_TIMEZONE": "8", "SITE_TIME_FORMAT": "", "SITE_INDEX_HTML": "0", "SITE_ID": 1, "SITE_URL": "http://www.zgmxsjg.cn/", "SITE_MURL": "http://m.zgmxsjg.cn/", "SITE_IS_MOBILE": 1 } }, "site_domain": { "www.zgmxsjg.cn": 1, "m.zgmxsjg.cn": 1 }, "is_hcategory": null, "session": {}, "is_mobile": 0, "temp": [] } ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 333, "function": "handleRequest", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [ null, { "handler": "file", "backupHandler": "file", "storePath": "E:\\wwwroot\\Host012184322\\wwwroot/cache/caching/", "cacheQueryString": false, "prefix": "PHPCMFbc6c23a70103007905616604810a7649", "memcached": { "host": "127.0.0.1", "port": 11211, "weight": 1, "raw": false }, "redis": { "host": "127.0.0.1", "password": null, "port": 6379, "timeout": 0, "database": 0 }, "validHandlers": { "dummy": "CodeIgniter\\Cache\\Handlers\\DummyHandler", "file": "CodeIgniter\\Cache\\Handlers\\FileHandler", "memcached": "CodeIgniter\\Cache\\Handlers\\MemcachedHandler", "predis": "CodeIgniter\\Cache\\Handlers\\PredisHandler", "redis": "CodeIgniter\\Cache\\Handlers\\RedisHandler", "wincache": "CodeIgniter\\Cache\\Handlers\\WincacheHandler" } }, false ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Init.php", "line": 398, "function": "run", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\index.php", "line": 47, "args": [ "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Init.php" ], "function": "require" }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\sjg.php", "line": 9, "args": [ "E:\\wwwroot\\Host012184322\\wwwroot\\index.php" ], "function": "require" } ] }
是不是這
偵測結果如圖
是什么問題,該怎么處理
有懂得人嗎?我現(xiàn)在該如何恢復
數(shù)據(jù)庫問題,讓主機服務商處理
數(shù)據(jù)庫掛掉了,找主機運營商處理
數(shù)據(jù)庫掛了或者設置錯誤,先試試用數(shù)據(jù)庫軟件能不能連上
數(shù)據(jù)庫配置不正確,檢查一下數(shù)據(jù)庫配置,兄弟伙,以后發(fā)線上的圖片建議打一下碼,弄完后記得把數(shù)據(jù)庫的賬戶或者密碼改一下
回復@永興電子
運行這個,然后發(fā)錯誤日志過來給我看
參考文檔:《PHP環(huán)境偵探工具》
系統(tǒng)崩潰,請檢查錯誤日志
{ "title": "CodeIgniter\\Database\\Exceptions\\DatabaseException", "type": "CodeIgniter\\Database\\Exceptions\\DatabaseException", "code": 500, "message": "Unable to connect to the database.", "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseConnection.php", "line": 381, "trace": [ { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseConnection.php", "line": 602, "function": "initialize", "class": "CodeIgniter\\Database\\BaseConnection", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\Database\\BaseBuilder.php", "line": 1866, "function": "query", "class": "CodeIgniter\\Database\\BaseConnection", "type": "->", "args": [ "SELECT `password`, `salt`, `id`\nFROM `dr_member`\nWHERE `username` = :username:\n LIMIT 1", { "username": [ "愛測評好推薦", true ] }, false ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Model\\Auth.php", "line": 123, "function": "get", "class": "CodeIgniter\\Database\\BaseBuilder", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Core\\Controllers\\Admin\\Login.php", "line": 50, "function": "login", "class": "Phpcmf\\Model\\Auth", "type": "->", "args": [ "愛測評好推薦", "ABCD8779368" ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 931, "function": "index", "class": "Phpcmf\\Controllers\\Admin\\Login", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 427, "function": "runController", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [ { "uid": 0, "admin": false, "member": null, "module": null, "member_cache": { "auth2": { "1": { "public": { "member": { "login_score": "0", "login_exp": "0", "avatar_score": "0", "avatar_exp": "0" }, "home": { "show": "0", "is_category": "0" }, "module": { "news": { "show": "0", "search": "0", "comment_add": "1", "comment_exp": "", "comment_score": "" } }, "form_public": "", "share_category_public": { "show": "1", "add": "1", "edit": "1", "code": "1", "verify": "0", "exp": "", "score": "", "money": "", "day_post": "", "total_post": "" }, "category_public": [ { "test": "1" } ], "mform_public": "", "form": null, "share_category": null, "category": null, "mform": null } } }, "config": { "cname": "", "edit_name": "1", "userlen": "1", "pwdlen": "1", "pwdpreg": "", "edit_mobile": "1", "logintime": "0", "verify_msg": "", "pagesize": "0", "pagesize_mobile": "0", "pagesize_api": "0" }, "login": { "code": "1", "field": [ "phone", "email" ] }, "oauth": { "login": "0", "field": "0", "qq": { "id": "", "value": "" }, "weixin": { "id": "", "value": "" } }, "register": { "cutname": "0", "preg": "", "close": "0", "groupid": "1", "field": [ "username", "phone", "email" ], "unprefix": "", "code": "1", "verify": "", "notallow": [ "" ], "group": [ "1" ] }, "myfield": null, "field": [], "authid": [ 0, "1" ], "group": { "1": { "id": "1", "name": "注冊用戶", "price": "0.00", "unit": "0", "days": "0", "apply": "1", "register": "1", "setting": { "level": { "auto": "0", "unit": "0", "price": "0" }, "verify": "0" }, "displayorder": "0", "field": null } } }, "site": { "1": 1 }, "site_info": { "1": { "SITE_NAME": "愛測評好推薦", "SITE_DOMAIN": "www.zgmxsjg.cn", "SITE_LOGO": "http://www.zgmxsjg.cn/uploadfile/202101/e6605323edca76b.png", "SITE_MOBILE": "m.zgmxsjg.cn", "SITE_AUTO": "1", "SITE_IS_MOBILE_HTML": "", "SITE_MOBILE_NOT_PAD": "", "SITE_CLOSE": "0", "SITE_THEME": "default", "SITE_TEMPLATE": "default", "SITE_REWRITE": null, "SITE_SEOJOIN": "筆記本電腦測評,筆記本電腦推薦,平板電腦推薦,WIFI6路由器圖文設置教程", "SITE_LANGUAGE": "zh-cn", "SITE_TIMEZONE": "8", "SITE_TIME_FORMAT": "", "SITE_INDEX_HTML": "0", "SITE_ID": 1, "SITE_URL": "http://www.zgmxsjg.cn/", "SITE_MURL": "http://m.zgmxsjg.cn/", "SITE_IS_MOBILE": 1 } }, "site_domain": { "www.zgmxsjg.cn": 1, "m.zgmxsjg.cn": 1 }, "is_hcategory": null, "session": {}, "is_mobile": 0, "temp": [] } ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\System\\CodeIgniter.php", "line": 333, "function": "handleRequest", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [ null, { "handler": "file", "backupHandler": "file", "storePath": "E:\\wwwroot\\Host012184322\\wwwroot/cache/caching/", "cacheQueryString": false, "prefix": "PHPCMFbc6c23a70103007905616604810a7649", "memcached": { "host": "127.0.0.1", "port": 11211, "weight": 1, "raw": false }, "redis": { "host": "127.0.0.1", "password": null, "port": 6379, "timeout": 0, "database": 0 }, "validHandlers": { "dummy": "CodeIgniter\\Cache\\Handlers\\DummyHandler", "file": "CodeIgniter\\Cache\\Handlers\\FileHandler", "memcached": "CodeIgniter\\Cache\\Handlers\\MemcachedHandler", "predis": "CodeIgniter\\Cache\\Handlers\\PredisHandler", "redis": "CodeIgniter\\Cache\\Handlers\\RedisHandler", "wincache": "CodeIgniter\\Cache\\Handlers\\WincacheHandler" } }, false ] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Init.php", "line": 398, "function": "run", "class": "CodeIgniter\\CodeIgniter", "type": "->", "args": [] }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\index.php", "line": 47, "args": [ "E:\\wwwroot\\Host012184322\\wwwroot\\dayrui\\Fcms\\Init.php" ], "function": "require" }, { "file": "E:\\wwwroot\\Host012184322\\wwwroot\\sjg.php", "line": 9, "args": [ "E:\\wwwroot\\Host012184322\\wwwroot\\index.php" ], "function": "require" } ] }
是不是這
偵測結果如圖
是什么問題,該怎么處理
有懂得人嗎?我現(xiàn)在該如何恢復
數(shù)據(jù)庫問題,讓主機服務商處理
數(shù)據(jù)庫掛掉了,找主機運營商處理
數(shù)據(jù)庫掛了或者設置錯誤,先試試用數(shù)據(jù)庫軟件能不能連上
數(shù)據(jù)庫配置不正確,檢查一下數(shù)據(jù)庫配置,兄弟伙,以后發(fā)線上的圖片建議打一下碼,弄完后記得把數(shù)據(jù)庫的賬戶或者密碼改一下
回復@永興電子