General help

 
 
Picture of Tzvi Daum
AJAX Suddenly Stopped Working 2.4
 

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

 
Average of ratings: -
Picture of John Rodgers
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Tzvi Daum
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 

 

 
Average of ratings: -
Picture of Dean Leggo
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Catherine Berry
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Stan Golanka
Re: AJAX Suddenly Stopped Working 2.4
 

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.  

 
Average of ratings: -
Picture of Tzvi Daum
Re: AJAX Suddenly Stopped Working 2.4
 

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

 
Average of ratings: -
Picture of Mark Olson
Re: AJAX Suddenly Stopped Working 2.4
 

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

 
Average of ratings: -
Picture of Gary Sutcliff
Re: AJAX Suddenly Stopped Working 2.4
 

Switch to BONAMI?

 
Average of ratings: -
Picture of Tzvi Daum
Re: AJAX Suddenly Stopped Working 2.4
 

Ha!

How about you try it on your server first and let us know how it went... smile

TD

 
Average of ratings: -
Picture of Jonathan Kulp
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of AL Rachels
Re: AJAX Suddenly Stopped Working 2.4
Group DevelopersGroup Particularly helpful MoodlersGroup 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

 
Average of ratings:Useful (1)
Picture of Tzvi Daum
Re: AJAX Suddenly Stopped Working 2.4
 

Thanks Al,

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

Tzvi

 
Average of ratings: -
Picture of Dean Leggo
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Catherine Berry
Re: AJAX Suddenly Stopped Working 2.4
 

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?

 
Average of ratings: -
Picture of Bret Miller
Re: AJAX Suddenly Stopped Working 2.4
Group 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.

 
Average of ratings: -
Picture of Catherine Berry
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Bret Miller
Re: AJAX Suddenly Stopped Working 2.4
Group 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.



 
Average of ratings:Useful (1)
Picture of Stan Golanka
Re: AJAX Suddenly Stopped Working 2.4
 

I don't think that is what is happeing here.  I created a short screencast to show our host what was happening:

http://screencast.com/t/3NAW8QA0F

 

 
Average of ratings: -
Picture of Stan Golanka
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Glenys Hanson
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
paula
Re: AJAX Suddenly Stopped Working 2.4
Group Particularly helpful Moodlers

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.

 
Average of ratings: -
Picture of Helen Foster
Re: AJAX Suddenly Stopped Working 2.4
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

Thanks to John Rodgers for reporting this issue in the Moodle Tracker. It's MDL-37528 if anyone would like to watch, vote or add further comments.

 
Average of ratings: -
Picture of Haniel Burton
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Greg Scott
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Brian Rigwald
Re: AJAX Suddenly Stopped Working 2.4
 

This tricked worked for a little while, but no longer. sad  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?

 
Average of ratings: -
Picture of Richard Bakos
Re: AJAX Suddenly Stopped Working 2.4
 

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?

 
Average of ratings: -
Picture of Andreas Giesen
Re: AJAX Suddenly Stopped Working 2.4
 

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... 

 
Average of ratings: -
Picture of Aaron Spike
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
James Richardson
Re: AJAX Suddenly Stopped Working 2.4
 

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

 

 
Average of ratings: -
Picture of Tzvi Daum
Re: AJAX Suddenly Stopped Working 2.4
 

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

 

 

 
Average of ratings: -
Picture of Aaron Spike
Re: AJAX Suddenly Stopped Working 2.4
 

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

 
Average of ratings: -
Picture of Barbara Taylor
Re: AJAX Suddenly Stopped Working 2.4
 

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

 

 
Average of ratings: -
Picture of Nick Varney
Re: AJAX Suddenly Stopped Working 2.4
 

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?

 
Average of ratings: -
Picture of Frank B
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Don Hazelwood
Re: AJAX Suddenly Stopped Working 2.4
 

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.

 
Average of ratings: -
Picture of Shaun Tyson
Re: AJAX Suddenly Stopped Working 2.4
 

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

 
Average of ratings: -
Picture of Brian Rigwald
Re: AJAX Suddenly Stopped Working 2.4
 

 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.

 
Average of ratings: -
Picture of Gina Bennett
Re: AJAX Suddenly Stopped Working 2.4
 

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

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.

 
Average of ratings: -
Picture of Richard Bakos
Re: AJAX Suddenly Stopped Working 2.4
 

If that is a case and you can replicate the issue repeatedly, you should submit a bug in the Moodle tracker: https://tracker.moodle.org/

 
Average of ratings: -