Blog

On PHP, Drupal, and all things web.

drupal - corrupted theme registry breaking all forms

I just encountered a strange issue while switching between two development branches of the same Drupal site. On branch A the site worked normally, but on branch B none of the forms contained any fields.

drupal - another white screen of death issue

Any seasoned Drupal developer has undoubtedly, at one point or another, come across the infamous "white screen of death" (WSOD) issue. While there are many documented (common) potential causes for this problem, today I encountered a new one, and just like all the ones before, it was a huge pain to find it!

moving files to parent directory

This command will move all files & directories to the parent directory:

find . -maxdepth 1 -exec mv {} .. \;

... it will throw a warning when trying to move the current (.) directory:

mv: cannot move .' to../.': Device or resource busy

using GREP to search specific file types

Every developer knows and loves GREP, the great search utility available on all Unix-based systems; while it does a great job searching, the options are a little lacking. One such option is restricting the search to only specific file types/extension. Luckily that functionality can be easily wrapped up in a handy script.

removing aptana's .tmp* files

The Aptana Studio IDE (my drug of choice) generates hidden .tmp files whenever you edit a PHP or HTML file. These are used generate the HTML preview within the editor. For those of us who don't use the preview feature, these files can be a nuisance.