Fatal error: Call to undefined function: node_access_join_sql() in c:\Inetpub\wwwroot\php\lang\hu\modules\taxonomy_assoc\taxonomy_assoc.module on line 475

Reason: node_access_join_sql() is renamed in 4.6.
See:

http://drupaldocs.org/api/4.5/group/node_access
http://drupaldocs.org/api/4.6/group/node_access

G.

Comments

poipoipoipio’s picture

Fatal error: Call to undefined function: node_access_where_sql() in c:\Inetpub\wwwroot\php\lang\hu\modules\taxonomy_assoc\taxonomy_assoc.module on line 475

And if I rename
node_access_where_sql to _node_access_where_sql and
node_access_join_sql to _node_access_join_sql
in taxonomy_assoc.module,
i have a lot of mysql error:

user error: 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 'GROUP BY t.tid' at line 1
query: SELECT t.tid, COUNT(DISTINCT(n.nid)) AS c FROM ort_db_hu.term_node t INNER JOIN ort_db_hu.node n ON t.nid = n.nid WHERE n.status = 1 AND GROUP BY t.tid in c:\Inetpub\wwwroot\php\lang\hu\includes\database.mysql.inc on line 66.

dtabach’s picture

Sorry if this info is irrelevant (I'm not a programmer), but it won't hurt:
Having exactly the same error, I realized that it occurs only if the selected input format has Taxonomy_assoc filter enabled.

egfrith’s picture

StatusFileSize
new943 bytes

I've managed to fix this problem with a hack. I'm attaching the patch.

I'm sure there is a better way of doing this, but I don't know enough about drupal to implement it.

egfrith’s picture

Status: Active » Needs review
StatusFileSize
new943 bytes