×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Comments not saving

Comments not saving 8 years 8 months ago #31833

  • Vijay
  • Vijay's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Karma: -6
  • Thank you received: 0
Hi,
I am having an issue with saving comments on frontend.
I checked the browser console and found the following error

<b>Fatal error</b>: Call to undefined method JDocumentJSON::isHtml5() in <b>/****/****/public_html
/libraries/joomla/document/html/renderer/head.php</b> on line <b>66

You can check this page vacuum-cleaner-advisor.com/Euro-Pro-Vacuums/Shark-NV652.html

Please help.

Comments not saving 8 years 8 months ago #31839

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Vijay,
You have a system plugin that is screwing our ajax request. I would disable all non-core joomla system plugins until the comment saving is working again. Once it is, then I would start enabling the plugins until it breaks again. Then you'll know which plugin is causing that and you could talk with the developer of that plugin to fix the issue.

Regards,
Daniel

Comments not saving 8 years 8 months ago #31842

  • Vijay
  • Vijay's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Karma: -6
  • Thank you received: 0
Hi Daniel,
Thanks for the reply. I will double check. But I doubt it is a plugin issue.
I have the exact copy of the site on another domain and it works good there.
demo.dotjoomla.com/vca/Euro-Pro-Vacuums/Shark-NV652.html

Screenshot - prntscr.com/81s06l

Kind Regards
Vijay

Comments not saving 8 years 8 months ago #31872

  • Vijay
  • Vijay's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Karma: -6
  • Thank you received: 0
Hello,
I am trying to write custom sql code to insert the comments into the table. Its gets inserted too but not showing in admin.
I m inserting the values in jos_comment table.
Do we need to insert in any other table? Which fields are necessary and which i need to omit.

Please help.

Thanks

Comments not saving 8 years 8 months ago #31873

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
have you set a correct component? You also need to have a configuration for that component.

Comments not saving 8 years 8 months ago #31874

  • Vijay
  • Vijay's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Karma: -6
  • Thank you received: 0
Yes, I have set com_content. actually I was having the error on live site and find that the error is thrown while saving the comment. So I am using the custom sql code.

Comments not saving 8 years 8 months ago #31877

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Are you talking about this error:
<b>Fatal error</b>: Call to undefined method JDocumentJSON::isHtml5() in <b>/****/****/public_html
/libraries/joomla/document/html/renderer/head.php</b> on line <b>66
Have you fixed it. Why are you manually saving comments in the database?

Regards,
Daniel

Comments not saving 8 years 8 months ago #31880

  • Vijay
  • Vijay's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Karma: -6
  • Thank you received: 0
I was trying to debug the issue. Find that the error occurs in the function $table->store() in insert function in components\com_comment\models\comment.php file.
So I tried to add direct sql query to insert comments in database. it is also inserting in database but not showing in admin.

Comments not saving 8 years 8 months ago #31901

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
The issue is not in comment.php . The issue is a plugin on your site. Think for a second - would this plugin would be downloaded 1000s of times if there was an issue in it with storing comments???? A custom plugin on your site is screwing this. Just find out which plugin is that and disable it.

Regards,
Daniel

Comments not saving 8 years 1 month ago #33763

  • Candace
  • Candace's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
I can't figure it out either. I disabled all the plugins and their is still an issue

Comments not saving 8 years 1 month ago #33765

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
link?
  • Page:
  • 1
Time to create page: 0.363 seconds