存档于 '开源系统'
解决Magento“Must specify JSON encoded source for decoding”的问题!
发表时间:31. 7月, 2010 作者:Freddie.
在更改magento属性系列的时候,出现了这样的问题:
“Must specify JSON encoded source for decoding”
下面是报错的内容:
#0 /home/mycpanelusername/public_html/app/code/core/Mage/Adminhtml/controllers/Catalog/Product/SetController.php(99): Zend_Json_Decoder::decode(NULL)
#1 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(349): Mage_Adminhtml_Catalog_Product_SetController->saveAction()
#2 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php(143): Mage_Core_Controller_Varien_Action->dispatch(’save’)
#3 /home/mycpanelusername/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(174): Mage_Core_Controller_Varien_Router_Admin->match(Object(Mage_Core_Controller_Request_Http))
#4 /home/mycpanelusername/public_html/app/Mage.php(447): Mage_Core_Controller_Varien_Front->dispatch()
#5 /home/mycpanelusername/public_html/index.php(52): Mage::run()
#6 {main}
Google了一下,问题解决了:
Try turning off your cache in magento (in the admin->System->Cache Management->Disable All Cache) and then navigate to your cache directory (\var\cache) and manually delete everything in that directory. You can delete the stuff in (\var\session) for [...]
详细内容
WordPress多语言插件:qTranslate
发表时间:16. 4月, 2010 作者:Freddie.
qTranslate是一款WordPress多语言插件,用于建立多种语言的WordPress文章,是一位移居德国的中国网友制作的。
下载地址是:http://wordpress.org/extend/plugins/qtranslate/
安装没什么好说的。这里要强调一点的是,一定要下载你wordpress版本对应版本的qtranslate,不然就麻烦了。
安装完后,在后台简单的设置一下就可以使用了。如果要在前台显示切换器,到主题下的widgets里面,将它加到你需要的地方就OK了。
如果我需要定制切换器的外观和位置呢?例如像本站一样放在右上角。
只需两步就可以搞定!
1.找到你主题文件夹下面的header.php文件(放到右上角,你可以相应的变动),编辑它,找到相应的位置,加上下面的代码
<?php echo qtrans_generateLanguageSelectCode(‘both’); ?>
这里的”both”你有三种选择,text,image,both –即显示文字,图片,图片文字一起显示。
2.因为默认的widget是垂直排列的,现在我要把它改为水平排列的,找到你所使用的主题的style.css文件,编辑它,加上以下代码:
.qtrans_language_chooser { list-style-type:none }
.qtrans_language_chooser li { float:left; margin-right:3px }
好了,大功告成拉·~~
哦,最后怎么能忘记介绍下插件作者了呢,附上作者网站:http://www.qianqin.de/
详细内容
CentOS 5.3安装WordPress 2.7.1
发表时间:18. 12月, 2009 作者:Freddie.
1. 最小化安装centos 5.3
2. yum install php mysql httpd mysql-server php-mysql
3. 下载最新版本的 WordPress,使用 wget http://cn.wordpress.org/wordpress-2.7.1-zh_CN.zip
4. 解压使用 tar zxvf latest.tar.gz,得到 wordpress 目录
5. 将该目录移动到/var/www目录下,使用 mv wordpress /var/www/
6. cd /var/www/wordpress
7. 拷贝wp的配置文件, cp wp-config-sample.php wp-config.php
8. vim wp-config.php
9. 修改如下参数 // ** MySQL settings ** //
define(’DB_NAME’, ‘wordpress’); // 数据库名
define(’DB_USER’, ‘wpuser’); // 您的 MySQL 用户名
define(’DB_PASSWORD’, ‘wpuser′); // …以及密码
define(’DB_HOST’, ‘localhost’); // 99% 你不用修改
10. /etc/init.d/mysqld [...]
详细内容
magento添加多货币 How to Setup a Dual Currency Magento Shop
发表时间:18. 12月, 2009 作者:Freddie.
Login as admin and select System->Configuration, then select ’Currency Setup’ from GENERAL section,
then select Base currency, Default display currency, allowed currencies (press Control Key and Click the needed currencies) and ’Save Config’
Now come to “System->Manage Currencies’ menu
Click in Import currencies to load the exchange rate(s).
You are done. Visit the frontend and reload (you may need [...]
详细内容
显示最新评论的扩展Magento
发表时间:18. 12月, 2009 作者:Freddie.
Key:magento-community/Morningtime_LatestReviews
Morningtime Latest Reviews
Add a table of latest reviews to your homepage CMS. Or display a product listing sorted by ratings.
== HOW DOES IT WORK? ==
You need to have products with reviews/ratings. This extensions can then show the reviews in a list.
== INSTALLATION ==
- Get key from Magento Connect
- Install via Connect Manager
- Refresh cache
- Re-login [...]
详细内容
magento迁移服务器问题(后台无法显示订单)
发表时间:17. 12月, 2009 作者:Freddie.
由于工作需要,要把magento站更换一个服务器~
google了一下,已经有很多教程了, 不过 都是一篇文章,其它的都是转贴,汗~~
看了一下,它上面写的步骤比较烦琐,而且我觉得可行性也不是很高,于是自己寻思,看能不能直接点整站拷贝过去~~
然后动手开始行动~~
1.备份数据库,这个当然要最先做~
2.直接把网站根目录打个包~ 然后放在web服务器上某个角落
3.到新服务器上架好lamp,然后直接到html目录下 wget 旧服务器上的网站数据(就是我们刚刚打的包)~
4.直接解压,ok拉~~
问题: 好景不长,用了一会,发现问题了!!
网站的其它功能一切正常,就是在点order的时候没反正~ 系统找不到网页!
仔细看了下,不是404错误,可以肯定不是url的问题,那只是是配置的问题了咯~
后来终于在php.ini里找到答案~~~~~
里面有个memory_limit 默认值是32M 这显然是不够滴~ 我是独立服务器,所以直接改为了256M~~
vi /etc/php.ini –编辑php.ini
/memory –查找memory
ok,拉, 一切正常了~~

