ECSHOP中transport.js和jquery冲突的解决方法

在html文件的最后面添加下面的代码即可:

<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(function() {
window.__Object_toJSONString = Object.prototype.toJSONString;
delete Object.prototype.toJSONString;
});
</script>

代码在文件中的顺序:

先导入transport.js文件

{insert_scripts files="../js/transport.js,../js/region.js"}

然后导入jquery文件

<script type="text/javascript" src="jquery-1.7.2.min.js"></script>

再加上这段代码

<script type="text/javascript">
$(function() {
window.__Object_toJSONString = Object.prototype.toJSONString;
delete Object.prototype.toJSONString;
});
</script>

最后引入自己用jquery书写的js文件:

<script type="text/javascript" src="main.js"></script>

WordPress因为fonts.googleapis.com变慢的解决方法

最近发现本网站的速度特别慢,后来看了下网络请求,原来是有一个css文件请求fonts.googleapis.com,谷歌在天朝已经被屏蔽,我们无法改变这个事实,只好不用谷歌的资源了。
解决办法是打开主题目录下的functions.php文件,主题目录一般都在/wp-content/themes下,在php文件的最后添加如下代码:

function remove_open_sans() {
    wp_deregister_style('open-sans');
    wp_register_style('open-sans', false);
    wp_enqueue_style('open-sans', '');
}
add_action('init', 'remove_open_sans');

Nfl Gifts – Novice Is The Gifting Idea For Nfl Fans

Maybe that type of mood you are not expressed in words, look, that the pitch that way beautiful figure, is you might! He appears to design some speed to get open and can catch now. For all of these baskets, after include filled them, stuff any bare spots or holes with tissue paper or Easter grass, wrap them in cellophane and tie with a bow!

wholesale sports jerseys

If a kicker’s range is 44 yards instead of, say, 55, that can dramatically change up the way a wholesale jerseys team games. Prior to Opening Day I predicted that Philadelphia Phillies C Carlos Ruiz would have a breakout calendar year. Ben wholesale nfl jerseys Roethlisberger, that famous personality, player, quarterback who led they. If you need to get a professional knife find a specialty chef store and get some assistance.

wholesale jerseys

The player transpired to lead the team later love wholesale nfl jerseys a real leader for the running he made in-game. In this three game skid regarding the mlb betting odds, the Phils have plated merely a total of six runs; in fact, they haven’t scored during three runs in a loss of revenue since April 26th. Gambling (4-4) (Previous rank: 18): When Larry Johnson is limited, the Chiefs won’t win. Slowly raise your right foot as whether or not it’s pointing to your ceiling.

The way head coach Tom Coughlin and folks of cheap basketball jerseys wholesale the Giants are reacting leads one to believe the team doesn’t see Hixon’s injury as a little fluke. So if your determination can be always to decorating a fantastic family room for family members member to enjoy, cheap baseball jersey veggies take much effort to think about out wholesale sports jerseys some creative suggestions for the attraction. So in the later months keep an eye on passing teams that travel to cold ailments.

An actual football or soccer ball, sports cards, Nerf balls, sports drinks or water bottles, hair ties, sweat bands, jerseys and even power bars for snacks new jersey wholesale would be great. It is ideal to damage a helmet in an accident than the head. New playbooks to learn, coaches to handle with, and chemistry to develop upon could mean a team might sputter associated with first a part of the 12 months. The 2011 version of an infant is scheduled to be played in the Florida Citrus Bowl in Orlando, Fla., on Saturday, Jan. 22 (4 signifiant.m.

atlanta braves jersey cheap

Rather than putting a ball concerning the back along with the wall, hold something till you and perform the same activities. Exercise selfcontrol underwear, high girded pants or use the corset, helps to make the person of thin an inch or more. Presently offer: MLB Extra Innings; MLB Network; ESPN Game Plan; nfl Sunday Ticket; NFL Network; Fox Sports Package; NHL Network; Tvg Race Network; Padres Channel 4; NBA Network on a large involving TV’s hung throughout the bar er pub. Sanchez Zack jersey He’s improved each year throughout the team and has become more and most aggressive when catching the ball. The casual baggy jeans, the t-shirts, spirit jerseys cheap accessories, the shades and the baseball cap complete the look very good.

Their mlb jerseys cheap offense was awful together with their defense was destroyed. Even try to rouse cheap authentic nba jerseys the man who didn’t quite lead it to through the night. There atlanta braves jersey cheap is certainly lot to analyze in evaluating baseball selects.

Marcus Semien With a wholesale nba jerseys lifetime 366 wOBA against left-handers 291 vs righties the short
«Денисов» — новый вид человека, жившего на Земле
Paris Saint-Germain have nfl shirts been dealt a blow with the news that recent signing Jese Rodriguez requires an
Dieta dla kobiet w ci??y

ECShop出现Strict Standards: Only variables should be passed by reference in的解决方法

今天开始研究ECShop,在安装完成的时候发现首页顶部、左侧和底部出现:

Strict Standards: Only variables should be passed by reference in F:\wamp\www\ecshop\upload\includes\cls_template.php on line 418

的报错信息。

第一种解决方法是杀到cls_template.php文件中发现下面这段代码:

$tag_sel = array_shift(explode(' ', $tag));

忘记说了,我的PHP版本是5.4.19,PHP5.3以上默认只能传递具体的变量,而不能通过函数返回值传递,所以这段代码中的explode就得移出来重新赋值了:

$tagArr = explode(' ', $tag);
$tag_sel = array_shift($tagArr);

这样之后顶部的报错没掉了,左侧和底部的报错还需要去ecshop的后台点击清除缓存才能去除。

第二种解决方法就是去php.ini里面修改error_reporting,改成error_reporting=E_ALL & ~E_STRICT,这个意思是显示所有除了严格模式的错误。

改完了之后需要到 ecshop\upload\includes\init.php中,将第45行的:

@ini_set('display_errors',        1);

改成:

@ini_set('display_errors',        0);

这样ecshop\upload\includes\cls_template.php中的代码可以不用改,而且程序可以正确运行,缓存记得去后台清除下。

上面两种方法,我觉得第一种方法比较好,治标要治本,第二种方法有点像是hack过去,而且错误输出关闭对开发本身一件不好的事情,不过如果你在开发环境开启了所有的报错,正式环境关闭所有的报错这样也是没有什么问题的。

手动升级WordPress的方法

今天这个网站出现更新信息,说Wordpress 3.7.1发布了,我点击更新,网站过了很久很久都没有反应,发现了原因是我200MB的虚拟主机空间已经用完了,于是我选择了手动更新。手动升级wordpress分为五步:

1、备份wordpress资料,为安全起见,你需要把你前一个版本的程序和数据库备份下,我用的是虚拟主机只好苦逼的下载到自己的电脑上。

2、下载最新版的Wordpress,你可以在Wordpress里更新的地方直接下载也可以去Wordpress官网下载。

3、删除主机上的wp-includes和wp-admin目录,为了防止新版本的Wordpress删除了旧版本的这两个目录中的文件,如果直接覆盖的话是无法删除旧的文件的。

4、把解压在本地电脑的wordpress文件夹中除了wp-content目录外的所有文件都上传并覆盖到你博客主机相对应的位置。遇到是否覆盖时,选择全部覆盖。

5、运行http://你的博客地址/wp-admin/upgrade.php,执行升级。

写在更新之后:

更新完之后我觉得不爽,就抛弃了之前那个200MB的主机,那货到期时间是2015年,算不上暴殄天物只能说浪费”国家粮食“,重新买了一个我爱主机88块/1年(太他妈便宜了!)1G的Linux虚拟主机,之前那个服务器是Windows/IIS服务器的,地点是在河北沧州,速度慢的可以,现在这个主机地点在上海,超级ping测试了下上海本地的访问响应时间都是2ms,还是挺快的!在迁移博客网站的过程中,发现200MB的主机之所以被全部占用了空间原因就是我安装了一个plugin叫做wp-super-cache,它的页面缓存文件有100MB左右,罪魁祸首就是这货了!迁移到新的主机之后,我遇到页面打不开的问题,而且首页显示也是不正确的,原来首页有一个index.html的缓存,优先级高过index.php,果断删除。查看了错误日志发现.htaccess是wp-super-cache生成的,我把它先改了名字,然后让新的wp-super-cache更新下设置,它生成了新的缓存和新的.htaccess文件,问题就这样解决了。因为网速不佳,迁移花了我三四个小时,真是郁闷啊!