I'm using Drupal 6.1. I am trying to learn how to create modules and followed this tutorial:
http://drupal.org/node/206753

I got through steps 1-5 (which just involves writing the code) but cannot get past step 6 (installing the module). The build/modules page lists the module "On this date" but states that "This version is incompatible with the 6.1 version of Drupal core." and thus will not allow me to install the module. Why is this? I even went back and copy/pasted the code verbatim to be sure that there were no typos, but for some reason the module still cannot be enabled.

Comments

Nick Lewis’s picture

Double check that your module's .info file has this line in it somewhere:

core = 6.x

The behavior you describe is consistent with that line missing, or not being parsed for one reason or another. If all else fails, copy a core modules .info file and replace it with your own values.
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com

john.karahalis’s picture

Thank you very much for the reply. With the information you provided I was able to resolve the issue.

For anyone that might also stumble upon this issue, here's what happened. When I copy/pasted the second codeblock from this page - http://drupal.org/node/206756 - my text editor broke the line "A block module that lists links to content such as blog entries or forum discussions that were created one week ago." into two separate lines. As a result, the line 4 started with the word "entries" rather than with an option keyword such as "description" or "package". This presumably caused the parser to get confused and never reach the line "core = 6.x".

Thanks again.

Nick Lewis’s picture

w00t :-)
--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.onnetworks.com

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com

yakker’s picture

Awesome. One afternoon gone, but it coulda been three. ;)

I added a small edit to the tutorial page (not even sure why I'm allowed to do that, but I'm sure it will help anyone else hanging on this).