Comments (9)
This sounds like a conflict with the custom theme as we have not seen this problem on our development environments. For the plugin we only develop and test against the default Moodle theme.
from moodle-mod_turnitintooltwo.
Hi @andrewrowatt-masseyuni
The turnitintooltwo plugin loads jQuery 1.8.2 IFF the Moodle version is 2.5 or lower, as 2.6 onwards came packaged with its own jQuery.
I've added similar logic to plagiarism_turnitin that should get released soon. In the meantime, if your workaround of blocking 1.8.2 is effective and not causing problems, then there should be no reason not to continue with that arrangement in the interim.
Kind regards
David
from moodle-mod_turnitintooltwo.
Hi @andrewrowatt-masseyuni
I have built in such a catch, but upon testing it started generating errors in the submission inbox. These errors are non-fatal and will only be visible with debugging switched on.
I have created issue #129 regarding these messages to flag them as a known issue.
from moodle-mod_turnitintooltwo.
Note: theme is:
https://github.com/moodlerooms/moodle-theme_snap
from moodle-mod_turnitintooltwo.
Hi David et al,
Unfortunately the blocking solution was merely used to confirm that the duplicate loading of jQuery was the issue. I cannot use this as a workaround as the issue impacts students and teachers plus a complicating factor is that only some courses are using the alternative theme.
So, in short I do need a permanent and robust solution. Is there anything I can do to help?
Andrew
P.S.
I note that turnitintooltwo.js contains the line:
//var tiijq = jQuery.noConflict();
Which suggests version conflicts have been considered previously.
from moodle-mod_turnitintooltwo.
Hi @andrewrowatt-masseyuni
Thanks for providing us with a link to the theme. Our tests were initially conducted on the default Moodle but the source showed that despite the debugging output, jQuery 1.11.1 loaded as expected.
If you have a development/testing environment then the jQuery_loading branch of my repository will enable you to test the results of the modifications. Hopefully they will work for you.
Thanks
David
from moodle-mod_turnitintooltwo.
Thanks David! I will pass that onto my local team.
from moodle-mod_turnitintooltwo.
Hi @andrewrowatt-masseyuni - unfortunately I don't think we are able to fix this. The plagiarism API in Moodle doesn't allow us to include jquery in the correct way so we have to use $PAGE->requires->js().
Does everything work ok for you still with that line removed? If so, I don't see a problem with you leaving it out.
from moodle-mod_turnitintooltwo.
/**
* Load JS needed by the page.
*/
public function load_page_components() {
global $CFG, $PAGE;
// replace these two lines
// $jsurl = new moodle_url($CFG->wwwroot.'/plagiarism/turnitin/jquery/jquery-1.8.2.min.js');
// $PAGE->requires->js($jsurl);
// with this
$PAGE->requires->jquery();
/plagiarism/turnitin/lib.php
from moodle-mod_turnitintooltwo.
Related Issues (20)
- User type exception trying to get fullname for revealed anonymous student.
- Failing core Behat tests in default_activiy completion.feature
- Bug: update_record_raw error when "Auto Generate Lastname" is "Yes" and value of "Student Pseudo Last Name" is empty. HOT 1
- Maximum grade set to 0 and Grade Display set to Percentage causing Divided by 0 problem HOT 1
- For the same turnitin_uid account, several records in turnitintooltwo_users with several Moodle's environments
- Export to Excel and Export to Original format buttons no longer work (2024020601) HOT 1
- reference to unknown image HOT 2
- Unncessary session locks in ajax.php HOT 1
- test_admin_apply_default_settings failed asserting that two arrays are identical. HOT 1
- test_admin_output_new_settings_by_page failed asserting that two arrays are identical.
- Refreshing Grades from Turnitin error on a multi-part Turnitin assignment
- Error on ad-hoc task on Moodle 4.4 HOT 1
- Submission grades are not synced to grade book HOT 3
- "Calling current() on an object" deprecation warning HOT 3
- Scheduled task failed: Turnitintooltwo Cron Task (mod_turnitintooltwo\task\turnitintooltwo_task),Invalid course module ID
- Still using print_error - causes fatal error
- ******** General Announcement ******** HOT 1
- ‘Show/Save Data Dump’ tabs of the plugin settings are not working HOT 3
- New PHPunit test failure with develop branch HOT 1
- Grade Discrepancies between Turnitin Assignment and Gradebook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moodle-mod_turnitintooltwo.