I've been getting a couple of warnings / errors that might need attention.

The first error complains about node_time_tracker_get_spend() being called without a second argument on certain pages. (line 133 in node_time_tracker.module).

The second error is a bunch of SQL errors after editing a node that is being time tracked:

* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nid = 2' at line 1 query: DELETE FROM node_time_tracker_hierarchy WEHRE nid = 2 in /hsphere/local/home/auscribe/auscribe.com.au/includes/database.mysql.inc on line 172.
* user warning: Table 'auscrib_drupal.node_time_tracker_hierarchy' doesn't exist query: INSERT INTO node_time_tracker_hierarchy SET nid = 2, parent = 0 in /hsphere/local/home/auscribe/auscribe.com.au/includes/database.mysql.inc on line 172.

One error represents a basic typo (WEHRE) ... see the SQL DELETE statement, it is wrong.

The other error seems more sinister ... there is no SQL in the module install file for creating this table (node_time_tracker_hierarchy). What is it used for?

I would really like to use this module. Can you please have a look at the source, maybe post a fix?

Thanks in advance.

Comments

matt_harrold’s picture

Hi,

I modified the node_time_tracker.module and the warnings go away.
Sorry, I don't have diff and can't post a patch.

133: function node_time_tracker_get_spend($node, $user=false) // added default argument for $user

I also commented out lines 225,226, and 227.

I assume this is a work in progress, keep up the good work.

robertgarrigos’s picture

Status: Active » Fixed

Thanks Matt. I committed those changes to dev version.

Anonymous’s picture

Status: Fixed » Closed (fixed)