在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案
2015-10-27 09:13
597 查看
在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案« |
威盾防火墙 2014-11-09 |
ecshop 问题一:商城首页报错 Strict Standards: Only variables should be passed by reference in D:\wamp\ecshop\includes\cls_template.php on line 422 解决方法: 找到提示错误的文件 cls_template.php 及行号 把 $tag_sel = array_shift(explode(' ', $tag)); 改成: $tag_arr = explode(' ', $tag); $tag_sel = array_shift($tag_arr); 并且删除 D:\wamp\www\ecshop\temp\caches下所有的文件 问题二:后台首页报错 Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:\wamp\www\ecshop\includes\lib_base.php on line 346 解决办法 找到D:\wamp\www\ecshop\includes\cls_image.php文件 搜索 function gd_version 改成 static function gd_version 问题三:后台-商店设置 Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\sms_url.php on line 31 Strict Standards: mktime(): You should be using the time() function instead in D:\wamp\www\ecshop\admin\shop_config.php on line 32 解决办法 根据错误提示 把 mktime() 改成 time() ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ecmall 问题描述:打开商城首页及后台出现乱码及以下一系列的错误信息 Strict Standards: Non-static method ECMall::startup() should not be called statically in D:\wamp\www\ecmall\index.php on line 22 Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\eccore\controller\app.base.php on line 141 Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\includes\ecapp.base.php on line 143 Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\ecmall\includes\ecapp.base.php on line 149 Strict Standards: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in D:\wamp\www\ecmall\app\frontend.base.php on line 365 Strict Standards: Declaration of Message::display() should be compatible with FrontendApp::display($tpl) in D:\wamp\www\ecmall\eccore\controller\message.base.php on line 332 [b]Strict Standards: [/b]Non-static method Conf::get() should not be called statically, assuming $this from incompatible context inD:\wamp\www\ecmall\app\frontend.base.phpon line 446 解决办法 到ecmall安装目录下 找到 ecmall/eccore/ecmall.php 把 function get( 改成 static function get( 把 function startup( 给成 static function startup( 到php安装目录下找到php.ini 把 error_reporting = E_ALL 改成 error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT 重启服务 |
相关文章推荐
- php try catch
- 如何在Webstorm/Phpstorm中设置连接FTP,并快速进行文件比较,上传下载,同步等操作(远程开发)
- PHPCMS V9缩略图模糊解决方法
- php中opcache的使用详解
- php+ajax实现无刷新的新闻留言系统
- php邮件发送的两种方式
- 一个完整的php文件上传类实例讲解
- PHP的APC模块实现上传进度条
- php过滤所有的空白字符(空格、全角空格、换行等)
- php常量详细解析
- php使用ZipArchive函数实现文件的压缩与解压缩
- 详解PHP序列化反序列化的方法
- yii2.0 rbac权限操作
- php读取和保存base64编码的图片内容
- editplus生成页面框架
- 非常实用的PHP常用函数汇总
- 学习Laravel遇到的第一个坑
- PHP发送邮件标题乱码的解决
- phpstorm注册码:
- tp框架搭建