Support » Plugin: Comments - wpDiscuz » Wanted to give 5-stars but can’t…

  • I really liked the plugin features, but I couldn’t get it to do the most basic thing… allow the posting of a comment. I tried everything I could think of but it kept throwing errors “Syntax Error JSON Parse… unexpected character, etc…” I found that this issue was reported in the help forum, but there was no clear solution. What worked for one guy didn’t work for me. My guess is that something breaks during install, and/or it conflicts with other plugins. Either way, I could not use it to post comments whether logged in or not, and the comment sort switch was missing even when activated. Did not work in Chrome or FF. Site is hosted by DreamHost.

    If they can get it fixed, it would be exactly the comment plugin I am looking for.

    • This topic was modified 3 years, 6 months ago by adiga762.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    Hi @adiga762,
    As it’s already mentioned in our support forums, this issue comes from font-end JS errors. Your website has JS error on front-end which affects wpDiscuz JS function. Please activate wpDiscuz and leave some URL to allow us check and find problem maker plugin or theme function. This is definitely not wpDiscuz issue.
    You can find the problem even yourself by deactivating other plugins and activating one by one, then changing the theme. You just need to know that wpDiscuz doesn’t have such error, this error only happens when some other plugin or theme JS generates JS error. JS has no chance to work if there is even one error on front-end.

    Thread Starter adiga762

    (@adiga762)

    Thanks for the reply. If I have a JS error causing this, why aren’t any of the other 20+ plugins that access the same JS files affected by it?

    Unfortunately, I don’t really have a lot of time to mess with shutting down all of my plugins and swapping themes right now.

    Do you have any reference to the JS errors found through other users. I didn’t see those in the help forums.

    Thanks

    Plugin Author gVectors Team

    (@gvectors-team)

    I don’t think your 20 plugins have AJAX actions on front-end. Those don’t related to this, they only can generate errors. Also it may happen when some plugin or theme function generates PHP error and it affects header. Even a single space or line break of your theme functions.php can crash all AJAX requests from front-end.
    So here are the reasons:

    1. You have PHP “Notice” or “Warning” Errors caused buy plugins or the theme (you can find those in server error log file or by deactivating them)
    2. You have JS error on front-end generated by Plugins or the theme.

    Both can be debugged by deactivating plugins and changing themes.

    P.S. I think no other plugins use AJAX requests on your front-end so they don’t have any problem. If you don’t want to spend 10 min on finding the real reason of this error please don’t decrease wpDiscuz rating which is just a victim of other scripts.

    Thread Starter adiga762

    (@adiga762)

    You are correct… definitely not 20 AJAX plugins. However, pretty much all of them are dependent on the same JS files in some way or another. Anyway, I have already spent way more than 10-min finding the “real reason” for the problem. Still no luck unfortunately. I will temporarily up my rating to 4-stars while I keep trying… only because you were willing to offer some feedback.

    Either way, the hyper-sensitivity of this plug-in that you are describing is concerning. WordPress plugins don’t live in a bubble. They have to play well with others and with themes. Not sure what the solution is here, but forcing folks to disable all plugins and switch themes is not it.

    Plugin Author gVectors Team

    (@gvectors-team)

    Thank you adiga762
    Please note, this is not a “hyper-sensitivity”. If your WordPress has PHP output in buffer, all AJAX requests and headers will have no chance to work, it doesn’t matter you use wpDiscuz or other plugins.
    When you create a website you should make sure the plugins and the theme you use don’t generate errors in buffer. In 99% cases hosting servers don’t display these errors so you don’t even aware about them.
    Also if you have edited the functions.php of your theme you should make sure there are no spaces and line breaks before <?php and after ?> PHP code closing tags. This is also a output data and will affect all AJAX and header actions on front-end.

    • This reply was modified 3 years, 6 months ago by gVectors Team.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Wanted to give 5-stars but can’t…’ is closed to new replies.