1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    Dismiss Notice

[SOLVED] RSS: "Class 'JFabrikFeedItem' not found" and PHP error

Discussion in 'Community' started by lousyfool, Nov 8, 2018.

  1. lousyfool

    lousyfool Active Member

    Level: Community

    First time I'm trying RSS with Fabrik, but I get errors.
    Setup: Joomla 3.9, Fabrik 3.9 (incl fresh Github), RSS turned on in list and elements.
    PHP 7.2, but trouble persists with older versions as well.

    In the frontend, when clicking the RSS button above list or URL /index.php?option=com_fabrik&view=list&listid=40&format=fabrikfeed, I'm getting an error page stating "Class 'JFabrikFeedItem' not found".

    In the PHP error log I'm also getting
    Code (Text):
    Undefined property: FabrikTableElement::$attribs in /blablabla/components/com_fabrik/views/list/view.fabrikfeed.php on line 121
    Line 121 is
    Code (Text):
    $elParams = new Registry($element->attribs);
    If I replace "attribs" with "params", the PHP error log stays clean, but "Class 'JFabrikFeedItem' not found" is still thrown in the frontend.

    I've seen some older threads, according to which I've made sure that libraries/joomla/document/fabrikfeed/* exists.

    What's wrong?

    Thanks in advance!
  2. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Hmmm, we shouldn't be using fabrikfeed any more as of 3.8.

    Can you check your Fabrik system plugin ...


    ... around line 89, make sure it looks like this ...


    ... with this code:

    Code (Text):

            // The fabrikfeed doc type has been deprecated.  For backward compat, change it use standard J! feed instead
            if (version_compare($version->RELEASE, '3.8', '>=')) {
                if ($app->input->get('format') === 'fabrikfeed') {
                    $app->input->set('format', 'feed');
    As of 3.8, the built in J! RSS 'feed' doctype fixed all the bugs and problems that we originally created our fabrikfeed doctype to resolve, so now we just use that.

    So it shouldn't even be trying to load that fabrikfeed view.

    -- hugh
    lousyfool likes this.
  3. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    lousyfool likes this.
  4. lousyfool

    lousyfool Active Member

    Level: Community
    Excellent - this did the trick!

    Many thanks for the prompt reaction and fix!

Share This Page