Undefined property:stdClass::$id in ../models/ckforms.php

Questions and bug reports for current release of CKForms

Undefined property:stdClass::$id in ../models/ckforms.php

Postby nkh883 » Fri Dec 04, 2009 3:22 pm

Hi everybody,
The website is running Joomla152, CKForms 1.3.3 on an Unix server

I've just got the messages :
Notice: Undefined property: stdClass::$hits in /mnt/161/sdb/e/4/ag1ter/joomla152/components/com_ckforms/models/ckforms.php on line 248

Notice: Undefined property: stdClass::$id in /mnt/161/sdb/e/4/ag1ter/joomla152/components/com_ckforms/models/ckforms.php on line 248

and then the normal output display.

It happens only for the newest out of 19 Ckformsdata elements. it's a not blocking issue.

I've not modified the ckforms.php
Lines 239-257 :
/**
* Save Hits
* @return void
*/
function addHits()
{
$dba =& JFactory::getDBO();

$ckform = $this->getData();

$query = " update #__ckforms set hits = ".($ckform->hits + 1). " where id = ".$ckform->id;

$dba->Execute($query);
}

/**
* Save data
* @return void
*/

Is it possible to filter the notice messages ?
Thanks
nkh883
 
Posts: 3
Joined: Sat Nov 21, 2009 10:29 am
Top

Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 0 guests