AJAX Suddenly Stopped Working 2.4

AJAX Suddenly Stopped Working 2.4

Tzvi Daum發表於
Number of replies: 39

I have been using 2.4 for a while and AJAX suddenly stopped working on FF and Chrome. If I try to move something around on the course page it just jumps to a white screen with the drag handle in the top corner. I can't do any drag or drop questions etc. When I tried it in Explorer it still works fine.

I checked to see AJAX is enabled and it is. The last thing that happened before this was that I created a new course and enrolled myself as a teacher. I got this error message which I can't seem to recall what it said and then AJAX stopped on FF and Chrome.

How do I proceed?

All help would be greatly appreciated.

Tzvi

評比平均分數: -
In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

John Rodgers發表於

Sorry this isn't help, but I did just install 2.4 on a localhost XAMPP server and using the drag and drop of sections on the course page directs me to the image of the icon.

In reply to John Rodgers

Re: AJAX Suddenly Stopped Working 2.4

Tzvi Daum發表於

Okay, I"m getting a little desperate now that I upgraded to 2.4.1 and that still hasn't helped. I have quizz questions that rely on drag and drop and this is not fun!

I am linking to a short video of the problem if anyone can help I would REALLY appreciate it! I would suggest watching the video in full screen.

 

 

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Dean Leggo發表於

I'm a beginner but it looks like your drag drop functions are falling to load.

  • moodleCode/lib/yui/blocks/blocks.js
  • moodleCode/lib/yui/dragdrop/dragdrop.js

Turn on debugging and see what errors pop up. Settings > Site Administration > Development > Debugging. Start with Minimal and work your way up until you see an error.

In reply to Dean Leggo

Re: AJAX Suddenly Stopped Working 2.4

Catherine Berry發表於

I have exactly the same problem, on Moodle 2.3. The problem started on Friday. This was immediately after Firefox had updated to v18. IE still works. I assumed that it was something to do with the FF upgrade.

In reply to Catherine Berry

Re: AJAX Suddenly Stopped Working 2.4

Stan Golanka發表於

We are experiencing the same problem with 2.3.  Moving topics and items in Chrome has not worked at all since the upgrade to 2.3 (apparently because of a confilct with SMARTboard software), and, starting Friday, I couldn't move things using Firefox, either.  

In reply to Dean Leggo

Re: AJAX Suddenly Stopped Working 2.4

Tzvi Daum發表於

Thank you Dean,

I actually have debugging on the highest level and nothing is showing.

Now, today I was in school and accessed my site via a school computer using FF and AJAX worked properly. However as soon as I updated to the latest version of FF the error was replicated on my school computer as well. Thus, I agree with the thinking that something in the FF update is triggering this. In Chrome I am unable to grab any of the handles of the drag and drop things at all. I don't use Chrome regularly so I can't say how long this has been a problem in Chrome. IE still works fine.

Tzvi

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Mark Olson發表於

We are experiencing the same issue with our system.  Wish I had something to contribute in way of a solution.

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Jonathan Kulp發表於

This morning Ajax broke on my Moodle site, apparently after adding a mass action block to a course page. I didn't make the connection immediately but after tracing the problem to massaction, I removed that plugin completely and now Ajax works again. I read in another thread that the massaction developer is working on 2.4+ compatibility.

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

AL Rachels發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

Hi All,

I bet you all updated to Firefox 18 last week just as I tried to do last Friday. It broke drag and drop as well as Nanogong for me. I went back to Firefox 17 and everything was back to normal. Today there was a new Java and it and Firefox 18 worked for Nanogong but drag and drop was still broke. I just tried the beta version of Firefox 19 and drag and drop is still broke with it. For the time being, I am going to stay with Firefox 17.

HTH,

AL

評比平均分數:Useful (1)
In reply to AL Rachels

Re: AJAX Suddenly Stopped Working 2.4

Tzvi Daum發表於

Thanks Al,

Just curious if drag and drop is working for you in Chrome?

Tzvi

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Dean Leggo發表於

I have Moodle 2.3.2, Firefox 18, Chrome 24 and Internet Explorer 9. The drag and drop works for me so something must have changed in the latest code that the new browsers don't like.

In reply to Dean Leggo

Re: AJAX Suddenly Stopped Working 2.4

Catherine Berry發表於

I have found that dragging and dropping files on to a course section or an activity still works in FF18. It's just moving activities or course sections around that don't work.

On IE9 I am finding that dragging and dropping files doesn't seem to work, but moving activities or course sections does. I don't usually use IE, so I don't know if the files were working at any previous point.

So now I am having to switch between FF and IE for different tasks. It sounds as if quite a few people are having this problem - should it be reported to the tracker as a bug - or is it a problem with Firefox that we just have to wait for the Mozilla people to sort out?

In reply to Catherine Berry

Re: AJAX Suddenly Stopped Working 2.4

Bret Miller發表於
Particularly helpful Moodlers的相片

Well, in Moodle 2.3.4, I can drag and drop activities and sections in Firefox 18 without issues. So it would appear that something changed in Moodle 2.4 that broke it... That I say without testing in 2.4 which I don't currently have installed anywhere.

In reply to Bret Miller

Re: AJAX Suddenly Stopped Working 2.4

Catherine Berry發表於

I have Moodle 2.3.3 (build 20121203) and it doesn't work in Firefox 18. So it's not just a 2.4 issue.

In reply to Catherine Berry

Re: AJAX Suddenly Stopped Working 2.4

Bret Miller發表於
Particularly helpful Moodlers的相片

OK... this is strange. It DID work for me when I tested it earlier. And now it doesn't. On Firefox 18, same version where it worked this morning, I'm getting a "node is null" error. On chrome, it's a TypeError can't call method "get" on null. I suspect it's just a different wording of the same error.

Of course, what I just did was probably this: https://tracker.moodle.org/browse/MDL-36465

Ah... yes. And trying it again not dropping a section into "general" worked perfectly in Chrome 24 and in Firefox 18.

So is that the error we're talking about here? If we can reproduce the problem reliably, then it can be reported or voted on to make it a bigger issue. Otherwise, it's just a discussion.

附件 2013-01-15-reorder-nodeisnull.jpg
附件 2013-01-15-reorder-typeerror.jpg
評比平均分數:Useful (1)
In reply to Bret Miller

Re: AJAX Suddenly Stopped Working 2.4

Stan Golanka發表於

This is becoming a major problem for us.  We use SMARTboards, and apparently (proven through testing), the SMART drivers cause a conflict that affects AJAX in Chrome.  Now Firefox is affected--with or without SMARTtools. We are running out of browsers, and I don't think we should advisse users to roll back their browsers.  That will only work for a bit anyway and is less secure (and the pace of browser updates isn't slowing down).  I haven't found a solution but I found this in the issue tracker: a suggestion to give users back the option of turning off AJAX for their page. Perhaps if everyone who has this problem votes for it, it will happen soon.

In reply to Stan Golanka

Re: AJAX Suddenly Stopped Working 2.4

Glenys Hanson發表於

Hi there,

Ajax is still working for me. I've been uploading some exercises to Gordon Bateson's testing site for Moodle 2.4 and I can easily move activities around on:

Windows 7: Firefox 18, Chrome 24

Mac Lion 10.7.5: Firefox 18, Chrome 20 (for some reason I can't update Chrome).

I have exercises there that depend on drag & drop that work no problem: 1 - 9 Ordering - xhtml5.

To logon to Gordon's site:

Username: guestteacher

Password: taskchainv09

Cheers,

Glenys

PS: Have you tried disabling some of your browser Add-ons? That's worked for me in the past with similar problems.

In reply to Glenys Hanson

Re: AJAX Suddenly Stopped Working 2.4

Paula Clough發表於

My Firefox 18 worked fine last week but is not working this week. It did do an update at the beginning of the week.  I uninstalled it and  installed Firefox 17.   That is working but I am not sure if it will continue when updates come around. IE 9 is working as well.

Dragging files into the Moodle page from desktop is still working.  It seems to be the using the crossed arrows on page to drag topic boxes or activities and resources to different parts of the page that is not working.

In reply to Stan Golanka

Re: AJAX Suddenly Stopped Working 2.4

Haniel Burton發表於

If you're using Windows 7 and any touch-based input software, such as SmartBoard or WACOM tablet apps, disabling the WIndows Table PC Input service will allow you to use the drag and reorder features within FF 18 and Chrome 24. However, this service is what enables handwriting recognition and other advanced touch features such as gestures, multi-touch, and flicks. I tested this on a Windows 7 laptop running SmartBoard, FF 18.0.1, Chrome 24, and Moodle 2.3.1.

In reply to Haniel Burton

Re: AJAX Suddenly Stopped Working 2.4

Greg Scott發表於

Thank you, Haniel.  I had been having problems in Chrome ever since installing SMART software and with the update to FF18, was unable to use Firefox as well.

This workaround worked for me for both browsers (Chrome and Firefox).  Here was the procedure for others who are interested.  In Windows 7:

Start--Run--services.msc

Scroll down to Tablet PC Input Service and highlight it.

Click "Stop the Service" on the left.

Restart your browser.  Closing the tabs does not seem to work; you need to close the application entirely.  You can even restart the service and continue to move items, though if you restart the browser again with the service restarted, you will encounter the same issue.  If you find you don't need the service at all, you can disable it from starting up by double clicking on the service name.

In reply to Greg Scott

Re: AJAX Suddenly Stopped Working 2.4

Brian Rigwald發表於

This tricked worked for a little while, but no longer. 傷心  I understand that this is a YUI issue (whatever YUI is, hehehe) and that those developers were working on it.  Is there any news as to when their changes will be incorporated into Moodle?

In reply to Brian Rigwald

Re: AJAX Suddenly Stopped Working 2.4

Richard Bakos發表於

Is it just the drag-n-drop that doesn't work for you or is it all AJAX dependent functions, such as the file picker?

In reply to Haniel Burton

Re: AJAX Suddenly Stopped Working 2.4

Andreas Giesen發表於

This is definitely an issue concerning touch-input! In my case the "bad guy" was to install the Splashtop-Server for remote control of the PC with an Android device. Splashtop activated Win 8 touch-features in order to be able to use the smartphone as a touch-input device. 

I had Moodle 2.3 with Ajax working in FF 18 and Chrome until I installed Splashtop, the thread here gave me the idea to uninstall that and deactivate Tablet-input features in WIn 8 - now it works again in both browsers... 

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Aaron Spike發表於

Those of you with touch enabled devices (like smartboard) can you confirm that drag and drop operates correctly when using the touch input (i.e. it works from the smartboard but not with the mouse)? That is what I experience.

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

James Richardson發表於

Hello Tzvi!

Check your Moodle code to see if your are using a jQuery script for the drag and drop feature. jQuery updated on January 15th 2013 and since then many applications that use the 1.8.3 version broke when they went to 1.9.0. I wrote a news update on it here with more information.

Javascript failure due to jQuery update

The effected sites are the ones using the jquery-latest.js to link to the jQuery plugin directly at the jQuery code base. You can change the jQuery version by relinking the script to and older version like 1.8.3.

Hope this helps!

Regards

James R

 

In reply to James Richardson

Re: AJAX Suddenly Stopped Working 2.4

Tzvi Daum發表於

Hi James,

I did a regex search via Cpanel across my site for jquery-latest.js and it did not find any files with that name and any jquery it did find were from versions that were lower that 1.9 so I don't think that is the issue in this case.

Regarding the earlier suggestion to try it out on a Smartboarrd, I have mid-winter vacation this week, so I won't have access to a Smartboard this week, but perhaps someone else here does.

Tzvi

 

 

In reply to James Richardson

Re: AJAX Suddenly Stopped Working 2.4

Aaron Spike發表於

Hi, James.Thanks for the tip. This issue seems to be related to Moodle's use of YUI.

In reply to Aaron Spike

Re: AJAX Suddenly Stopped Working 2.4

Barbara Taylor發表於

After reviewing different settings of Java and FF 18 we cleared the cache and cookies.  Drag and drop is now working for us.

 

In reply to Barbara Taylor

Re: AJAX Suddenly Stopped Working 2.4

Nick Varney發表於

For me personally, moving activities and resources up and down within a course page is still not possible in Chrome (both in Moodle 2.4 and 2.5). Is this correct?

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Frank B發表於

I had the same issue after I upgraded, but I dumped the server cache, then dumped my browser cache, then it all began to work right. The server cache is the important factor.

In reply to Frank B

Re: AJAX Suddenly Stopped Working 2.4

Don Hazelwood發表於

Frank B, could you be more specific as to your server setup and more specifically what you mean by 'dumped the sever cache'?

I am also wondering if this is still working on your site as this was reported here: https://tracker.moodle.org/browse/MDL-37528 and doesn't seem to have been resolved at this point.

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Shaun T發表於

Hi,

I have few instructors having issues with moving items in the courses using drag and drop. I've been unable to replicate the issue on my computer. Most of the issue appear to happen with users using IE 8, however lots of users don't have any issue using IE 8. Firefox and Chrome appear to work okay. Is there any browser setting I should be looking for? For some users its just a delay to move thing they need to click and hold for a few seconds before they can move. Any suggestions would be greatly appreciated.

We are using moodle 2.4.2

Thanks

In reply to Shaun T

Re: AJAX Suddenly Stopped Working 2.4

Brian Rigwald發表於

 The issue seems related to touch devices, such as SmartBoards.  There is supposedly a fix in the works, but I don't know when it is expected.  If you read through this thread, you can find some "tricks" that sometimes work.

In reply to Tzvi Daum

Re: AJAX Suddenly Stopped Working 2.4

Gina Bennett發表於

I'm not sure this is relevant but thought I would add our 2 cents to the "ajax is weird" discussion 眨眼

We have also been tearing our hair out, trying to at least come up with a commonality between ajax-working courses & ajax-non-working courses. We are running moodle 2.4 & ajax was more-or-less working right up until we fiddled with the admin settings yesterday & changed (then changed back) the default course template. Then suddenly instructors in some courses could no longer hide specific units; nor could they move items around by drag-&-drop.

We may have found a connection: in courses that are organized in a WEEKLY format, ajax does not work properly. In courses organized in a TOPICS format, ajax works as it should.

Not quite sure what to do about it, other than change weekly formatted courses to topic-formatted (& then add in the weekly dates inside the course summary label. But it would be preferable by far to have our cake & eat it too; i.e. organize a course in weekly format & still have ajax working.