[Vtigercrm-developers] Error Importing custom module
Joe Bordes
joe at tsolucio.com
Wed Sep 25 21:58:31 UTC 2013
Quick look: fieldnames are wrong, there are capital letters:
<fieldname>PetsName</fieldname>
As a rule of thumb, in the majority of cases fieldname and columname
should be the same, in lowercase with no special charcters
Joe
TSolucio
El 25/09/13 23:48, Oscar Medina escribió:
>
>
> Thanks Joe!
>
> I appreciate you looking at this. I'm not sure what I did wrong with
> my create script, but I hadn't noticed that the Manifest file was
> missing fields because I just quickly looked at the SQL at the top of
> the manifest. I updated it and tried another import. It appears that
> it was imported successfully, but I'm still getting an error when I
> try to configure the module. Here's the error I'm getting now.
>
> *Fatal error*: Uncaught exception 'WebServiceException' with message
> 'Permission to perform the operation is denied for name' in
> /home/vincesb/public_html/vtiger/include/Webservices/VtigerWebserviceObject.php:50
> Stack trace: #0
> /home/vincesb/public_html/vtiger/include/Webservices/Utils.php(427):
> VtigerWebserviceObject::fromName(Object(PearDatabase), 'Pets')
>
> #1
> /home/vincesb/public_html/vtiger/modules/Settings/LayoutBlockList.php(167):
> vtws_getModuleHandlerFromName()
>
> #2
> /home/vincesb/public_html/vtiger/modules/Settings/LayoutBlockList.php(96):
> getFieldListEntries('Pets', Object(Users))
>
> #3 /home/vincesb/public_html/vtiger/index.php(749):
> include('/home/vincesb/p...')
>
> #4 {main} thrown in
> */home/vincesb/public_html/vtiger/include/Webservices/VtigerWebserviceObject.php*
> on line *50*
>
> I have also attached the updated Import.zip, just in case.
>
> Appreciate anyone's help.
>
>
> -----Original Message-----
> From: Joe Bordes
> Sent: Sep 22, 2013 10:07 AM
> To: vtigercrm-developers at lists.vtigercrm.com
> Subject: Re: [Vtigercrm-developers] Error Importing custom module
>
> Hi,
>
> I had a quick look at the manifest file. There are no fields!! So
> you must have done something wrong with the definitions. Most
> probably you are using some capital letters or none accepted
> special characters. Field names should be all lowercase, and
> column fields MUST be in lowercase
>
> <fieldname>PetsName</fieldname>
>
> try reviewing that
>
> Joe
> TSolucio
>
>
> El 21/09/13 22:17, Oscar Medina escribió:
>> I'm a newbie creating a new module for a friend as a favor. The PHP environment is new to me, I typically work with .NET and Java.
>>
>> I created the attached Module, but I'm getting an error when I try to import.
>>
>> "Fatal error: Call to a member function getModuleName() on a non-object in /home/southlr/public_html/SDTM/vtlib/Vtiger/Filter.php on line 130"
>>
>> In addition, the module DOES appear in the list of imported modules but when I attempt to configure I get the following error.
>>
>>
>> Fatal error: Uncaught exception 'WebServiceException' with message 'Permission to perform the operation is denied for name' in /home/southlr/public_html/SDTM/include/Webservices/VtigerWebserviceObject.php:50 Stack trace: #0 /home/southlr/public_html/SDTM/include/Webservices/Utils.php(427): VtigerWebserviceObject::fromName(Object(PearDatabase), 'Pets') #1 /home/southlr/public_html/SDTM/modules/Settings/LayoutBlockList.php(167): vtws_getModuleHandlerFromName() #2 /home/southlr/public_html/SDTM/modules/Settings/LayoutBlockList.php(96): getFieldListEntries('Pets', Object(Users)) #3 /home/southlr/public_html/SDTM/index.php(749): include('/home/southlr/p...') #4 {main} thrown in /home/southlr/public_html/SDTM/include/Webservices/VtigerWebserviceObject.php on line 50
>>
>>
>> I'd appreciate any guidance or assistance.
>>
>> Oscar
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> http://www.vtiger.com/
>
>
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130925/287129cc/attachment.html>
More information about the vtigercrm-developers
mailing list