Ajax Error

web-it's picture
web-it
Fri, 03/30/2018 - 18:52
#1
Ajax Error

Uncaught TypeError: Cannot read property 'form' of undefined misc/ajax.inc

  if (this.element.form) {

    this.form = $(this.element.form);

  }

Could you help me resolve it?

cindy's picture
cindy
Sat, 03/31/2018 - 03:33

Hi,

Please send us your website url and the page with above error

ChrisG's picture
ChrisG
Thu, 04/05/2018 - 07:22

I have the same problem have we found the solution to this?

ChrisG's picture
ChrisG
Thu, 04/05/2018 - 07:37

I get this in console:

Uncaught TypeError: Cannot read property 'form' of undefined
    at new Drupal.ajax (ajax.js?v=7.56:144)
    at Drupal.views.ajaxView.attachExposedFormAjax (ajax_view.js?p6pk8d:89)
    at HTMLFormElement.i (jquery.min.js?v=1.10.2:4)
    at Function.each (jquery.min.js?v=1.10.2:4)
    at $.fn.init.each (jquery.min.js?v=1.10.2:4)
    at $.fn.init.$.fn.once (jquery.once.js?v=1.2:55)
    at new Drupal.views.ajaxView (ajax_view.js?p6pk8d:61)
    at Object.<anonymous> (ajax_view.js?p6pk8d:14)
    at Function.each (jquery.min.js?v=1.10.2:4)
    at Object.Drupal.behaviors.ViewsAjaxView.attach (ajax_view.js?p6pk8d:13)

 and the minicart - account menu becomes unresponsive

cindy's picture
cindy
Thu, 04/05/2018 - 22:38

Hi ChrisG,

Did you update module views?

ChrisG's picture
ChrisG
Fri, 04/06/2018 - 04:27

Yes the views module I'm using is Version: 7.x-3.18

cindy's picture
cindy
Mon, 04/09/2018 - 03:23

Hi,

Please downgrade version of module views in the theme. The new version of Views is confilct with drupal core 

ChrisG's picture
ChrisG
Tue, 04/10/2018 - 07:35

Ok. Downgrading the views module did the trick

algeorgiadis's picture
algeorgiadis
Fri, 06/08/2018 - 12:53

Are we able to upgrade the views module to 3.20 (latest security update?) or there is still problem with the theme, because being in views 3.12 is a big problem.

Thank you very much.

cindy's picture
cindy
Mon, 06/11/2018 - 00:11

Hi,

Currentlly, please continue to use old version of module views.

We are fixing and updating this. You can set schedule auto backup your source code + database everyday 

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.