Subscribe to RSS - drupal

drupal

When running the update script on a new a new installation of Drupal version 6.20, I was getting this:

<!--[if lt IE 7]--> Fatal error: Call to undefined function phptemplate_get_ie_styles() in htdocs/themes/garland/maintenance-page.tpl.php on line 23

The problem turned out be that the .info file was missing for the Minnelli theme, and that's the default theme for the maintenance page. I'm not sure how it went missing, but I just copied minnelli.info from a different Drupal installation into the themes/garland/minnelli/ directory and all was well.

How to keep Drupal from caching a page

Submitted by jrb on Mon, 10/18/2010 - 17:44

I ran across a problem on a site today where some custom voting code had stopped working correctly.  Eventually, I figured out that the actual problem was due to the page being cached, so it wasn't showing the updated results.  I didn't want to turn off caching so, my next step was to figure out how to turn caching off for a particular page.  The Google found CacheExclude, a module that allows you to do just that-- turn caching off for specific pages. 

Tags: 

A fix for Drupal form error messages not showing up

Submitted by jrb on Thu, 07/16/2009 - 18:07

I was having a problem with using the Login block form on the home page.  Error messages related to the login (e.g. "Password incorrect.", etc.) were not getting dispalyed when the login failed.  They would show up only after reloading the page again. 

In my template, I had this:

<div class="content">
    <?php print drupal_get_form('user_login_block'); ?>
</div>

Fix for very slow Drupal Admin pages

Submitted by jrb on Thu, 07/09/2009 - 14:58

On one of the Drupal sites I was developing, admin pages were getting (unbearably) slow-- about 30 seconds to load each page.  Using the Google, I found a couple of articles that pointed the finger at the Update Status module:

I released my first Drupal module today!

Submitted by jrb on Wed, 07/08/2009 - 00:33

It's Contact Hide Email... I wrote this code a while back, presented it at a Drupal user group, got a Drupal CVS account, and finally got around to creating an actual release tonight.  What does it do?  Funny you should ask...