Archive

Archive for July 18th, 2008

godaddy的在线file manage真是很好用啊

July 18th, 2008

最近买了个godaddy的主机。发现godaddy的在线文件管理真的是非常好用。

在线解压,无论是zip,tar.gz都可以解。还可以选择解压到那里,是否覆盖文件。

在线压缩,可以在线压缩文件夹。文件、文件夹转移。文件、文件夹删除。

新建,改名等等。

当然,也不少了在线上传。有时候在FTP上操作,要移动个文件夹什么的,是很麻烦的。这个在线管理真的是极其文件。

现在用的是godaddy的共享IP。等被封了再买个独立IP吧。前几天因为用了SSL,结果主域名不能换。godaddy的缺点就是主域名必须在根目录下。所以我给它换成了一个二级域名。把SSL退了。现在还没转回信用卡里呢。不过paypal已经显示退款了。估计这两天就能退回来了。

这要是国内的主机商,买个SSL再想退款,根本就不可能。不过似乎国内的一般主机商也没有SSL卖。

一个客户买了万网的虚拟主机,当初告诉他不要在那儿买了,不信。说是大品牌,信得过。结果,用着很不爽。phpcms更新个缓存都更新不了。管理面板内置的phpmyadmin 汗,我怀疑不是phpmyadmin,反正要多难用有多难用,要多丑有多丑。连个优化表的功能都没有。不知道把压了几百年的箱子底的代码拿出来用了。

心情随笔

revise:wordpress Warning: wp-includes/widgets.php on line 676

July 18th, 2008

I use godaddy hosting.

if you error code is:
Warning: Invalid argument supplied for foreach() in /home/mymaindomain/public_html/mydomain/wp-includes/widgets.php on line 676

This is due to the text widget not having the right kind of data in it. A lot of people get it after upgrading for some reason.

If you go and edit all your text widgets and then save changes, this should go away. Worst case, manually edit your database, find the widget_text row in wp_options, and remove it. Then put your text widgets back.

I narrowed it down to this line from the newer wp-config.php:

define(‘DB_CHARSET’, ‘utf8′);

I use dreamhost, maybe they’re not using utf8? In any case, after removing that line, all was well. I hope this helps someone.

I’ve found my problem :
1) There was a difference between my two database. The first was UTF-8 Unicode (utf8) and latin1_leneral_ci, but the second was UTF-8 Unicode (utf8) and utf8_bin.
2) When I’ve imported the data from the first base to the second the character of the sql file was set to utf8 instead of latin1.

So I did the following :
Set my second database to UTF-8 Unicode (utf8) and latin1_leneral_ci.
Choose latin1 character set during the backup importation on the second base.

If you ve yhe same error take a look on the character paramters of your new database, and you’ll find the solution.

Hope it’ll help somebody.

Luffy.
(WORDPRESS 2.5.1)

wordpress ,