$table_field, $body); } }else{ ${$primary} = 0; $body = $connection->front_edit_template; $row =& JTable::getInstance(str_replace($mainframe->getCfg('dbprefix'), '', $connection->tablenames), 'Table'); $a = 12; $row->load(${$primary}); }when i want to edit a record and clicked before the edit link indeed there is no error message, but editing is impossible. there is no record which i can edit. i only see a blank page (with template) an d two buttons, save and cancel.the only link that got functionality is the delete link.what can i do to create a new record? and what can i do to edit a record set?when there is no idea, perhaps you got a link where a tutorial or something like this is explained.thanks for your support!ismx"> how to create the new_record link? - Forums

Forums

how to create the new_record link?

ismx.studio 26 Nov, 2008
hey there,

thats my first posting here, sorry when it's not the correct place for my question.
i'm using the connectivity since a few days and the possibilities are in my opinion amazing.
but when i want to create a new record link for the frontend there will be always the same error message
like this one

Fatal error: Call to a member function load() on a non-object in C:\xampp\htdocs\_hpc\components\com_chronoconnectivity\chronoconnectivity.php on line 213



the code from 203 line to 214 shows:
if(JRequest::getVar('task') == 'editrecord'){
		$body = $connection->ccCache1;						
		foreach($table_fields as $table_field){
			$body = str_replace("{".$table_field."}", $row->$table_field, $body);
		}
	}else{
		${$primary} = 0;
		$body = $connection->front_edit_template;	
		$row =& JTable::getInstance(str_replace($mainframe->getCfg('dbprefix'), '', $connection->tablenames), 'Table');
		$a = 12;
		$row->load(${$primary});
	}
when i want to edit a record and clicked before the edit link indeed there is no error message, but editing is impossible. there is no record which i can edit. i only see a blank page (with template) an d two buttons, save and cancel.

the only link that got functionality is the delete link.

what can i do to create a new record? and what can i do to edit a record set?

when there is no idea, perhaps you got a link where a tutorial or something like this is explained.
thanks for your support!

ismx
GreyHead 26 Nov, 2008
Hi ismx.studio,

Max will be able to answer this better. It looks to me as though the 'task' isn't = 'editrecord' so you are getting into the second part of the if . . . else . . . and ${$primary} is set to 0 so $row->load(0) isn't finding anything . . .

Bob
Max_admin 26 Nov, 2008
Hi ismx,

show me a screenshot for your "frontend permissions" tab, show me the "frontend edit template" code, show me your the structure of the database table which you are connecting to!

Regards
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.