联系官方销售客服
1835022288
028-61286886
2018年的版本3.2.0,今天升级服务器环境为php7.4,mysql8.0,结果报错。
实在找不到原因,求指教。
Severity: 8192
Message: Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Filename: libraries/Template.php
Line Number: 1991
Backtrace:
File: D:\www\cnauto\diy\branch\fqb\D_Common.php
Line: 605
Function: library
File: D:\www\cnauto\diy\branch\fqb\D_Common.php
Line: 46
Function: _init_variable
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 9
Function: __construct
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 84
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 84
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 84
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 84
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 85
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 85
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 85
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
Severity: 8192
Message: Array and string offset access syntax with curly braces is deprecated
Filename: libraries/Dip.php
Line Number: 86
Backtrace:
File: D:\www\cnauto\diy\dayrui\controllers\admin\Home.php
Line: 216
Function: library
File: D:\www\cnauto\diy\Init.php
Line: 63
Function: require
File: D:\www\cnauto\index.php
Line: 49
Function: require
File: D:\www\cnauto\gotomy_admin.php
Line: 8
Function: require
1:diy/dayrui/models/Category_model.php 108行2:diy/dayrui/models/Category_model.php 159行3:diy/dayrui/models/Category_model.php 216行4:diy/dayrui/libraries/Dip.php 84行把所有的{}改为[].②1:diy/dayrui/libraries/Template.php 84行把
!$system['order'] && $system['order'] = $system['flag'] ? 'updatetime_desc' : $action == 'hits' ? 'hits' : 'updatetime'; // 默认排序参数改成
!$system['order'] &&($system['order'] =$system['flag'] ? 'updatetime_desc' : $action) == 'hits' ? 'hits' : 'updatetime'; // 默认排序参数这样就ok,适用所有版本升级为最新最新版本。