joomla mootools 升级崩溃
我有一个问题几天来一直在努力解决。 我们在 joomla 1.5 中启用了 mootools 1.2 插件,因此我们可以使用一些为 mootools 1.2 设计的库。 效果很好,一切正常,我们可以继续我们的工作。 自上次脚本工作以来,我们做了一些小的更改,向前端添加了挤压盒兼容性,包括 cufon 脚本,以便页面看起来更好,... 实际上只有很小的变化。 下次我看 mootools 崩溃了。 Internet Explorer 抛出如下错误:
消息:“className”为 null 或不是对象 线路:335 字符:2 代码:0 URI:/plugins/system/mtupgrade/mootools.js
消息:对象不支持此属性或方法 线路:1 字符:47606 代码:0 URI:/plugins/system/mtupgrade/mootools.js
消息:预期数量 线路:1 字符数:2585 代码:0 URI:/plugins/system/mtupgrade/mootools.js
这个错误会在简单的任务上抛出,例如: $('element').className='某物';
代码没有改变,之前运行得很好。
有人可以把我推向正确的方向吗? 我已经尝试撤消我们所做的更改,但没有成功。
I have a problem I'm trying to solve for a few days now.
We enabled the mootools 1.2 plugin in joomla 1.5 so we can use some libraries designed for mootools 1.2 .
It worked great, everything was working and we could continue our work.
Since the last time the script worked, we did some minor changes, adding squeezebox compatibility to the front end, included the cufon script so the page would look better,...
There were really only minor changes.
The next time I looked mootools crashed.
Internet explorer is throwing errors like :
Message: 'className' is null or not an object
Line: 335
Char: 2
Code: 0
URI: /plugins/system/mtupgrade/mootools.js
Message: Object doesn't support this property or method
Line: 1
Char: 47606
Code: 0
URI: /plugins/system/mtupgrade/mootools.js
Message: Number expected
Line: 1
Char: 2585
Code: 0
URI: /plugins/system/mtupgrade/mootools.js
And this errors are thrown on simple tasks like :
$('element').className='something';
The code wasn't changed and it worked perfectly before.
Can somebody push me into the right direction?
I already tried to undo the changes we made, didn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了解决方案。
看来 mootools 被加载了 2 次。第二次将其加载到新模板中,因此出现错误。
Found the solution.
Seems that mootools was loaded 2 times. The second time it was loaded in the new template and therefore the errors.