- Posts: 40
COMMUNITY FORUM
Problems related to comments
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
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.
- Gavin King
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
- Posts: 40
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Bart Pluijms
-
Topic Author
- Offline
- Senior Member
- Posts: 40
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.
- dirk80
-
- Offline
- Junior Member
- Posts: 27
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.
- dirk80
-
- Offline
- Junior Member
- Posts: 27
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- dirk80
-
- Offline
- Junior Member
- Posts: 27
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- dirk80
-
- Offline
- Junior Member
- Posts: 27
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- James Lahm
-
- Offline
- New Member
- Posts: 19
Any help from the K2 development team would be appreciated!
Jim
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- James Lahm
-
- Offline
- New Member
- Posts: 19
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- James Lahm
-
- Offline
- New Member
- Posts: 19
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.
- James Lahm
-
- Offline
- New Member
- Posts: 19
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.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
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.
- Rich Powell
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.