Topic “Troubleshooting”

Drupal 5 CCK Fieldgroup Display Quirk

It’s 2010, nearly two years after the release of Drupal 6, yet there are still sites out there using Drupal 5. (We can’t all always be on the bleeding edge.) As time goes on, troubleshooting obscure problems gets harder and harder as new versions of old modules are released and discussed… so for those of you fighting the good fight to support a Drupal 5 project, here’s how I fixed some weirdness that I experienced with Drupal 5 CCK fieldgroups.

The problem I was having was that some grouped fields weren’t being themed with the standard <fieldset> tag wrapper when viewing (not editing) the nodes they belonged to.

I spent some time digging through my custom code, wondering what I might have done at the theme layer or in a hook_form_alter() to cause this weird, inconsistent behavior. I couldn’t find anything.

In a final act of headscratchery, I went back to the CCK ‘Display Fields’ form, where you can customize how your fields and fieldgroups get formatted when a node gets rendered for display. Everything looked normal, but just for the hell of it I switched the styling setting from ‘fieldset’ to ‘simple’ - that worked just fine. I then switched it back to ‘fieldset’, and re-saved. Suddenly the expected fieldset formatting kicked in for those misbehaving fields; I’m assuming there is a cache somewhere that simply needed clearing, and resubmitting the ‘Display Fields’ form did the trick.

Windows ICS Port Forwarding Gotcha

Yesterday I learned that Windows XP’s Internet Connection Sharing (ICS) allows you to do port forwarding, for example taking requests to port 80 from the internets and forwarding them to a machine behind the firewall. (Don’t ask why I’m using ICS. It’s not by choice, believe me.)

Syndicate content
Syndicate content

Twitter

  • Found my misplaced Hero 329! It had been in the truck for a few weeks. #fountainpen 4 years 48 weeks ago
  • Note to speakers & writers of the English language. It's D-R-A-W-E-R, not "draw". They speak english in what? 4 years 48 weeks ago
  • How to compile + install xdebug for entropy.ch PHP5 on OS X Leopard: http://is.gd/4WkwW 4 years 48 weeks ago
  • RT @ebertchicago: Martin Scorsese's list of the Top 11 Horror Films of All Time. http://j.mp/2AfcFX (yep, The Changling is on it) 4 years 48 weeks ago
  • @krazykatmama it's OK, our neighbor saw my plight on Facebook and within 10 minutes came over and brought us cupcakes! 4 years 48 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key