HI James,<br><br>Make sure you have implemented (or overridden) track_view function in your module class file.<br><br><span style="font-family: courier new,monospace;">function track_view($user_id, $current_module,$id='') { <br>
// ...<br>}</span><br><br>Regards,<br>Prasad<br><br><div><span class="gmail_quote">On 8/2/10, <b class="gmail_sendername">Mutuku Ndeti</b> <<a href="mailto:jnmutuku@gmail.com">jnmutuku@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<b>I have </b>created a custom module with vtlib. when I try creating a new record, I get the error below. what could be the cause?<br><b><br>Fatal error</b>: 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 <b>include\database\PearDatabase.php</b> on line <b>788<br><br>James<br></b>
<br>_______________________________________________<br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br>