zoukankan      html  css  js  c++  java
  • 在PHP5.3以上版本运行ecshop和ecmall出现的问题及解决方案

    ecshop

    问题一:商城首页报错 Strict Standards: Only variables should be passed by reference in D:wampecshopincludescls_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:wampwwwecshop empcaches下所有的文件

    问题二:后台首页报错 Strict Standards: Non-static method cls_image::gd_version() should not be called statically in D:wampwwwecshopincludeslib_base.php on line 346

    解决办法

    找到D:wampwwwecshopincludescls_image.php文件

    搜索 function gd_version 改成 static function gd_version

    问题三:后台-商店设置 

    Strict Standards: mktime(): You should be using the time() function instead in D:wampwwwecshopadminsms_url.php on line 31
    Strict Standards: mktime(): You should be using the time() function instead in D:wampwwwecshopadminshop_config.php on line 32

    解决办法

    根据错误提示 把 mktime() 改成 time()

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    ecmall

    问题描述:打开商城首页及后台出现乱码及以下一系列的错误信息

    Strict Standards: Non-static method ECMall::startup() should not be called statically in D:wampwwwecmallindex.php on line 22
    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwecmalleccorecontrollerapp.base.php on line 141
    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwecmallincludesecapp.base.php on line 143
    Deprecated: Assigning the return value of new by reference is deprecated in D:wampwwwecmallincludesecapp.base.php on line 149
    Strict Standards: Declaration of FrontendApp::jslang() should be compatible with ECBaseApp::jslang($lang) in D:wampwwwecmallappfrontend.base.php on line 365
    Strict Standards: Declaration of Message::display() should be compatible with FrontendApp::display($tpl) in D:wampwwwecmalleccorecontrollermessage.base.php on line 332

    Strict StandardsNon-static method Conf::get() should not be called statically, assuming $this from incompatible context inD:wampwwwecmallappfrontend.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 重启服务

    ===========================================================

    后台:http://localhost/ecshop/admin

    =============================================

    1.

    Fatal error: Call to undefined function curl_init() in........这种错误提示的解决办法!

    别急!首先得声明,这是因为php的扩张函数没有启动,一样重新启动我们wamp

    ampCall to undefined function curl_init()解决!

    ================================================================

  • 相关阅读:
    x-www-form-urlencoded与multipart/form-data区别
    objc_msgSend method_getTypeEncoding 与 @encode
    历史文件备份,原文件已损失
    和安全有关的那些事(非对称加密、数字摘要、数字签名、数字证书、SSL、HTTPS及其他)
    HTTP权威指南 目录
    Makefile 与tab
    NSString+URLParser NSScanner
    (转)虚拟文件系统(VFS)浅析
    Linux套接字与虚拟文件系统(1):初始化和创建
    linux内核中的文件描述符(二)--socket和文件描述符
  • 原文地址:https://www.cnblogs.com/vip-deng-vip/p/7536137.html
Copyright © 2011-2022 走看看