Notice: Undefined index: name in system_sort_modules_by_info_name()

Got this error this morning. A quick burn through drupal.org didn't turn up an explanation of what, exactly, this error message means so I did a little digging. Long story short, if you're getting this error it means you've screwed something up in your module's .info file.

How I triggered this error

// $Id$
name = Force Password Change
...

The fix

; $Id$
name = Force Password Change

Takeaway

Apparently .info files with php style comments in them make system.module angry. Live and learn.

Freeman on web stuff

If it's wrong, bad or
stupid, let me just say that
I am not surprised.

- author unknown

User login

Navigation

More Drupal hotness

Powered by Drupal, an open source content management system