Guest
29 Nov 2013 05:17

Hey guys,

We have a very weird problem. My co-worked dosen't get this error when he edits a record and save it but I do. Do you have any ideas why?

index.php?option=com_cobalt&view=form&type_id=0§ion_id=0

Cobal 8 Submit menu type

type ID 0, Section ID 0

This is the error

PHP Fatal error: Call to a member function load() on a non-object in /home/components/com_cobalt/controllers/form.php on line 232

$table_cat = JTable::getInstance('Category', 'CobaltTable');

line 232: $table_cat->load($category);

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
02 Dec 2013 00:57

In last Joomla 3.2 the error of collision of table classes with the same name is presented again. this may be the reason. I have renamed this class and hope that it will be fixed witht he next update on thursday.

But also check why you do not have section ID and type ID in URL.


Guest
02 Dec 2013 04:39

Thanks for your support, the section ID and type ID are send with the form data. I'm sorry that the information I posted was a bit unclear.


Guest
02 Dec 2013 06:56

This solved it for us!

require_once(JPATH_ROOT.'/administrator/components/com_cobalt/tables/category.php');//quick fix

$table_cat = new CobaltTableCategory($db);//quick fix

Sergey
Total posts: 13,748
02 Dec 2013 23:39

Yes, this should be the fix.

Powered by Cobalt