ReferenceError: Fabrik is not defined

paolo.tateo

Member
Hi !
I have a problem with the update of Fabrik. I started from Joomla 2.5.28 and Fabrik 3.0.5.2 and I upgraded to Joomla 3.3.6 and Fabrik 3.2 (and the last Github version). I'm running all the tests on a development site, writing each step that I'll have to repeat when I will update it.

After upgrade some function in BE and FE no longer work, for example in BE I can't save the forms of the lists, and in FE not work the search in the lists. I think it is certainly some conflict JavaScript, but do not understand what.

In BE, when I click "Save" in the form list, Firebug show me this error


index.php?option=com_fabrik&view=list&layout=edit&id=45 (line 312, col 33)

ReferenceError: Fabrik is not defined
if (task !== 'list.cancel' && !Fabrik.controller.canSaveForm()) {

Thanks

Paolo
 
Hi troester,
surely I must do still some activity, but the real problem is the BE blocked.

I tried with different browsers, it is not a problem of cache.

Every time I try to save an element I see this error:

ReferenceError: Fabrik is not defined
if (task !== 'element.cancel' && !Fabrik.controller.canSaveForm()) {

Every time I try to save a list I see this error:


ReferenceError: Fabrik is not defined
if (task !== 'list.cancel' && !Fabrik.controller.canSaveForm()) {
And this error when I try to save a form:
ReferenceError: Fabrik is not defined
if (!Fabrik.controller.canSaveForm()) {
Do you have any idea?
 
hi Paolo

Did you update the system plugin (plugins/system/fabrik) and could you check its published?

Also double check all the files were uploaded correctly

Do you have any other js errors on the page?

At the bottom of the page's source code do you have some code that looks this:

Code:
requirejs(['fab/fabrik-min', 'fab/tipsBootStrapMock-min'], function () {
  Fabrik.liveSite = 'http://mysite.com/';
  Fabrik.debug = false;
  Fabrik.bootstrapped = true;
  Fabrik.tips = new FloatingTips('.fabrikTip', {"tipfx":"Fx.Transitions.linear.easeIn","duration":"500","distance":50,"fadein":false});
  Fabrik.addEvent('fabrik.list.updaterows', function () {
  // Reattach new tips after list redraw
  Fabrik.tips.attach('.fabrikTip');
  });
  Fabrik.addEvent('fabrik.plugin.inlineedit.editing', function () {
  Fabrik.tips.hideAll();
  });
  Fabrik.addEvent('fabrik.list.inlineedit.setData', function () {
  Fabrik.tips.attach('.fabrikTip');
  });
  
});
 
Hi Rob,
the Fabrik System Plugin is published and updated (in the file fabrik.xml I read "<version>3.2</version>") and this is in the first position in the plugin list (-999).
I not see others errors in the page.

At the bottom of the page's source code I do not see that code.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top