blockUI requires jQuery v1.3 or later! You are using v1.11.1

From semantic-mediawiki.org
Edited by author.
Last edit: 17:31, 11 March 2015

I'm getting the error

"blockUI requires jQuery v1.3 or later!  You are using v1.11.1"

in a fresh installation when loading a datatable. This is MW 1.24.1, SMW 2.1.1, SRF 1.9.

I've added wgIncludejQueryMigrate = true; to LocalSettings.php, that didn't help. As I understand it from this discussion https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/356#issuecomment-47365754 that should fix the problem, but it does not on my end.

I got it working by commenting out the following:

if (/^1\.(0|1|2)/.test($.fn.jquery)) {
                      /*global alert:true */
                      alert('blockUI requires jQuery v1.3 or later!  You are using v' + $.fn.jquery);
                      return;
                }

In the file:

extensions/SemanticResultFormats/resources/jquery/jquery.blockUI.js

Is there a less icky way to do this?

17:18, 11 March 2015

> SRF 1.9.

You should update to the most recent SRF 2.1*.

17:30, 11 March 2015

OK, will do. Thanks! I was blindly following the instructions here which say 1.9.*. Am I missing something or do those instructions need updating?

17:35, 11 March 2015

Well, there is always room for improvement I believe. The following diff should help the cause.

18:37, 11 March 2015