Monthly Archives: May 2012

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘DATABASE.field_data_field_DELETED_FIELD’ doesn’t exist

Drupal 7 Error. The scenario is: you deleted a field from one of your content types, but you later get this PDOException. The error is saying that it can’t find a table with the name of the deleted field. The

Posted in drupal

Drupal 7 Views: link content to a file path

Let’s say we have a content type with a PDF file, and we want to link the body text of the node to the file. In the view: FORMAT: Show: Fields FIELDS Content: PDF file Exclude from display: Checked Formatter:

Tagged with:
Posted in drupal

Drupal 7 disable submit button

Here’s how to disable the submit and preview buttons in a Drupal module. $form[‘actions’][‘submit’][‘#disabled’] = TRUE; $form[‘actions’][‘preview’][‘#disabled’] = TRUE; Reference: http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7#actions

Tagged with:
Posted in drupal

rsync

Today I was sending a large number of files to my server. With rsync I was getting ‘broken pipe’ errors after a few hours of syncing files. Not nice. I realised I don’t need to rsync the files that are

Posted in bash