JoomFish Fatal error: Call to a member function getTable()

If you are experiencing an error saying - Fatal error: Call to a member function getTable() on a non-object, then here is a simple solution that worked for us. Simply make sure you are using a valid filename.

Corerct filename is ticket_titles.xml (not just ticket.xml)

Here is a content of that file:

<?xml version="1.0" ?>
<joomfish type="contentelement">
<name>Ticket</name>
<author>Profinvent</author>
<version>1.0</version>
<description>Definition for the Ticket component</description>
<reference>
<table name="ticket_titles">
<field type="referenceid" name="id" translate="0">ID</field>
<field type="titletext" name="title" translate="1">Title</field>
</table>
</reference>
</joomfish>