Welcome, Guest
Username Password: Remember me

MooVing On - MooTools Conflicts
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: MooVing On - MooTools Conflicts

MooVing On - MooTools Conflicts 14 Nov 2009 14:09 #1345

Greetings,

I have a few issues in RC5 I had mentioned in a previous thread, but that thread got to be pretty focused on a specific issue (which very thankfully was resolved)

First is a conflict with my MooTools enabled templates. If I am using a MooTools enabled template the media simply won't load. You can click the links, but nothing happens. I have disabled MooTools in the template I am currently using, however would like to switch to a new template that unfortunately does not give me the option to disable MooTools. When MooTools is enabled in the template I get the following errors on the studies listing page.

Error: window.addEvent is not a function
Source File: www.thegatheringevansville.com/ws/compon...iblestudy/tooltip.js
Line: 1

Error: $ is not a function
Source File: www.thegatheringevansville.com/ws/media/system/js/mootools.js
Line: 23

When I click the media icons to launch the media I also get this error

Error: $ is not a function
Source File: www.thegatheringevansville.com/ws/plugin...loaded/avreloaded.js
Line: 2

In the template that I can disable MooTools in only the first error appears, but I have a few other problems (that exist whether MooTools is enabled or not).

Clicking the comments icon takes me to the study details page, but with no interface for leaving comments.
Clicking the pdf icon opens a pdf file without the study notes or scripture, just a single comma and nothing else.
Clicking the download icon for audio files that have been added as AVR Media doesn't work. It tries to download a file named "http_" which is only a few bytes in size. Opening the download file in TextPad reveals the following

<br />
<b>Warning</b>: readfile(http://) [<a href='function.readfile'>function.readfile</a>]: failed to open stream: operation failed in <b>/home/gatheringchurch/thegatheringevansville.com/ws/components/com_biblestudy/class.biblestudydownload.php</b> on line <b>59</b><br />

This last problem isn't a huge issue, because I can work around it by adding the audio file with an absolute path rather than as AVR Media and it will download fine.

I know that's a whole lot of issues to cram into one thread, but I suspect they may all be related to a single javascript issue. I do have a work site side by side with my live site where I can test anything you need me to test.

Thanks in advance.

Re: MooVing On - MooTools Conflicts 14 Nov 2009 19:01 #1347

  • Eugen
  • OFFLINE
  • Moderator
  • Posts: 147
The first error "tooltip.js" has been fixed in the SVN. I'll have to investigate more, however, on the other js errors. Also, for the downloading issue, have you tried enabling "compatibility mode"?

Re: MooVing On - MooTools Conflicts 14 Nov 2009 20:43 #1348

Yes, I have tried cmode. The result is the same.
I have to wonder if the tooltip.js error isn't the cause of the other js errors.

Re:MooVing On - MooTools Conflicts 14 Nov 2009 21:22 #1349

  • Kyle
  • OFFLINE
  • Moderator
  • Posts: 33
6.1 uses jQuery. When jQuery and Mootools are used together, it is possible for the "$ is not a function" error to show up. I'll look into the code tomorrow night and make sure the noconflict.js is referenced properly.

Thanks,
D8

Re:MooVing On - MooTools Conflicts 15 Nov 2009 19:11 #1354

One more thing that I have intermittent problems with. Any time I change the view on the Studies page in the back end or try to change pages I get a 500 error with the following message

View not found [name, type, prefix]: biblestudy,html,biblestudyView

Re:MooVing On - MooTools Conflicts 15 Nov 2009 20:26 #1355

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
I've noticed that too at times. I wonder if you can help us out - does it happen going from certain views to others or all the time? Does it happen after looking at a list or after editing an item then going back to the list?

The most likely culprit is either the main biblestudy controller on the backend or a form on the backend that is not sending to the right controller.

Any help would be appreciated!

Tom
"You shall know the truth and the truth shall set you free." JC
  • Page:
  • 1
  • 2
Time to create page: 0.71 seconds