[Vtigercrm-developers] vtiger custom module error

Prasad prasad at vtiger.com
Mon Aug 2 00:34:42 PDT 2010


HI James,

Make sure you have implemented (or overridden) track_view function in your
module class file.

function track_view($user_id, $current_module,$id='') {
    // ...
}

Regards,
Prasad

On 8/2/10, Mutuku Ndeti <jnmutuku at gmail.com> wrote:
>
> *I have *created a custom module with vtlib. when I try creating a new
> record, I get the error below. what could be the cause?
> *
> Fatal error*: Uncaught exception 'Exception' with message 'result is not
> an object' in include\database\PearDatabase.php:788 Stack trace: #0
> data\Tracker.php(95): PearDatabase->query_result(false, 0, 'entityname') #1
> data\CRMEntity.php(1091): Tracker->track_view('1', 'test', '25', '') #2
> F:\xampp\htdocs\kazi560\index.php(545): CRMEntity->track_view('1', 'test',
> '25') #3 {main} thrown in *include\database\PearDatabase.php* on line *788
>
> James
> *
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20100802/08c6105e/attachment-0002.html 


More information about the vtigercrm-developers mailing list