Keyword

Problems related to comments

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 9 months ago #70554 by Bart Pluijms
Problems related to comments was created by Bart Pluijms
Hello I have some problems with the comment function:

Component:
When filling in a comment and click submit I see a blank page showing the text "COMMENT ADDED! REFRESHING PAGE..." and nothing happens.
The comment is placed but I now refresh is made. Very anonying. Someone a sollution???

Module mod_comments
The mod_comments shows "%s" before the commenters name. How to delete this? It's not in the language file.

Ofcourse I am using the latest version of K2, I upgraded it from the prerelease.

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

More
15 years 8 months ago #70555 by Gavin King
Replied by Gavin King on topic Problems related to comments
I had this problem when using caching. Turned it off in global config and comments show up fine. Is it possible to get joomla to cache everything apart from K2 perhaps?

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

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 8 months ago #70556 by Bart Pluijms
Replied by Bart Pluijms on topic Problems related to comments
Cache is already turned off at the sites with that problem.
The problem still occured.

Maybe one of the developers with a sollution for both problems? (K2 Comment mod and K2 comments)??

Gavin King said:I had this problem when using caching. Turned it off in global config and comments show up fine. Is it possible to get joomla to cache everything apart from K2 perhaps?

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

More
15 years 8 months ago #70557 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. The this behavior indicates a java script error. Please make sure that you don't get any java script errors from other extensions on your page. Also ensure that you are using the latest version of K2 as there is not mod_comments module, it should be mod_k2_comments.

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

  • Bart Pluijms
  • Bart Pluijms's Avatar Topic Author
  • Offline
  • Senior Member
More
15 years 8 months ago #70558 by Bart Pluijms
Replied by Bart Pluijms on topic Problems related to comments
Lefteris Kavadas said:Hi. The this behavior indicates a java script error. Please make sure that you don't get any java script errors from other extensions on your page. Also ensure that you are using the latest version of K2 as there is not mod_comments module, it should be mod_k2_comments.


Hello, thanks for your response.
I don't know how to check for Javascripts errors, but the error occurs on 2 different webpages with different extensions on it.

And. the module I use for the comments is the right one: Mod_K2_comments.
I upgraded it from the prelease.
Some sollutions for this problem?

Is it possible it is a problem which occured by upgrading from the prelease?

I am waiting for your response. Thank you!

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

More
15 years 8 months ago #70559 by dirk80
Replied by dirk80 on topic Problems related to comments
I have the same problem. Firefox shows me this error:
Fehler: $("comment-form").addEvent is not a function
Quelldatei: mywebsite.de/components/com_k2/js/k2.js
Zeile: 14

Do you know why?

Lefteris Kavadas said:Hi. The this behavior indicates a java script error. Please make sure that you don't get any java script errors from other extensions on your page. Also ensure that you are using the latest version of K2 as there is not mod_comments module, it should be mod_k2_comments.

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

More
15 years 8 months ago #70560 by dirk80
Replied by dirk80 on topic Problems related to comments
Actually I found out that I get this problem also when I am using the mod_k2_tools with Blog-Style-Calender. When I click in the frontend on the calender the template diapears and the calender alone stays with the same error:
Fehler: $("comment-form").addEvent is not a function
Quelldatei: mywebsite.de/components/com_k2/js/k2.js
Zeile: 14

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

More
15 years 8 months ago #70561 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. Please make sure that the template you are using is producing a form with id="comment-form" for your comments.

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

More
15 years 8 months ago #70562 by dirk80
Replied by dirk80 on topic Problems related to comments
which template? My joomla Template has nothing to do with comments or forms. I don't know what you mean.

Lefteris Kavadas said:Hi. Please make sure that the template you are using is producing a form with id="comment-form" for your comments.

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

More
15 years 8 months ago #70563 by Lefteris
Replied by Lefteris on topic Problems related to comments
I mean that you may have override the default K2 templates on your template.... Is there on your page a form with such an id ("comment-form") ?

Dirk said:which template? My joomla Template has nothing to do with comments or forms. I don't know what you mean.
Lefteris Kavadas said:Hi. Please make sure that the template you are using is producing a form with id="comment-form" for your comments.

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

More
15 years 8 months ago #70564 by dirk80
Replied by dirk80 on topic Problems related to comments
I have an template override for my standand joomla template but I have changed nothing on k2. I just installed k2 and added nothing.
In my standard template override I using for the com_content only the default.php and form.php but there is no "comment-form" or "comment" inside.

when I am adding a comment and text is "Comment added and waiting for approval." wihtout template the url changed to index2.php.

Lefteris Kavadas said:I mean that you may have override the default K2 templates on your template.... Is there on your page a form with such an id ("comment-form") ?
Dirk said:which template? My joomla Template has nothing to do with comments or forms. I don't know what you mean. Lefteris Kavadas said:Hi. Please make sure that the template you are using is producing a form with id="comment-form" for your comments.

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

More
15 years 8 months ago #70565 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. Look on templates/yourtemplate/html/ for a folder named com_k2. If that folder exists then you are overriding the default K2 templates.

Dirk said:I have an template override for my standand joomla template but I have changed nothing on k2. I just installed k2 and added nothing. In my standard template override I using for the com_content only the default.php and form.php but there is no "comment-form" or "comment" inside.

when I am adding a comment and text is "Comment added and waiting for approval." wihtout template the url changed to index2.php.

Lefteris Kavadas said:I mean that you may have override the default K2 templates on your template.... Is there on your page a form with such an id ("comment-form") ? Dirk said:which template? My joomla Template has nothing to do with comments or forms. I don't know what you mean. Lefteris Kavadas said:Hi. Please make sure that the template you are using is producing a form with id="comment-form" for your comments.

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

More
15 years 7 months ago #70566 by James Lahm
Replied by James Lahm on topic Problems related to comments
I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed.

Any help from the K2 development team would be appreciated!

Jim

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

More
15 years 7 months ago #70567 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template.

Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed.
Any help from the K2 development team would be appreciated!

Jim

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

More
15 years 7 months ago #70568 by James Lahm
Replied by James Lahm on topic Problems related to comments
Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function?

Many thanks.

Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template.
Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated!

Jim

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

More
15 years 7 months ago #70569 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. Try to switch to the default Joomla! template. Also make sure that mootools.js is loaded.

Jim Lahm said:Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function?
Many thanks.

Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template. Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated!
Jim

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

More
15 years 7 months ago #70570 by James Lahm
Replied by James Lahm on topic Problems related to comments
Hmm, you might be onto something. With the default rhuk_milkyway template it works fine. Mootools.js was referenced with the default theme and our theme (which is a modified version of rhuk_milkyway - mostly CSS changes). One thing I noticed: I was getting the javascript error "$("comment-form").addEvent is not a function" on every page, not just the comment page. Why would the k2.js line "if ($('comment-form')) { " be true if there wasn't anything with this value on the page? I put an alert in an it indeed was evaluating as true even though there was nothing with this value in the HTML file.

Thanks again for your continued help.

Jim


Lefteris Kavadas said:Hi. Try to switch to the default Joomla! template. Also make sure that mootools.js is loaded.
Jim Lahm said:Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function? Many thanks.

Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template. Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated! Jim

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

More
15 years 7 months ago #70571 by James Lahm
Replied by James Lahm on topic Problems related to comments
As a follow-up, I checked further and found that the key difference between the two templates was that I was loading jquery-1.3.2.js in my new template. When I temporarily disabled it, the k2.js javascript error disappeared and everything worked. Is there some issue with both mootools and jquery being loaded at the same time?

Jim

Lefteris Kavadas said:Hi. Try to switch to the default Joomla! template. Also make sure that mootools.js is loaded.
Jim Lahm said:Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function? Many thanks.

Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template. Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated! Jim

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

More
15 years 7 months ago #70572 by Lefteris
Replied by Lefteris on topic Problems related to comments
Hi. If you load both mootools and jQuery then ensure that jQuery is loaded in no conflict mode.

Jim Lahm said:As a follow-up, I checked further and found that the key difference between the two templates was that I was loading jquery-1.3.2.js in my new template. When I temporarily disabled it, the k2.js javascript error disappeared and everything worked. Is there some issue with both mootools and jquery being loaded at the same time?
Jim

Lefteris Kavadas said:Hi. Try to switch to the default Joomla! template. Also make sure that mootools.js is loaded. Jim Lahm said:Thanks for the prompt reply. I am using the latest version of K2 with the bundled templates. I am getting a single JavaScript error (as noted below) that is coming from k2.js. If this is the only javascript error, does it necessarily mean it is a K2 issue? I'm at a loss as how to track down the problem any further right now. Why wouldn't k2.js be able to find the addEvent function? Many thanks.
Lefteris Kavadas said:Hi. Again for everyone having problems with the comments. Please ensure that you are using the latest version of K2 with the bundled templates and tha you get no javascript errors on your page. If you get a javascript error it could be coming from any extension or even from your template. Jim Lahm said:I am seeing this problem also. The form has the correct "comment-form" id. I get a single javascript error on the page with the comment form of "$("comment-form").addEvent is not a function" in k2.js (line 14). After submitting the comment, it goes to index2.php and displays the message "Comment added! Refreshing page..." but the page is never refreshed. Any help from the K2 development team would be appreciated! Jim

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

More
15 years 6 months ago #70573 by Rich Powell
Replied by Rich Powell on topic Problems related to comments
Using Affinity RocketTheme, multiple js loads, getting the same error. Do have a form with id="comment-form" defined in page though. Also overriding the default k2 templates. Not loading jQuery. Any thoughts on troubleshooting the js? Latest version of k2 (Last update: September 9th, 2009 - v2.1)

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


Powered by Kunena Forum