安装对信教程

165次阅读
没有评论

安装的是2.5.1版本,使用PHP8.2版本无法安装,退回PHP7.4安装正常。

  • 7.4.33正常
  • 8.0.26正常
  • 8.1.13正常

8.2.16报错


Fatal error: Uncaught ErrorException: Creation of dynamic property Phpcmf\Model::$site is deprecated in /www/wwwroot/example.com/duixin/Fcms/Core/Model.php:39 Stack trace: #0 /www/wwwroot/example.com/duixin/Fcms/Core/Model.php(39): Phpcmf\Extend\Exceptions->errorHandler() #1 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(235): Phpcmf\Model->__construct() #2 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(337): Phpcmf\Service::model() #3 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(215): Phpcmf\Service::M() #4 /www/wwwroot/example.com/duixin/Fcms/Init.php(211): Phpcmf\Service::Log() #5 /www/wwwroot/example.com/duixin/CodeIgniter/Extend/Exceptions.php(46): log_message() #6 [internal function]: Phpcmf\Extend\Exceptions->exceptionHandler() #7 {main} thrown in /www/wwwroot/example.com/duixin/Fcms/Core/Model.php on line 39

8.3.7报错

当前服务器环境缺少PHP扩展:mbstring

把mbsring扩展安装后,报了一个和8.2同样的错误


Fatal error: Uncaught ErrorException: Creation of dynamic property Phpcmf\Model::$site is deprecated in /www/wwwroot/example.com/duixin/Fcms/Core/Model.php:39 Stack trace: #0 /www/wwwroot/example.com/duixin/Fcms/Core/Model.php(39): Phpcmf\Extend\Exceptions->errorHandler() #1 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(235): Phpcmf\Model->__construct() #2 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(337): Phpcmf\Service::model() #3 /www/wwwroot/example.com/duixin/Fcms/Core/Service.php(215): Phpcmf\Service::M() #4 /www/wwwroot/example.com/duixin/Fcms/Init.php(211): Phpcmf\Service::Log() #5 /www/wwwroot/example.com/duixin/CodeIgniter/Extend/Exceptions.php(46): log_message() #6 [internal function]: Phpcmf\Extend\Exceptions->exceptionHandler() #7 {main} thrown in /www/wwwroot/example.com/duixin/Fcms/Core/Model.php on line 39

PS:询问对信官方人员,v2.5.1版本目前只兼容到PHP8.0,但是目前使用8.1暂时没有发现什么问题,先用着8.1,如果有问题再回滚到8.0.

正文完
 
wujingquan
版权声明:本站原创文章,由 wujingquan 2024-05-12发表,共计1814字。
转载说明:Unless otherwise specified, all articles are published by cc-4.0 protocol. Please indicate the source of reprint.
评论(没有评论)