Drupal 6

Speedup Drupal 6 ... turn off Update Status

It turns out that the Update module that comes with Drupal runs some pretty hefty queries. While trying to debug a crazy mysql error we were seeing on one of the sites I work on (http://drupal.org/node/361563) it occured to me that there is no reason why we should have the update module enabled on our production site at all.

Turning it off on production (while leaving it on on staging) gave the site a nice litte pick-me-up especially after clearing the cache.

Read on

Debugging Memory Problems During Cron Run

Recently my cron stopped running completely and when I would manually visit mysite.com/cron.php I'd get a message like this:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in ...

So how do I debug this? I went to module.inc then added a bit of code to module_invoke_all();

Read on

Customizing Drupal Forms: What I just learned

I've been working on a project that required some pretty heavy-duty customizations to how the user registration form looks and while getting everything to work I learned a few things that have changed the way I look at customizing forms in Drupal. Here is a quick summary of what I already new, and what I know now.

Read on

Drush is my friend

Drush (Drupal + Shell) is a set of scripts that lets you control your Drupal site directly from the command line. Without every touching your mouse you can clear the cache, do an SQL Dump ,and even download and enable modules directly from drupal.org. 

Since inserting Drush into my workflow I've saved hours of downloading modules and adding them into my svn repositories (drush dl); grabbing top-level information about my sites (drush st); and even running some quick code snippits (drush eval).

Sooo good.

Read on

Drupal Modules: PathAuto

PathAuto is an elegantly simple module. It lets you create automated alias rules so that your URLs remain relevant and seo friendly based on node types. For example, on this site I have pathauto setup to create a /blog/title-of-post. More correctly I have pathauto setup to create /blog/title_post by using its built in mechanism for omitting certain words from the automated URL alias.

Read on

Managing and deploying Drupal sites using SVN & MAMP

It's simple: Drupal + SVN = happy web developer.

This is the story of how I generally structure my Drupal based sites using Subversion (SVN) to make development, versioning and deployment easy and well-organized. A quick note: this post assumes that you already know the nitty gritty of how to use SVN and the basic setup and structure of a Drupal-based site.

Read on

Drupal Modules: Backup & Migrate

When I first installed the backup & migrate module I was just looking for a quick and easy way to backup the database of one of my Drupal-based sites and it served that purpose well (even letting me schedule backups), but I didnt realize how useful it would be to my development process. Here's what I mean… My usual development process usually goes something like this:

Read on

Drupal Modules: Administration Menu

You know that rule about the simplest solutions being the best solutions? Well here you have a module that takes all of your admin tools and places them in a simple dropmenu at the top of every page on your site (for admins only, of course). This module is as simple as they come - no configuration necessary (there are a couple of options if you can't live without fiddling) - but it can save you tons of time when your trying to do some serious site maintainence.

Read on