Ways to shoot yourself in the foot: Custom module and theme names

Submitted by Marc on Thu, 04/04/2013 - 4:00pm

I was writing an extremely simple custom module (for a D6 site) to make use of hook_block. Every time I enabled the module the blocks no longer displayed on the pages. Since it had been a long time since I had done any work in D6, I figured there must be something I was overlooking in how I wrote the function. If I disabled the module (or even just commented out the hook_block) function then the blocks reappeared. So, I spent a fair amount of time looking over how I had written the hook. But, I couldn't see anything wrong with it.

Drupal on AWS with RDS - PDOException

Submitted by Marc on Fri, 03/08/2013 - 2:37pm

I am running a Drupal 7 site on AWS with an EC2 micro instance and RDS on Ubuntu 12.04. When I navigated to the URL patterns for Pathauto admin/config/search/path/patterns I was getting a nasty white screen with an error along the lines of PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. As it turns out, this is not the fault of Pathauto. The solution to this problem was to increase the max_allowed_packet value in the mysql server configuration.

Anonymous users are no longer allowed to leave comments

Submitted by Marc on Wed, 12/05/2012 - 2:31pm

I'm sorry to say that I have to admit defeat in the war against the spammers. I have been unable to take any automated measures to keep the site free from spam, and it has become too time consuming to keep deleting the spam comments.

If you wish to leave a comment on the site, you will need to request an account. Please accept my sincere apologies for this inconvenience. Rest assured that I am not trying to harvest email addresses so that I can spam people or sell those addresses to others.

How taxing is Taxonomy?

Submitted by Marc on Sun, 02/05/2012 - 3:31pm

It took me a long time when I first started using Drupal to conquer my fear of the Taxonomy module. With its technical sounding name, I figured you had to be a really smart advanced user to take advantage of something like that. The module description says "Enables the categorization of content." How am I supposed to know how to categorize my content? What if I do it wrong?

Triggers and Actions in action

Submitted by Marc on Mon, 05/09/2011 - 5:05pm

It's been a really long time since I've posted anything and since I was just fooling around on the site to set up an action/trigger pair to notify me when somebody comments, I figured it would make a nice quick entry. Here's an easy example of how you can make use of Drupal's Triggers and Actions (which come as part of core.)