升级到2019年6月的版本后报错。

创建时间:2019-09-28 17:15发布者:郭富城点击数:2754
主页下部显示出错
Fatal error: Smarty error: [in inc/online_service.tpl line 7]: syntax error: (secure mode) 'is_array' not allowed in if statement (smarty.class.php, line 1278) in /include/smarty.class.php on line 169

我查了169行代码是 trigger_error("Smarty error: $error_msg", $error_type);

另外,升级后我发现DouPHP提示有5个可以更新,但是我点后跳转到在线安装模块页面无显示。
回答 我也遇到这个问题(1)
郭富城2019-09-28 05:27回答
Fatal error: Smarty error: [in product.dwt line 39]: syntax error: (secure mode) 'is_array' not allowed in if statement (smarty.class.php, line 1278) in /include/smarty.class.php on line 169

1278行代码是 $this->_syntax_error("(secure mode) '$token' not allowed in if statement", E_USER_ERROR, __FILE__, __LINE__);
有用(0) 没用(0)
郭富城2019-09-28 05:53回答
1.
后台报错
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/include/mysql.class.php on line 127

我查了一下 mysql.class.php 127行代码是
return mysqli_fetch_array($query, $resulttype);

2.
主页报错
Fatal error: Smarty error: [in inc/online_service.tpl line 7]: syntax error: (secure mode) 'is_array' not allowed in if statement (smarty.class.php, line 1278) in /include/smarty.class.php on line 169

我查了smarty.class.php 169行代码是 trigger_error("Smarty error: $error_msg", $error_type);
而online_service.tpl 第7行代码是 <!-- {foreach from=$site.qq item=qq} -->
请问该如何修改?
有用(0) 没用(0)
DouPHP官方技术2019-09-28 06:06回答
下载新版系统,然后将里面的 “theme/default/” 目录覆盖到你的站点,由于模板有做调整,所以旧版模板会提示这个错误
有用(1) 没用(0)