Posted on: 05/22/20 03:56pm
By: OMAL
I am getting an error in the console.
Uncaught TypeError: tablechanger.live is not a function
This is for the script line of r.php after footer.
The jquery version is jQuery v3.2.1.
How to fix this?
Thanks.
Re: Uncaught TypeError: tablechanger.live is not a function for r.php
Posted on: 05/22/20 04:21pm
By: OMAL
The javascript and jquery_ui folders under the theme folder were not replaced with those of GL2.2, so that was the reason (script.js was old).
Re: Uncaught TypeError: tablechanger.live is not a function for r.php
Posted on: 05/22/20 04:26pm
By: OMAL
By the way, which files and folders are related to r.php? It seems javascript folder is one of them..
Re: Uncaught TypeError: tablechanger.live is not a function for r.php
Posted on: 05/23/20 10:50am
By: Laugh
Which version of Geeklog are you talking about? Geeklog v2.2.1 and sr1 shipped with the correct version of jQuery that was defined in the resource class.
The r.php is used by /system/classes/Resource.php
For jQuery you have the option to use the CDN option in the config set to true (Use CDN-hosted copy of jQuery and uikit).
Else it should default to using jquery found in public_html/vender/jquery
Hmmm, I did just notice that we do still have an old copy of jquery and juqery ui located in public_html/javascript/
I have updated this issue: https://github.com/Geeklog-Core/geeklog/issues/1059
to make sure this old version gets removed.
Re: Uncaught TypeError: tablechanger.live is not a function for r.php
Posted on: 05/25/20 05:25am
By: OMAL
Thanks Laugh.