I have the same problem as some others in other issues already stated : Disqus seems to work fine first, but then nodes start to disappear ( the disqus block is not showing up anymore and the comments are not shown in the "latest comments" blocks anymore )
After a bit of research i'm pretty certain that there is something wrong on the nodeapi hook.
Here is what i what i observed
-> I start with an empty disqus table in the database
-> I have disqus enabled on contenttypes and the comments show up fine on the pages
-> My cron runs and updates some of my nodes with unrelated new data
-> Now all those nodes are in the disqus table with status 0 ( disabled )
-> The disqus comments are not showing on those nodes anymore and when i edit the nodes, the "enable disqus comments" box is unchecked
-> TRUNCATE on the disqus table and everything is back to normal again
I'm not 100% sure where exactly the error lies, but i suspect that either the "unset($node->disqus_status);" on the validate case of the nodeapi hook or something in the update case is wrong and unsetting/ignoring the checkbox.
Comment | File | Size | Author |
---|---|---|---|
#4 | disqus-nodeapi-1060682-4.patch | 905 bytes | mikeytown2 |
#1 | disqus-nodeapi_hooks-1060682-1.patch | 1.81 KB | jonathanpglick |
Comments
Comment #1
jonathanpglick CreditAttribution: jonathanpglick commentedI think there are two issues here:
The attached patch makes the following changes:
Let me know if any of this logic doesn't make sense and I need to make changes.
Comment #2
jsibley CreditAttribution: jsibley commentedIs there supposed to be a row in the disqus table for every node with disqus comments?
If so, and the Disqus table is empty, is there any way to rebuild it properly?
Comment #3
RobLoachThanks a lot! http://drupalcode.org/project/disqus.git/commit/aeae7f3
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedStill had an issue with this when running cron. Patch below fixes it for us.
For the curious here is output from
module_implements('cron');
on our setup.Comment #5
RobLoachThanks a lot..... http://drupalcode.org/project/disqus.git/commitdiff/887b8b5
Comment #7
neelan CreditAttribution: neelan commentedI used the give patch above #5 "http://drupalcode.org/project/disqus.git/blob/887b8b5:/disqus.module".
After replacing the module file. i can see that every node has the tick mark ON "enable the Disqus comment" in default of node edit form.
But while viewing node, Disqus is not appearing. I tried to run the cron also.
What i have to do for the getting disqus for missing nodes again.
(FYI, I am using Acidfree album module for importing bulk images which converts each images into node. While adding image node without using bulk import, disqus is working. )