白站,
上次你尝试过在7.0.8环境正常安装bookshop模板后,我也测试了
但是虽然xampp环境相同,首页仍然有如下提插件代码错误。
不论是3.6.5还是3.8.2,用bookshop的最新模板还是旧模板安装,前台也是有如下提示。
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JAStack has a deprecated constructor in C:\xampp\htdocs\371\modules\mod_jaslideshowlite\helpers\helper.php on line 800
在后台提示错误代码
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ModCacheCleaner has a deprecated constructor in C:\xampp\htdocs\371\administrator\modules\mod_cachecleaner\helper.php on line 16
劳烦给看下如何解决,谢谢!
我之前测试的是 JA Onepage 模板,不是 JA Bookshop;而且,我即使测试,一般也只看是否顺利安装,并不关心前台是否显示出错代码。因为像这样的出错一点都不奇怪,一个模块过时了,不兼容最新 PHP 版本了,自然就会报错。解决办法也很简单:要么更新模块到最新版本,要么换一个模块。这只是局限在“模块”的一个问题,跟模板基本上没关系。
从 JA Slideshow Lite 这个模块的名称也能看出来,这是一个幻灯模块,而且 Lite 往往代表功能被阉割的免费版,也没什么意思。你完全可以换一个免费的幻灯模块来展示 banner 。
上述报错消息应该是原始 PHP 代码所用的某些 function 在新版本的 PHP 语言里面已被抛弃,所以会出错。彻底解决的办法很简单:让模块作者更新版本,修改代码。其中,Cache Cleaner 已有最新版本,你安装之后应该就解决了。而 JA Slideshow Lite 是否有新版本就不知道了,官方的页面似乎已经打不开了。
EasyCalcCheck Plus - Warning: The form was not found, because the template uses overrides. Please adjust the search string for the form in the file easycalccheckplus.php or delete the overrides in templates/yourtemplate/html!