CMS, 原创

使用kayako 4.0 创建 模块出现 SWIFT_Module::RetrieveSetupDatabaseObjectUse Kayako 4.0 to create modules shows SWIFT_Module::RetrieveSetupDatabaseObject

[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?

(2460)

Author Since: Jul 05, 2018

Related Post