Notice: Undefined property: stdClass::$comment_count in tracker_page() (line 52 of /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/modules/tracker/tracker.pages.inc).
Notice: Undefined property: stdClass::$type in tracker_page() (line 62 of /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/modules/tracker/tracker.pages.inc).
Notice: Undefined property: stdClass::$title in tracker_page() (line 63 of /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/modules/tracker/tracker.pages.inc).
Notice: Undefined property: stdClass::$last_activity in tracker_page() (line 66 of /www/www-staging/drupal.sandbox.sanger.ac.uk/htdocs/modules/tracker/tracker.pages.inc).
Comments
Comment #1
zozodesbois commentedHello,
I have same messages with the tracker into Drupal 7.9...
Regards
Comment #2
stephenrobinson commentedHi,
Debug of $nodes looks like this, not all nodes have a entry in node_comment_statistics to join with...
Comment #3
catchThis looks like invalid nodes rather than a bug in tracker module.
Are all those nodes created via the UI, or have you created them with a migration script or similar? What contrib modules are installed?
Note that devel has a command "devel_rebuild_node_comment_statistics()" (might not be named exactly like that), which can repair this table.
Comment #4
stephenrobinson commentedThis was a D5, there is a comment on how to do this in D7 at http://drupal.org/node/137458#comment-5072066, will try adding this to my upgrade module .install
Comment #5
stephenrobinson commentedalso see http://api.lullabot.com/devel_rebuild_node_comment_statistics/7
Comment #6
zozodesbois commentedYes it's certainly due to an upgrade because I began my site with Drupal 7.0 and I applied all upgrades.
I don't understand, in which file do I put this function ?
Regards
Comment #7
stephenrobinson commentedyou could just try making a php page and past
devel_rebuild_node_comment_statistics();into it? Assuming you have the devel module installed and enabled.Comment #8
zozodesbois commentedHello SangersDrupalDude,
I have installed devel module and it's enabled.
(I play with the devel options and I have activated the devel block...)
I found the function you have mentioned before "devel_rebuild_node_comment_statistics()" at the end of the file devel.module
I have created a php page with your 3 lines.
I named it "devel_rebuild.php"
but wamp return me this message
Fatal error: Call to undefined function devel_rebuild_node_comment_statistics() in C:\wamp\www\GeekyHMB\devel_rebuild.php on line 2
Thanks for your help.
Zozodesbois
Comment #9
zozodesbois commentedI found the devel/php page, I put only the function name:
devel_rebuild_node_comment_statistics();
It's okay now, the notifications disappear into the tracker
Thanks
Comment #10
zozodesbois commentedSorry but, errors are still there...
I found into the tracker:
Anonymous (non vérifié) 0 Il y a 41 années 11 mois
Anonymous (non vérifié) 0 Il y a 41 années 11 mois
I think I must use the devel trace to found these entries and delete them in phpMyAdmin ...
Is it the good way ?
Comment #11
stephenrobinson commentedI made a hook to fix this in D7.12 as old attempts didnt work with this version:
Comment #12
katehsu888 commentedHi there,
I'm not a programmer and can't understand the above solutions.
Where to put the scripts? Or any other method to fix the following error
when viewing "q=tracker" for non-programmer please?
Notice: Undefined property: stdClass::$comment_count in tracker_page() (line 52 of C:\wamp\www\Drupal\modules\tracker\tracker.pages.inc).Notice: Undefined property: stdClass::$type in tracker_page() (line 62 of C:\wamp\www\Drupal\modules\tracker\tracker.pages.inc).Notice: Undefined property: stdClass::$title in tracker_page() (line 63 of C:\wamp\www\Drupal\modules\tracker\tracker.pages.inc).
I appreciate your quick response.
Comment #13
mschelstrate commentedWhen I try to run this script I receive an error because the table in my Drupal database is named "Comments" with an "s" on the end.
The query is using "Comment" as the table name.
What is the correct table name?
My installation as upgraded form Drupal6.
Should the table have been renamed during the upgrade?
Comment #14
stephenrobinson commentedMy table is named comment?
Stephen :)
Comment #15
andres_de commentedI recently had those errors on my site too. (/tracker/1)
I found out that they showed up because I forgot to uninstall the module tracker when I disabled it a while ago.
After re enabling it now I saw those errors because meanwhile some nodes have been deleted, but they still appeared in the db-table tracker_node.
Solution:
1. disable AND uninstall the module tracker
2. re enable it, and I my case the errors were gone.
Comment #16
zozodesbois commentedThanks Andres_de !
It's good for me.
Now tracker give no error.
Regards
Comment #16.0
zozodesbois commentedmissed a line