今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418 解决办法: 打开cls_template.php文件中发现下面这段代码: $tag_sel = array_shift(explode(' ', $tag));忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传…
出现Strict Standards: Only variables should be passed by reference in的解决方法 代码报错: <br /><b>Strict Standards</b>: Only variables should be passed by reference in <b>/xxxxx/xxxxApi.php</b> on line <b>41</b><br />…
本文章来给各位同学介绍关于ECshop Strict Standards: Only variables should be passed by reference in解决办法,希望此教程 对各位同学有所帮助. 错误提示 Strict Standards: Only variables should be passed by reference in D:/wamp/ecshop/includes/cls_template.php on line 406 用软件打开406行是这句话$tag_s…
今天安装ecshop的时候最上面出现了一个错误提示:Strict Standards: Only variables should be passed by reference in F:\www.xxxx.com\cls_template.php on line 418 解决办法: 打开cls_template.php文件中发现下面这段代码: $tag_sel = array_shift(explode(' ', $tag));忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传…
<?php $tag="1 2 3 4 5 6 7"; $tag_sel = array_shift(explode(' ', $tag)); print_r($tag_sel); 报错:Strict Standards: Only variables should be passed by reference in E:\work\phpcom\yinyong.php on line 3 关于引用传递(摘自手册) 可以将一个变量通过引用传递给函数,这样该函数就可以修改其参数的值…
// 报错代码:PHP Strict Standards: Only variables should be passed by reference $arr_userInfo['im_nation_cn'] = array_shift(preg_split('/,/' , $arr_userInfo['im_nation_cn']); // 修改后,不再报错的代码,原因是 PHP 自带的函数 array_shift()是以引用的方式来传参,而引用传参,只能是一个变量 $arr_im_natio…
这个错误发生在大家php调试程序用到一段代码里,那就是格式化显示出变量的函数functionrdump($arr)的第5行, 这段代码出自ecmall团队之手,但是ecmall已经很古董了,在php5.3以上版本会出这个问题,应该也和php的配置有关,只要把这一句拆成两 句就没有问题了.因为array_walk的参数是引用传递的,5.3以上默认只能传递具体的变量,而不能通过函数返回值.当然你也可以修改 php.ini 里的 error_reporting = E_ALL | E_STRICT,但…
错误原因 因为end函数的原因. end函数: mixed end    ( array &$array   ) 你可以看到end的参数是一个引用(reference),而你只能把一个变量的引用作为一个参数传给函数,而你直接把explode('.',$name)作为参数传给end函数,所以才有这个提示. 你可以这样修改,先定义一个变量,然后把这个变量传给end函数 解决方案: 打开includes/lib_main.php 把代码一 改成 代码二 即可解决错误. 代码一 function get…
Ecshop是个坑爹货,为什么tiandi会说它是个坑爹货呢,请看一下下面的官方的运行环境推荐: 服务器端运行环境推荐·php版本5.0以上5.3以下的版本(推荐使用5.2系列版本)·Mysql版本5.0及以上·空间安装zend·空间支持文件锁功能·开启GD功能·Mysql函数支持mbstring.iconv.fsockopen看见了吧,PHP5.3以下的版本,还推荐使用5.2的,尼妹的,现在哪个虚拟机还敢用5.3以下的版本?还在用5.3以下的版本?看看tiandi用的2两个主机,衡天的和wop…
问题:zencart Strict standards: Only variables should be assigned by reference in  jscript_zen_magiczoomplus.php 将符号&去掉就可以了http://stackoverflow.com/questions/11777908/strict-standards-only-variables-should-be-assigned-by-reference-php-5-4 看手册第15章: 引用是什么…
最近做项目,发现了一个报错  Only variables can be passed by reference,  意思是"只有变量能通过'引用'" 就是在代码中 使用了一个方法,这个方法的参数值传址引用的例如php的 end方法 php官网的说法 (PHP 4, PHP 5) end - 将数组的内部指针指向最后一个单元 说明¶ mixed end ( array &$array ) end() 将 array 的内部指针移动到最后一个单元并返回其值. 参数¶ array…
这个错误是变量引用引起的非致命错误,可修改php.ini文件的error_reporting = E_ALL & E_NOTICE 使其屏蔽此错误…
报错位置代码: $status->type = array_pop(explode('\\',$status->type))   (此处$status->type值原本是  APP\Jobs\InboundReportJob) 单独的取值 $status->type  以及执行explode('\\',$status->type) 都没有问题  但是explode('\\',$status->type)作为参数执行array_pop则报错: 原因:array_pop需要…
出现下面这就话: Strict Standards: Only variables should be passed by reference in E:\Tools\ECShop_V2.7.3_UTF8_release1106\upload\includes\cls_template.phpon line 418第418行:$tag_sel = array_shift(explode(' ', $tag)); 解决办法 1 5.3以上版本的问题,应该也和配置有关 只要418行把这一句拆成两句就…
安装ecshop经常会出现以下问题: 1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /usr/local/httpd2/htdocs/upload/install/includes/lib_installer.php on line 31 解决:找到install/includes/lib_installer.php中的第31行   return c…
1.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in F:\xampp\htdocs\ceshi\includes\lib_base.php on line 346 找到\lib_base.php 第 346行 将它注释  //return cls_image::gd_version(); 添加 $p = new cls_image(); return $p…
有几个网站是PHPCMS V9做的,但这两天发现一个问题,PHPCMS 的错误日志超过了20M ,后台报警,然后我看了下错误日志,其中两万多行都是一个错误,错误信息如下: 1 <?php exit;?>11-03 10:24:46 | 2048 | Only variables should be passed by reference | caches/caches_model/caches_data/content_output.class.php | 79 然后查找 根源 caches/…
随着ECSHOP的不断发展,越来越多的人成为了ECSHOP的忠实粉丝.由于每个人的服务器环境和配置都不完全相同,所以ECSHOP也接二连三的爆出了各种各样的错误信息.相信不少新手朋友在ECSHOP安装过程中都碰到过类似下面这样的错误提示吧.Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /....../install/includes/lib_instal…
在安装Ecshop的时候,遇到两个⚠️问题: Strict Standards: Non-static method cls_image::gd_version() should not be called statically in /install/includes/lib_installer.php on line 31 Strict Standards: Non-static method cls_image::gd_version() should not be called stat…
在PHP5.3.3 中安装wordpress 3.0.1 ,在安装时出现错误:Strict Standards: PHP Strict Standards: Declaration of Walker.....的解决办法: 出现错误提示:Strict Standards: PHP Strict Standards: Declaration of Walker_Page::start_lvl() should be compatible with that of Walker::start_lvl…
异常信息: ( ! ) Strict standards: Declaration of SugarEmailAddress::save() should be compatible with that of SugarBean::save() in D:\dev\server\xampp1\htdocs\sugar\include\SugarEmailAddress\SugarEmailAddress.php on line 1011 Call Stack# Time Memory Funct…
错误原因:这是由于 php 5.3版本后.要求继承类必须在父类之后定义.否则就会出现Strict Standards: PHP Strict Standards: Declaration of .... should be compatible with that of .... 的错误提示.也就是说必须父类在前,继承类在后.错误参考页面.bugs.php.net/bug.php?id=46851  上面清楚地解释了出现此类错误的具体原因.解决办法:error_reporting(E_ALL &…
Strict Standards: Non-static method ECMall::startup() should not be called statically in /htdocs/ecmall/index.php on line 22 Deprecated: Assigning the return value of new by reference is deprecated in /htdocs/ecmall/eccore/controller/app.base.php on…
今天把原来一份很老的PHP代码导入到了PaaS上,出现了许多Strict standards:Declaration of … should be compatible with that of…这样的错误,字面意思好像是说函数不匹配,看了下出错的函数,都是子类重写的基类函数.上网搜索了一下,发现许多帖子基本都抄的一样,说什么这是由于 php5.3版本后,要求继承类必须在父类之后定义,如果父类定义在前,继承类在后,就不会出现这个错误.尤其是http://bugs.php.net/bug.php?…
ECShop安装之后,在后台发现一个错误,这个错误提示的意思:mktime()方法不带参数被调用时,会被抛出一个报错提示. ECShop安装之后,在后台发现一个错误提示: Strict Standards: mktime(): You should be using the time() function instead in :\wamp\www\dqzhubao.com\shinamondadmin\sms_url.php on line 31 Strict standards: mktim…
ECSHOP编辑器Fckeditor上传图片中文名称乱码的解决方法 ECSHOP教程/ ecshop教程网(www.ecshop119.com) 2015-02-11   中文名乱码是因为:FCKeditor使用UTF-8编码,自己机子比如是Windows系统文件名使用的是GBK编码,在上传中需要,改下编码,从UTF-8到GBK ==>第一个方法,转码思路,要修改两个文件,第一个文件:.\fckeditor\editor\filemanager\connectors\php\commands.p…
ECSHOP后台登陆后一段时间不操作就超时的解决方法 ECSHOP教程/ ecshop教程网(www.ecshop119.com) 2012-05-27   客户生意比较好,因此比较忙,常常不在电脑前,经常打开后台长时间不操作,等回到电脑前操作时,每次都超时,需要从新登陆,因此,客户希望后台的登录时间尽量长些,解决这个问题主要是要在”,可尽量大些,比如“”等等!…
ecshop后台登录后,有时候会自动退出,而且还会很频繁,有的是后台操作两下就莫名退出了,有的是恰好三分钟左右登出.这让管理员很恼火,严重影响了后台使用.对于这一问题,网络上可给的解决方法各有不同.千篇一律的复制.首先这篇文章,总结囊括了网上已有的大部分解决方案:其次,也加入了博主自带的解决方法,供各位ecshop技术参考使用,总有一个适合你的网站. 方法一:网络IP常自动切换的情况修改lib_base.php文件real_ip()函数,在real_ip函数中添加绿色部分代码: function…
今天做ecshop站的时候,测试数据,发现点击订购.加入按钮都没反应,网上搜索,有些人说是修改了common.js,我将原始版本复原也没反映.后来重新安装ecshop,仔细研究发现,原来头部文件page_header.lbi被完全修改后,就点击没反应. javascript:addToCart(1)加入不了. 解决方法: 只要page_header.lbi保留以下这段代码,{insert_scripts files='transport.js,utils.js'} 点击按钮 就会有反应了. --…
ecshop加广告出现广告位的宽度值必须在1到1024之间的解决方法,这个问题是今天刚刚发现的,我就郁闷了,如今1024宽度的广告能做什么.你看看京东,天猫,非常多都是大型的横幅广告,这点ecshop有待改善更新,本来这个东西就不该限制的. 好啦.如今交大家怎么改过来,让宽度不受限制. 例如以下图.ecshop宽度限制 解决的方法例如以下: 一.打开 admin/ad_position.php这个文件.搜索1024.这里你会搜到两个地方 //在236行左右 if ($ad_width > 102…