Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":2287,"date":"2015-12-17T14:40:54","date_gmt":"2015-12-17T06:40:54","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=2287"},"modified":"2015-12-22T15:09:35","modified_gmt":"2015-12-22T07:09:35","slug":"how_to_fix_fatal-error-class-mysqli-not-found-in","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/how_to_fix_fatal-error-class-mysqli-not-found-in\/","title":{"rendered":"\u5982\u4f55\u89e3\u6c7a Fatal error: Class ‘mysqli’ not found in"},"content":{"rendered":"

\"php_selector_mysqli_wp\"<\/p>\n

\u7576\u64cd\u4f5c\u6211\u5011\u6240\u63d0\u4f9b\u7684php\u5207\u63db<\/a>\u7684\u6559\u5b78\uff0c\u5c07php\u5207\u5230\u975e\u865b\u64ec\u4e3b\u6a5f\u6240\u9810\u8a2d\u7684\u7248\u672c\u6642\uff0c
\n\u53ef\u80fd\u6703\u51fa\u73fe\u5176\u4ed6\u7684\u932f\u8aa4\u8a0a\u606f\uff0c\u5982\u679c\u4f7f\u7528\u7684\u662f\u5957\u88dd\u7a0b\u5f0f\uff0c\u9019\u985e\u7684\u901a\u5e38\u554f\u984c\u90fd\u6703\u5f88\u597d\u89e3\u6c7a\uff0c
\n\u8acb\u770b\u6211\u5011\u4ee5\u4e0b\u7684\u4ecb\u7d39\uff1a
\n<\/p>\n

\u9019\u6b21\u9047\u5230\u7684\u932f\u8aa4\u8a0a\u606f\u5982\u4e0b\uff1a<\/h6>\n

Fatal error<\/b>: Class ‘mysqli’ not found in \/home\/xxxxxx\/public_html\/system\/database\/mysqli.php<\/b> on line 6<\/b><\/p>\n

\u5176\u5be6\u7167\u5b57\u9762\u4e0a\u7684\u610f\u601d\u4f86\u770b\uff0c\u5c31\u662f\u7f3a\u5c11 mysqli \u9019\u500b php library\u3002<\/p>\n

 <\/p>\n

\u4e00\u822c\u8655\u7406\u7684\u65b9\u5f0f\uff1a<\/span><\/p>\n

\u6700\u5c0b\u5e38\u7684\u89e3\u6cd5\u662f\u8981\u900f\u904eos\u53bb\u5b89\u88dd\uff0c\u6bd4\u65b9\u8aaa\u767b\u5165 centos shell \u5f8c\uff0c yum install php-mysqli \u6307\u4ee4\uff0c\u7136\u5f8c\u5728\u91cd\u958b httpd\uff0c\u9806\u5229\u7684\u8a71\uff0c\u9019\u6a23\u5c31\u641e\u5b9a\u4e86\u3002<\/p>\n

 <\/p>\n

\u591aphp\u7248\u672c\u7684\u4e3b\u6a5f\u5462\uff1f<\/span><\/p>\n

\u50cf\u6211\u5011\u7684\u865b\u64ec\u4e3b\u6a5f<\/a>\uff0c\u76f8\u5bb9\u65bc\u591a\u7248\u672c\u7684php\uff0c\u6240\u4ee5\u4f7f\u7528\u4e00\u822c\u8655\u7406\u65b9\u5f0f\u662f\u5f88\u96e3\u89e3\u6389\u7684\uff0c\u9019\u6642\u5c31\u662f\u56de\u5230 php\u5207\u63db \u7684\u529f\u80fd\u9801\u9762\u88e1\uff0c\u76f4\u63a5\u5c07 mysqli \u6253\u52fe\uff0c\u5c31\u53ef\u4ee5\u7684\u3002
\n(\u8a18\u5f97\u9084\u8981\u5b58\u6a94\uff0c\u624d\u6703\u751f\u6548<\/span>)<\/p>\n

\"php_selector_mysqli_01\"<\/p>\n

 <\/p>\n

\u4f7f\u7528php\u7684\u7a0b\u5f0f\uff0c\u5176\u5be6\u53ea\u8981\u51fa\u73fe\u932f\u8aa4\u8a0a\u606f\uff0c\u5176\u8a0a\u606f\u90fd\u662f\u76f8\u7576\u53e3\u8a9e\u5316\u53ca\u76f4\u89ba\u6027\u7684\uff0c
\n\u53ea\u8981\u4ed4\u7d30\u95b1\u8b80\uff0c\u5c31\u53ef\u4ee5\u5f97\u77e5\u554f\u984c\uff0c\u800c\u67e5\u51fa\u6700\u5feb\u6700\u597d\u7684\u89e3\u6cd5\u3002<\/p>\n

(\u672c\u7bc7\u6587\u7ae0\u7531unethost.com\u5ba2\u670d\u4eba\u54e1<\/a>-Michael\u5b8c\u6210)<\/strong><\/p>\n

\u8a3b\u518a\u7db2\u57df\u8acb\u9ede\u6211<\/a>\uff0c\u4ee5\u53ca\u7db2\u57df\u53d6\u540d\uff0c\u6240\u8981\u77e5\u9053\u7684\u4e8b<\/a>\u3002<\/span><\/strong><\/p>\n

\u6211\u5011\u63d0\u4f9b\u865b\u64ec\u4e3b\u6a5f\u8a66\u7528\uff0c\u4e03\u5929\u6eff\u610f\u4fdd\u8b49\uff0c
\n\u529f\u80fd\u5b8c\u6574\u4f7f\u7528\u4e0d\u53d7\u9650\u5236\uff0c\u6b61\u8fce
\u9ede\u6211<\/a>\u7533\u8acb\u3002<\/span><\/strong><\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u7576\u64cd\u4f5c\u6211\u5011\u6240\u63d0\u4f9b\u7684php\u5207\u63db\u7684\u6559\u5b78\uff0c\u5c07php\u5207\u5230\u975e\u865b\u64ec\u4e3b\u6a5f\u6240\u9810\u8a2d\u7684\u7248\u672c\u6642\uff0c \u53ef\u80fd\u6703\u51fa\u73fe\u5176\u4ed6\u7684\u932f\u8aa4\u8a0a\u606f\uff0c\u5982\u679c\u4f7f\u7528 … \u95b1\u8b80\u5168\u6587 \u5982\u4f55\u89e3\u6c7a Fatal error: Class ‘mysqli’ not found in<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[488,1],"tags":[553,554],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2287"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=2287"}],"version-history":[{"count":6,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2287\/revisions"}],"predecessor-version":[{"id":2530,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2287\/revisions\/2530"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=2287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=2287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=2287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}