使用 vtlib 2.1 为 vtiger CRM 5.0.4 创建新模块
我使用 vtlib 2.1 api 文档在 vtigerCRM 中创建了一个新模块 如以下链接中提供的。 http://wiki.vtiger.com/archives/index.php/Vtiger_CRM_5_Developer_Guide/ VTLIB
尽管该模块似乎已成功创建,但当我尝试添加新记录时,出现以下错误。
( ! ) WebServiceException: Permission to perform the operation is denied in C:\xampp\htdocs\dnbcrm\include\Webservices\Retrieve.php on line 30
Call Stack
# Time Memory Function Location
1 0.0037 338824 {main}( ) ..\index.php:0
2 0.8090 21393040 include( 'C:\xampp\htdocs\dnbcrm\modules\TargetModule\Save.php' ) ..\index.php:693
3 0.8209 21498512 CRMEntity->save( ) ..\Save.php:21
4 0.9772 23107304 VTEventsManager->triggerEvent( ) ..\CRMEntity.php:859
5 0.9773 23107304 VTEventTrigger->trigger( ) ..\VTEventsManager.inc:118
6 1.0133 23415848 VTWorkflowEventHandler->handleEvent( ) ..\VTEventTrigger.inc:119
7 1.0218 23433280 VTEntityCache->forId( ) ..\VTEventHandler.inc:51
8 1.0218 23433600 VTWorkflowEntity->__construct( ) ..\VTEntityCache.inc:83
9 1.0218 23433992 vtws_retrieve( ) ..\VTEntityCache.inc:16
I have created a new module in vtigerCRM using the vtlib 2.1 api doc
as provided in the following link.
http://wiki.vtiger.com/archives/index.php/Vtiger_CRM_5_Developer_Guide/VTLIB
Though the module appears to have been created successfully I am getting the following error when I try to add a new record.
( ! ) WebServiceException: Permission to perform the operation is denied in C:\xampp\htdocs\dnbcrm\include\Webservices\Retrieve.php on line 30
Call Stack
# Time Memory Function Location
1 0.0037 338824 {main}( ) ..\index.php:0
2 0.8090 21393040 include( 'C:\xampp\htdocs\dnbcrm\modules\TargetModule\Save.php' ) ..\index.php:693
3 0.8209 21498512 CRMEntity->save( ) ..\Save.php:21
4 0.9772 23107304 VTEventsManager->triggerEvent( ) ..\CRMEntity.php:859
5 0.9773 23107304 VTEventTrigger->trigger( ) ..\VTEventsManager.inc:118
6 1.0133 23415848 VTWorkflowEventHandler->handleEvent( ) ..\VTEventTrigger.inc:119
7 1.0218 23433280 VTEntityCache->forId( ) ..\VTEventHandler.inc:51
8 1.0218 23433600 VTWorkflowEntity->__construct( ) ..\VTEntityCache.inc:83
9 1.0218 23433992 vtws_retrieve( ) ..\VTEntityCache.inc:16
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
互联网上的人们声称要发出
Vtiger_Module::initWebservice()
来解决这个问题,但实际上它对我不起作用。不管怎样,尝试一下,也许你会比我幸运。People around the Internet state to issue a
Vtiger_Module::initWebservice()
to solve this problem, but actually it didn't work for me. Anyway try it out, maybe you'll be luckier than me.