Keyword

comment-form error

More
15 years 1 month ago #80680 by pava
comment-form error was created by pava
Hello, when use K2 with breezing form plug in, breezing form is not work. I post to breezing form support and they find that K2 have one Console error. Its write with firebug:





$("comment-form").addEvent is not a function
$('comment-form').addEvent('submit', function(e){

k2.js (line 13)

I dont use coment. Please how I can resolve this problem? From admin I turn off all coments in K2, but steel have this error in Console.

Thank you so much foe any help. Regards

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80681 by Lefteris
Replied by Lefteris on topic comment-form error
Hi. Please make sure that you are not using any other libraries such as jQuery as it may leads to conflicts. Also ensure that you are using the latest version of K2.

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80682 by pava
Replied by pava on topic comment-form error
Hello, thank you for replay. I use last version 2.2 Please you can just write me how I can know what I am use on jQuery or where find and fix?
Regards

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80683 by Lefteris
Replied by Lefteris on topic comment-form error
Hi. I m afraid i cannot help you on this. It might be an extension or the template that loads the library. Maybe posting a link to your site can help.

pava said:Hello, thank you for replay. I use last version 2.2 Please you can just write me how I can know what I am use on jQuery or where find and fix? Regards

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80684 by pava
Replied by pava on topic comment-form error
Hello, I use long time component from JoomlaWorks, special very happy with Frontpage SlideShow.
web site is on: www.pag-apartments.eu In K2 have install Simple Image Gallery PRO and on same page is Breezing form. And that is all. Breezing form now is on frame. When I put Freezing form without frame, is not work. I post to Breezing form and they find error from K2, and told me that have to post you.
After I check and is some error in Console, what I post.
This error you can find on: www.pag-apartments.eu/hr/ponuda-apartmana-u-objektu-villa-milla/item/15-apartman-1-milla.html

Please help me. Best regards

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80685 by Lefteris
Replied by Lefteris on topic comment-form error
Hi. The form you are using is loading jQuery library as i guessed. JQuery provides a no-conflict mode. Any extension that choose to use jQuery instead of mootools ( which is bundled with Joomla! ) should use it in no-conflict mode to avoid such issues. Apparently the extension you are using does not. Apart from this, looking at your frame code you will notice that k2.js is also loading there and seems to work fine ( no javascript errors ). So it might be some other extension that is causing this issue.

pava said:Hello, I use long time component from JoomlaWorks, special very happy with Frontpage SlideShow. web site is on: www.pag-apartments.eu In K2 have install Simple Image Gallery PRO and on same page is Breezing form. And that is all. Breezing form now is on frame. When I put Freezing form without frame, is not work. I post to Breezing form and they find error from K2, and told me that have to post you.
After I check and is some error in Console, what I post.
This error you can find on: www.pag-apartments.eu/hr/ponuda-apartmana-u-objektu-villa-mi...

Please help me. Best regards

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80686 by pava
Replied by pava on topic comment-form error
Hello, No more componet there now. Just Breezing form and K2. I post to Breezing form and they told me that have to write to K2.

Please see. www.kodo.cz/sample/2010-03-18_122857.png Evident is error on k2.js (line 13)

Is it error of k2 or another component?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80687 by Lefteris
Replied by Lefteris on topic comment-form error
Hi. Please set SIG engine to mootools. This will solve the problem.

pava said:Hello, No more componet there now. Just Breezing form and K2. I post to Breezing form and they told me that have to write to K2.
Please see. www.kodo.cz/sample/2010-03-18_122857.png Evident is error on k2.js (line 13)

Is it error of k2 or another component?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80688 by pava
Replied by pava on topic comment-form error
Hi, thank you for help. Please just what is SIG engine? and how I can set them to mootools?

Please Log in or Create an account to join the conversation.

More
15 years 1 month ago #80689 by Lefteris
Replied by Lefteris on topic comment-form error
Hi. It's the plugin you are using for your galleries. Open it and set the engine parameter to mootools.

pava said:Hi, thank you for help. Please just what is SIG engine? and how I can set them to mootools?

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #80690 by Casper Voogt
Replied by Casper Voogt on topic comment-form error
I got this error too;

 

 

Error: $("comment-form").addEvent is not a function

Source File: www.mysite.com/joomla/components/com_k2/js/k2.js

Line: 13

 

I have K2 comments disabled, so why is k2.js trying to use addEvent on "comment-form" when there is no comment form?  I had a Front Page Slideshow module showing, but disabled it. I also disabled my Superfish module and in fact all my modules, including mod_k2items. That fixed it. When I turned mod_k2items back on, the problem happened again. So it seems mod_k2items is conflicting with K2's own JS. 

Please Log in or Create an account to join the conversation.

More
14 years 4 months ago #80691 by Casper Voogt
Replied by Casper Voogt on topic comment-form error
 

Update on my related issue with mod_k2items;

 

I was able to fix this by overriding /modules/mod_k2items/tmpl/default.php and removing these lines;

 

<script type="text/javascript" src="modules/mod_k2items/assets/jquery.min.js"></script>

<script type="text/javascript" src="modules/mod_k2items/assets/jquery-ui.min.js"></script>

 

<script type="text/javascript">

$(document).ready(function(){

$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", <?php echo $autoplay == 1 ? $speed : 0?>, true);

});

</script>

Casper Voogt said:
 

I got this error too; 

 

 

Error: $("comment-form").addEvent is not a function

Source File: www.mysite.com/joomla/components/com_k2/js/k2.js

Line: 13

 

I have K2 comments disabled, so why is k2.js trying to use addEvent on "comment-form" when there is no comment form?  I had a Front Page Slideshow module showing, but disabled it. I also disabled my Superfish module and in fact all my modules, including mod_k2items. That fixed it. When I turned mod_k2items back on, the problem happened again. So it seems mod_k2items is conflicting with K2's own JS. 

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #80692 by mojito
Replied by mojito on topic comment-form error
I have this issue while trying to run jomres with k2 albeit an older version of jomres 4.4 but k2 is latest 2.4 now.

 

This js conflict stuff does everyones head in. Once upon a time we learnt that standardisation was good. Lets have a big scrap in the car park and the winner gets their lib used by everything once and for all.

 

:(

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #80693 by mojito
Replied by mojito on topic comment-form error
I have now solved my jomres js error issue. But I still fear there is a conflict as I still have the k2 error but only on section which is using jomres

 

$("comment-form").addEvent is not a function

 

I dont think they have an option to run in no conflict mode. Does k2 have this ability.

Please Log in or Create an account to join the conversation.

More
14 years 1 month ago #80694 by mojito
Replied by mojito on topic comment-form error
How do I override a module, is it the same for a component ?

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #80695 by Francesc Llorens
Replied by Francesc Llorens on topic comment-form error
I had the same problem; it was originated by a conflict between MooTools and Jquery.

(See this post for insights about the problem:preventing-jquery-and-mootools )

 

I put a line calling JQuery 1.4.2 on the index.php of my template. Then, the familiar error of the blank page with the "refreshing" tex after k2 comment showed.

 

Also, the error console showed an error from k2.js, "$("comment-form").addEvent is not a function".

 

So I've ripped off the line calling the jquery, installed the JB Library plugin from Joomla Baboo (JB Library)  and on the plugin parametres I chose the JQuery I was trying to load.  The remove parameters and Mootools parameters weren't changed.

 

Now my template works perfect.

 

So, the problem is a JQuery conflict, search carefully what javascript libraries you load.

Please Log in or Create an account to join the conversation.

More
13 years 9 months ago #80696 by Francesc Llorens
Replied by Francesc Llorens on topic comment-form error
--Edit--

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum