Magento错误:Exception printing is disabled by default for security reasons.

Exception printing is disabled by default for security reasons.
Error log record number: XXXXXXXXXXXXXXX

如果你是看到这样的错误,请用下面的方法解决。

1.在网站根目录创建tmp文件夹,或者使用命令

mkdir tmp

2.找到/errors/local.xml.sample改成/errors/local.xml,或者

cp /errors/local.xml.sample /errors/local.xml

3.找到lib/Zend/Cache/Backend/File.php
Change

protected $_options = array(
'cache_dir' => 'null',

to

Tags: 

Phonegap的一些设置

Phonegap相关
1. 隐藏顶部的状态栏
在xxx-Info.plist中新增一项属性:"Status bar is initially hidden" = YES;此外,还可以增加其他的属性,例如Launch image等。

2. 用户滑动Webview时,正常情况下会超出边界然后弹回来,也就是Bounce,可以通过Cordova.plist中的属性来实现了。
*对于老版本的,在AppDelegate.m中的webViewDidFinishLoad方法中添加:

for (id subview in theWebView.subviews)
        if ([[subview class] isSubclassOfClass: [UIScrollView class]])
            ((UIScrollView *)subview).bounces = NO;

3. Phonegap 内购 IAP插件
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager

Tags: 

在phonegap实现跨域的方法

在phonegap 中是可以使用jquery 的$.ajax 来实现跨域的,但仅仅是这样是不够的,还需要在项目/Supporing Files/PhoneGap.plist的ExternalHosts 中添加一项,把你要跨的域名或者ip加入。

Tags: 

Joomfish和K2的整合问题

很多时候,装完这两个组件之后,会发现,在Joomfish里面看不到对应的k2的翻译列表,很多人为此都很不理解,为什么这两个这么通用的组件不能整合呢?

其实不然,这两个组件多多少少能整合在一起的,关键是两者的安装顺序。

安装顺序
第一个安装的应该是Joomla,(PS:这不废话么);
第二个安装。。。
第N个安装Joomfish;
第N+1个安装k2;
第N+2。。。

相信我这样解释是比较明白的了,就是Joomfish要安装在k2之前;

如果你不幸的把顺序安装错了,没事,这里有一个zip包,你只要把它解压到对应的文件夹下面,就可以了;
文件夹路径:

administrator/components/com_joomfish/contentelements/

zip包见附件。

Tags: 

如何解决Magento出现的404错误

Magento安装之后,进入Magento Connect的时候,会出现404的错误,经查证,downloader文件夹是存在的,那么到底是哪里出了问题,导致404了呢。

搜索Magento官网的wiki,发现了一个比较好的解决方案,官网的wiki提供了一个php script,用来执行chmod以及清缓存的工作。

下面贴出这段代码,供大家参考:

Tags: 

Pages