0

I get this error when i select an option form a select list.

https://i.stack.imgur.com/ACmDg.png

Drupal Watchdog log Error Details

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'examplesite.field_data_field_for_date' doesn't exist: SELECT r.entity_id AS entity_id FROM {field_data_field_for_date} r WHERE (field_for_date_target_id = :db_condition_placeholder_0) ; Array ( [:db_condition_placeholder_0] => 0 ) in stopsale_getcurrentsale() (line 249 of /nfs/c05/h02/mnt/examplesite.com/html/sites/all/modules/custom_apps/stopsale/stopsale.module).

https://i.stack.imgur.com/ACmDg.png

1 Answer 1

1

You need to create a custom field called for_date which will be represented in the database as field_data_field_for_date or remove field_data_field_for_date from the SQL query.

2
  • Ah that makes sense, is there a way to list all fields in drupal 7?
    – Samp
    Feb 28, 2013 at 22:41
  • 1
    @Jerry You can find that list at /admin/reports/fields
    – Clive
    Feb 28, 2013 at 23:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.