[Vtigercrm-commits] [Vtiger development] #8224: vtigerCRM Profile not loading completely when using Module.php inside models directory in custom module vtigerCRM 6
Vtiger development
vtiger-tickets at trac.vtiger.com
Fri Sep 5 17:37:14 GMT 2014
#8224: vtigerCRM Profile not loading completely when using Module.php inside
models directory in custom module vtigerCRM 6
--------------------+---------------------------
Reporter: gohan | Owner: developer
Type: defect | Status: new
Priority: major | Milestone: 6.0.0
Component: vtlib | Version: 6.0.0 RC
Severity: Medium | Keywords: custom module
--------------------+---------------------------
I developed a plugin for vtigerCRM - MailChimp.
Now vtigerCRM Profiles is not working.
I am getting this error -
PHP Catchable fatal error: Object of class VTMailChimpLists_Module_Model
could not be converted to string in
/Applications/MAMP/htdocs/vtiger/mail6/includes/runtime/cache/Connector.php
on line 24
How to generate the issue ?
1. Create a new custom module
2. Create a folder - models inside the custom module directory. Copy and
paste the Module.php file from Vtiger Module.
3. Change the Class name in Module.php to <modulename>_Module_Model
4. Go to CRM Settings -> Profiles -> Any Profiles Detail view.
You can see that it wont get loaded fully.
I wanted to show some links at the left side of module. Thats why i am
using this Module.php file. If i removed the Module.php file from models
directory, everything works fine
If I am wrong at something, please explain how to correct it.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8224>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list