php专区

 首页 > php专区 > PHP应用 > CMS建站 > ecshop提示Strict Standards: Only variables should be passed by

ecshop提示Strict Standards: Only variables should be passed by

分享到:
【字体:
导读:
          文章给大家介绍在使用ecshop时提示Strict Standards: Only variables should be passed by reference in错误问题解决办法。 ecshop提示Strict Standards:Only variables should be passed by reference in E:/Tools/ECShop_V2.7.3_UT...

文章给大家介绍在使用ecshop时提示Strict Standards: Only variables should be passed by reference in错误问题解决办法。

ecshop提示Strict Standards:Only variables should be passed by reference in

E:/Tools/ECShop_V2.7.3_UTF8_release1106/upload/includes/cls_template.php on line 418

这个错误,搜索问题原来是php版本的问题,我是用的php5.4版本的,解决办法如下,只要418行把这一句拆成两句就没有问题了,代码如下:

  1. $tag_sel = array_shift(explode(' '$tag));  
  2. //改成:  
  3. $tag_arr = explode(' '$tag);   
  4. $tag_sel = array_shift($tag_arr); 
  5. //开源软件:phpfensi.com 

实验过,绝对可行,因为array_shift的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值.

分享到:
ecshop文件路径介绍_文件文件夹大全介绍
ECSHOP 2.7.2 文件结构及各文件相应功能介绍  ECShop_2.7.2_UTF8_Upload ┣ activity.php 活动列表 ┣ affiche.php 广告处理文件 ┣ affiliate.php 生成商品列表 ┣ api.php   API统一接口 ┣ article.php 文章内容 ┣ article_cat.php 文章分类 ┣ auction.php 拍卖前台文件 ┣ bra...
ecshop提示Strict Standards: Non-static...
下面我们一起来看在使用ecshop提示Strict Standards:Non-static method cls_image::gd_version() should not be called statically错误问题解决办法吧。 在使用ecshop时提示: Strict Standards: Non-static method cls_image::gd_version() should not be called statically in E:/wwwroot/weirenchou/includes/lib...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……