Diwali

Wishing you joy this Diwali and Halloween! Enjoy up to 20% OFF on all addons!

Claim Offer
01Day 03Hr 41Min 38Sec
Diwali

Datatables error in view

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    Posts
    • #51286
      Ben
      Guest

      I’ve created a view through the example plugin where I’ve placed shortcode that incorporates datatables. The table loads but none of the data. I updated the permalinks in dashboard pages and cleared my cache. I’m getting these errors:

      Failed to load resource: the server responded with a status of 404 (Not Found)
      jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
      custom_script.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      js:121
      datatables-views.min.js:1 Uncaught TypeError: Cannot set property ‘swfPath’ of undefined
      at Object.setButtons (datatables-views.min.js:1)
      at HTMLTableElement.<anonymous> (datatables-views.min.js:1)
      at Function.each (jquery.js:2)
      at a.fn.init.each (jquery.js:2)
      at Object.init (datatables-views.min.js:1)
      at HTMLDocument.<anonymous> (datatables-views.min.js:1)
      at i (jquery.js:2)
      at Object.fireWith [as resolveWith] (jquery.js:2)
      at Function.ready (jquery.js:2)
      at HTMLDocument.K (jquery.js:2)
      setButtons @ datatables-views.min.js:1
      (anonymous) @ datatables-views.min.js:1
      each @ jquery.js:2
      each @ jquery.js:2
      init @ datatables-views.min.js:1
      (anonymous) @ datatables-views.min.js:1
      i @ jquery.js:2
      fireWith @ jquery.js:2
      ready @ jquery.js:2
      K @ jquery.js:2
      common.js:121 Uncaught TypeError: _.ta is not a function
      at common.js:121
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      at Ge (js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73)
      at Ce.Zb (js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179)
      at common.js:1
      (anonymous) @ common.js:121
      (anonymous) @ js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      (anonymous) @ js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73
      (anonymous) @ js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      Ge @ js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73
      Ce.Zb @ js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      (anonymous) @ common.js:1
      common.js:2 Uncaught TypeError: Cannot set property ‘constructor’ of undefined
      at Object._.cj (common.js:2)
      at util.js:209
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      at Object.<anonymous> (js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73)
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73
      at js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179
      at Ge (js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:73)
      at Ce.Zb (js?v=3&key=AIzaSyCkLlZU0aF3btpDebZ1TLHk__F3-L-SCxc:179)
      at common.js:1

      I’ve researched other threads and there seem to be a lot of issues with Datatables. Is there a general fix?

      Thank you.

    • #51327
      WCFM Forum
      Member

      Hi,

      “I’ve created a view through the example plugin where I’ve placed shortcode that incorporates datatables.”

      – I am not getting your this statement very clearly! Which plugin and and which short code? please show me screenshot.

      Thank You

    • #51397
      Ben
      Guest

      Hello!

      By plugin, I meant the example you guys have supplied to add menu items/views – wc-custom-menus I believe you called it.

      After installing that plugin, I went into the view PHP file and added content which happened to be a shortcode. The shortcode is working, but the data isn’t loading from Datatables. The table shows up, but no entry data and I get those previous errors.

      I’ve seen other feedback regarding issues with Datatables but wasn’t able to find an answer.

      Not sure how to attach screenshot here. Happy to if you tell me how.

      Thanks for your help.

    • #51439
      WCFM Forum
      Member

      Hi,

      Can you please show screenshot for what you have added at view file?

      Well, view file is only for table structure, but to make that properly working you have to adjust JS and controller.

      Thank You

Viewing 3 reply threads
  • The topic ‘Datatables error in view’ is closed to new replies.