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

0 - Class 'FabrikWorker' not found

Discussion in 'Community' started by hjkok50, Nov 2, 2017.

  1. hjkok50

    hjkok50 Member

    Level: Community
    Hi,

    I have a problem with Fabrik 3.8.
    I found a thread in the professional forum from some days ago, where is looks like this issue has been resolved.
    However, I still have this problem.

    I just upgraded the test environment of my site from J3.7.5 to J3.8.1 and Fabrik from 3.7 to 3.8.
    I also did it the other way around (Fabrik first and Joomla later).

    In both cases I get the message '0 - Class 'FabrikWorker' not found'.
    In both cases I used the built-in installer, no files from Github manually.

    What am I doing wrong here?

    thanks, Henk
     
  2. hjkok50

    hjkok50 Member

    Level: Community
  3. troester

    troester Well-Known Member Staff Member

    Level: Community
    I can't replicate and it seems you are the only one having this issue.
    What do you mean with "built-in installer"?

    Using the Joomla update?
    Did you update ALL Fabrik plugins?

    Or installing the Fabrik3.8 package?
    The package only contains the Fabrik core. If you have additional plugins installed you must update via Joomla update.
     
  4. hjkok50

    hjkok50 Member

    Level: Community
    Thanks for the fast response.

    I use Joomla 3.7.5 and Fabrik 3.7 in my production environment.
    I updated my test environment using 'Joomla update' for Fabrik 3.7 to 3.8 and Joomla 3.7.5 to 3.8.1.
    I did NOT use Github.

    I updated all Fabrik plugins, I did NOT install the Fabrik3.8 package

    Henk
     
  5. troester

    troester Well-Known Member Staff Member

    Level: Community
    Is this error message always or list/form/element related?
     
  6. hjkok50

    hjkok50 Member

    Level: Community
    This error messages apears with all forms and all lists, no matter whether they are in an article or directly as a menu item.
     
  7. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Can you try installing the 3.8 package file from the downloads:

    http://fabrikar.com/download/form/36/2942-fabrik-3-8

    If that doesn't work, it's possible you may have some other extensions or plugin which is loading before Fabrik and causing some part of Fabrik to be loaded before our system plugin runs. Next step is to use something like phpMyAdmin, and look at your J! #__extensions table, find the row for name 'plg_system_fabrik', and set the 'ordering' to -1.

    -- hugh
     
  8. hjkok50

    hjkok50 Member

    Level: Community
    Hi Hugh,

    I tried all of the above in 4 different ways, unfortunately without result.
    I assumed you are referring to the row 'plg_fabrik_system', because the one you mentioned does not exist in my database.
    I still get the error message.

    This was all in my test environment, my live site is still on J!3.7.5 with Fabrik 3.7
    In my live site I have a problem with a form that uses AJAX validation.
    After upgrading to PHP7.0.19 the 'notempty' validation rule generates an error message saying 'Oups' and the form is not processed anymore.
    I was hoping this would be resolved after upgrading to Fabrik 3.8.
    Can I solve this issue when still using Fabrik 3.7?

    What can I do from here?

    tnx, Henk
     
  9. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
  10. hjkok50

    hjkok50 Member

    Level: Community
    I'm using a homebrew template, not a framework of any kind.
    I noticed that I also have 'Beez', 'Atomic', 'protostar' and 'OfficePrime-TG' installed.
    Should I remove those?

    Henk
     
  11. hjkok50

    hjkok50 Member

    Level: Community
    I looked at the validation_rule.php file, but it contains only 27 lines in my case.
    So I cannot make the 'trim' change in line 99 as suggested in the link you sent me.
    Should I do this in a different file?
    please advise

    Henk
     
  12. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Are you sure? This file?

    components/com_fabrik/models/validation_rule.php

    It should have well over 400 lines. If it doesn't, then something is very wrong.

    The reason I ask about template is that one way that "FabrikWorker not found" error can happen is if something in a template does something in the "wrong" order. Can you try with Protostar?

    -- hugh
     
  13. hjkok50

    hjkok50 Member

    Level: Community
    Apologies, validation_rule.php does exist.
    I looked at line 99 but it already contained the trim function and I still get the Oups on the notempty validation.

    Also I tried Protostar and all other templates.
    They all give me the error message 'FabrikWorker not found'.

    Henk
     
  14. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
  15. hjkok50

    hjkok50 Member

    Level: Community
    Hi hugh,

    It doesn't contain the 'view' line of code, nor the 'helper' line, only the 'controller' line.
    When I add line 28 as in the link you sent me, the site goes down completely with the message 0 - Class 'Fabble\Helpers\Factory' not found.

    Which of my two problems should this fix?

    Henk
     
  16. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    If it doesn't have that line, then the file didn't get updated, which means none of the library files got updated. Line 28 isn't the only change in that file, it was just the easiest way to find out if your library had been updated.

    Can you check the same file, in ...

    ./components/com_fabrik/fabrik

    That folder is where we copy the library from during install or update. A component can't install directly to the J! library folder, so any files that need to go there have to be copied during the 'postFlight' phase of installing. That copy of the file should look like the one in github,w ith the additional autoload lines.

    I suggest you do a complete github update, see the wiki.

    Meanwhile I'll try and figure out how the files could have not been copied, without you seeing a warning that files couldn't be copied.

    -- hugh
     
  17. hjkok50

    hjkok50 Member

    Level: Community
    I checked both folders on the include.php and they both do include line 28 the 'view' line.
    I must have looked at the production site that is still on 3.7. Appologies for that.

    Next step for me will be to do a complete github update.

    -- Henk
     
  18. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    If it still doesn't work after that, it's possible there is some other system plugin that is causing problems. I'd need to get an Akeeba copy of your site so I could step through the code in a debugger.

    -- hugh
     
  19. hjkok50

    hjkok50 Member

    Level: Community
    Hello Hugh,

    It took me some time to figure out what is going on.
    I de-installed a component called 'Regular Labs Library' which is new to my site and of a later date than the last Fabrik upgrade, hoping this would be the cause of my problem.

    I restored my test environment, updated to Joomla 3.8.2 first and than did a complete Fabrik update from GitHub.
    The result is still '0 Class FabrikWorker not found' on alle menu-items and articles referring to a Fabrik List of Fabrik Form.

    I'd appreciate it very much if you could have a look at the code.
    I have to install Akeeba first, because I'm not using it yet.
    Do you need a copy of the situation after my latest Github update and/or before?
    How do I send a copy to you?


    Henk
     
  20. troester

    troester Well-Known Member Staff Member

    Level: Community
    Regular Labs Library is no system plugin.
    And it should not do any harm, Regular Labs addons (like sourcerer, Articles anywhere...) are playing nicely with Fabrik.

    Can you disable all system plugins (beside Fabrik) and see if this helps?
     

Share This Page