when I try to create a feature i keep getting this error

user warning: Unknown column 'n.language' in 'where clause' query: SELECT DISTINCT * FROM filefield_paths WHERE (n.language ='en' OR n.language ='' OR n.language IS NULL) in public_html/sites/all/modules/filefield_paths/modules/features.inc on line 46.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

FiNeX’s picture

This is like: http://drupal.org/node/941668... the solution is the same. You've to change the filefield_paths_features_export_options() function on file filefield_paths/modules/features.inc:

From:

  $sql = db_rewrite_sql("SELECT * FROM {filefield_paths}");

To:

  $sql = db_rewrite_sql("SELECT * FROM {filefield_paths}","filefield_paths");
kndr’s picture

Status: Active » Needs review
FileSize
578 bytes

I can confirm this warning. In my opinion, db_rewrite_sql() is useless here. Unfortunatelly #1 doesn't work with "junk" module, which tries to join on nid field. I propose to get rid of this piece of code.

Deciphered’s picture

Status: Needs review » Fixed

Agreed, I don't see the need for a rewrite here, happy with the patch. Committed to 6.x-1.x.

Cheers,
Deciphered.

FiNeX’s picture

Thanks for the commit!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

roball’s picture

Version: 6.x-1.x-dev » 6.x-1.4
Assigned: Unassigned » Deciphered

The fix is now officially available in version 6.x-1.5.