Month: February 2012
使用kayako 4.0 创建 模块出现 SWIFT_Module::RetrieveSetupDatabaseObjectUse Kayako 4.0 to create modules shows SWIFT_Module::RetrieveSetupDatabaseObject
- by chenxue4076
- 13 years ago
[User Error]: #0 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/modules/core/admin/class.Controller_Module.php(181): SWIFT_Module::RetrieveSetupDatabaseObject(‘customer’) #1 [internal function]: Controller_Module->Install(‘customer’) #2 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/MVC/class.SWIFT_Controller.php(335): call_user_func_array(Array, Array) #3 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/Module/class.SWIFT_Module.php(164): SWIFT_Controller::Load(Object(SWIFT_Interface), Object(SWIFT_Module), Object(SWIFT_Router), false) #4 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(765): SWIFT_Module->ExecuteController() #5 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(919): SWIFT->Initialize() #6 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/swift.php(154): SWIFT::GetInstance() #7 /home/daniel/customer.topcmm.com/htdocs/helpdesk/admin/index.php(28): require_once(‘/home/daniel/cu…’) #8 {main} Invalid data provided (library/class.SWIFT.php:768) 出现这个问题是因为 文件名不能出现大写,如下例子 如果你的配置文件名是这样的 class.SWIFT_SetupDatabase_Customer.php 就会出现这个错误,将此文件名称改为 class.SWIFT_SetupDatabase_customer.php 就是将Customer -> customer 这样这个错误就消失了. 不知道对你们有没有帮助呢 [User Error]: #0 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/modules/core/admin/class.Controller_Module.php(181): SWIFT_Module::RetrieveSetupDatabaseObject(‘customer’) #1 [internal function]: Controller_Module->Install(‘customer’) #2 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/MVC/class.SWIFT_Controller.php(335): call_user_func_array(Array, Array) #3 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/Module/class.SWIFT_Module.php(164): SWIFT_Controller::Load(Object(SWIFT_Interface), Object(SWIFT_Module), Object(SWIFT_Router), false) #4 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(765): SWIFT_Module->ExecuteController() #5 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(919): SWIFT->Initialize() #6 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/swift.php(154): SWIFT::GetInstance() #7 /home/daniel/customer.topcmm.com/htdocs/helpdesk/admin/index.php(28): require_once(‘/home/daniel/cu…’) #8 {main} Invalid data provided (library/class.SWIFT.php:768) This problem occurs because the File name should not write by uppercase,For Example If your file name is class.SWIFT_SetupDatabase_Customer.php ,it occurs,Change name to class.SWIFT_SetupDatabase_customer.php ,It would be OK. just change Customer to customer ,problem disappear.Does it help you? (2481)
查看全文ixwebhosting安装shopex在ready页面停止出现500 Internal server errorixwebhosting install shopex stop at ready page shows 500 Internal server error
- by chenxue4076
- 13 years ago
我看到网上很多人在使用shopex安装商城时出现在step=ready时停止,我也遇到了这个问题,查看状态是看到500 Internal server error . 先说说在ixwebhosting提供的主机上解决方法, 使用tools中的 File Manager 进入 文件管理页面,点击页面底部的 WGET, 在上面选择文件的放置路径,下面输入 shopex 的真实下载地址, 点击get, 就可以把shopex直接下载到网站上,在点击这个压缩文件,右边使用解压缩,使用这种方式将shopex的代码放置在网站上, 在进入安装步骤 就可以成功了,我是这样安装成功的, 在说说使用ftp上传的方式吧,只能是猜想,可能是因为上传编码的问题,你是不是使用的二进制上传的呢,如果是的,我也希望了解你们是如何安装成功的,留下你的方法吧。I saw a lot of people cannot install successful and stop at “strp=ready” page, when to install shopex. I have this problem too, and it shows 500 Internal server error . when debug it. let me show you the solution on ixwebhosting: use “tools” -> File Manager ,click WGET on the buttom of page,and select a path to store shopex zip file. and input the real path of shopex,and click get. and it will download shopex to your web site. unzip it. and install step by step,it will be installed successfull. If you use ftp to upload shopex file, I suggest you upload it by ASCII . Holp it can help you. (4519)
查看全文javascript(js)定义二维(多维)数组 在静态页面html(htm)中的数据设置与使用Javascript(js) Define Two-dimensional(Multi-dimensional) Array Set and Use On html(htm) Page
- by chenxue4076
- 13 years ago
有的时候我们做静态页面需要设置数据,但又希望能够简单配置就可以,这个时候使用js数组来实现数据保存是最容易的事情了,下面简单举个例子来说明解决方法。 js 二维数组代码 var datalist = array(); datalist[0] = array(‘这里是数据1标题’,’这里是数据1的内容’,’数据1的作者’); datalist[1] = array(‘这里是数据2标题’,’这里是数据2的内容’,’数据2的作者’); 使用的时候可以直接使用 datalist[0][0]这样,也可以设置循环 使用js实现循环 var datanum = datalist.length; for(var i=0;i<datanum;i++){ document.write(‘ 标题:’+datalist[i][0]+’; 数据:’+datalist[i][1]+’;作者:’+datalist[i][2]+’ ‘); } 上面的数组是经过验证正确的使用方法 . 今天新增一个以对象方式添加的js 数组。看下面例子 var flashList = [ {“id”: 1, “showName”: “Publish Chat”, “flashName”: “videos/publish-chat.swf”, “pictureName”: “publish-chat-bg”}, {“id”: 2, “showName”: “General Features”, “flashName”: “videos/main-feature.swf”, “pictureName”: “features-bg”}, ]; for(var id in flashList) { alert(flashList[id].id); alert(flashList[id].showName); } 后面的这种方式 是我推荐使用的方式,没办法,工作需要。原文转至这里。 Sometimes we need set data on html page ,and hope it simple, use js is the simplest way. look this. js Two-dimensional array code var datalist = array(); datalist[0] = array(‘title 1′,’data 1′,’author 1’); datalist[1] = array(‘title 2′,’data 2′,’author 2’); you can use datalist[0][0] ,and alse use a loop use js to loop var datanum = datalist.length; for(var i=0;i<datanum;i++){ document.write(‘ Title:’+datalist[i][0]+’; Data:’+datalist[i][1]+’; Author:’+datalist[i][2]+’ ‘); } it validate right to use. Another way to add js array as an Object. Look this. var flashList = [ {“id”: 1, “showName”: “Publish Chat”, “flashName”: “videos/publish-chat.swf”, “pictureName”: “publish-chat-bg”}, {“id”: 2, “showName”: “General Features”, “flashName”: “videos/main-feature.swf”, “pictureName”: “features-bg”}, ]; for(var id in flashList) { alert(flashList[id].id); alert(flashList[id].showName); } This way I suggest everyone to use. However Work needs. Text has been transferred to here. (663)
查看全文