Keyword

K2 comment redirecting issue

  • Toby Bonner
  • Toby Bonner's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #156224 by Toby Bonner
K2 comment redirecting issue was created by Toby Bonner
Thanks to an update somewhere to recaptcha V2 API, the recaptcha on my site stopped working. That was easy enough to fix with a new key.

However, now when comments are submitted, they redirect to a page that literally only shows the following line of text:

{"message":"Comment added and waiting for approval.","cssClass":"k2FormLogSuccess"}

Something in the code needs fixed, because the "Comment added and waiting for approval." bit is supposed to show up as a simply message that appears above the comment form, without taking users to a whole new page... But I'm not sure where in the code that is, or how to fix it.

I'm not too picky about how that message is shown. If it's a little popup box, or just a message within the page, whatever. I just don't want users taken to a whole new, completely useless page, or for the comment form to remain filled out after the comment has been submitted.

Any help would be greatly appreciated.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #156233 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
Hello Toby,

Can you share a link to your site?

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

  • Toby Bonner
  • Toby Bonner's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #156237 by Toby Bonner
Replied by Toby Bonner on topic K2 comment redirecting issue
Yeah it's: powelltribune.com

You can click on any story and leave a comment to see exactly what it's doing.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #156242 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
For some reason jQuery is being loaded after K2's scripts.
This could be caused by the plugins order (try moving the K2 system plugin further down the list).

Alternatively you can use an extension like jQuery Easy to sort the scripts' order.

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

  • Toby Bonner
  • Toby Bonner's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #156245 by Toby Bonner
Replied by Toby Bonner on topic K2 comment redirecting issue
Installing jQuery Easy fixed it. I tried moving the System - K2 plugin first, but that didn't seem to do anything.

Submitting comments works, it doesn't redirect to that weird page anymore, and the little success comment shows up like it should.

Thanks for the help!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #156252 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
You 're welcome Toby :)

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

More
8 years 5 months ago #159072 by Christian Becker
Replied by Christian Becker on topic K2 comment redirecting issue
Hi,

I got the same problem here but both solutions didn't help :(

Instead of a Information I got a white page with this content:

{"message":"Comment added and waiting for approval.","cssClass":"k2FormLogSuccess"}

Maybe someone could help me. The page is beckerchristian.com

Thanks allot
Chris

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 5 months ago #159114 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
There are several JS issues coming from the cookie consent plugin.
These issues can cause the site not to function properly.
Some are 403 permissions issues, you need to correct this issues or deactivate this extension.

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

More
8 years 3 weeks ago - 8 years 3 weeks ago #161443 by Konrad
Replied by Konrad on topic K2 comment redirecting issue
Hi,

@Krikor I have the same problem, both solutions didn't work. My site is rkglass.pl, can you direct me to the solution?
Last edit: 8 years 3 weeks ago by Konrad.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 weeks ago #161468 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
Hey there,

Since my Polish is really bad, can you point me to an item with enabled comments?

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

More
8 years 2 weeks ago #161472 by Konrad
Replied by Konrad on topic K2 comment redirecting issue
Thanks for the answer :) example URL with comments is www.rkglass.pl/blog/454-jak-dbac-o-szklane-powierzchnie

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 weeks ago #161476 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
Can you disable the JS minification?

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

More
8 years 2 weeks ago #161521 by Konrad
Replied by Konrad on topic K2 comment redirecting issue
I switched off JavaScript compression, is it OK now?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 weeks ago #161525 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
It appears to be functioning properly now.

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

More
8 years 2 weeks ago #161560 by Konrad
Replied by Konrad on topic K2 comment redirecting issue
Works great, thank you very much! Can I somehow fix the minimized JS?

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

More
7 years 3 months ago #166297 by Sori
Replied by Sori on topic K2 comment redirecting issue
I had the same problem and sth like this would show up:
{"message":"\u0646\u0638\u0631 \u0627\u0641\u0632\u0648\u062f\u0647 \u0634\u062f! \u062f\u0631 \u062d\u0627\u0644 \u062a\u0627\u0632\u0647 \u0633\u0627\u0632\u06cc \u0635\u0641\u062d\u0647...","cssClass":"k2FormLogSuccess","refresh":1}
I installed Jquery easy and in the Jquery tab I selected fix Jquery+UI and it solved my problem.
Thanks for your guidance. you are the best

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #166308 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
You 're welcome sohrab :)

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

More
6 years 11 months ago #168173 by James
Replied by James on topic K2 comment redirecting issue
Hello, I am having the same problem and have tried the solutions listed above but they did not work for me. Any other ideas I could try?

www.peopleschurchgp.com/30-days-home/item/330-30-days-of-prayer-day-2

Thanks in Advance,
James.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 10 months ago #168188 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 comment redirecting issue
Hello,

You need to enable the loading of the jQuery library in K2;s settings.

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

More
6 years 10 months ago #168189 by James
Replied by James on topic K2 comment redirecting issue
That did it! Thanks so much!

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


Powered by Kunena Forum