I got this error when trying to install
warning: Error parsing modules/outline/outline.info on line 4 in /root/path/sitename/includes/module.inc on line 195.

Apache version 1.3.37 (Unix)
PHP version 5.2.1
MySQL version 4.1.21-standard
Drupal 5.1

Comments

beginner’s picture

that's strange.
Can you copy here the content of modules/outline/outline.info ?

beginner’s picture

If you download this:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/ou...
and save as outline.info (replacing the original one): does it work?

CloudCuckoo’s picture

It's the exacting nature of PHP 5, there's no warning using PHP 4.4.4.

Here the content for outline.info

; $Id: outline.info,v 1.3 2007/01/07 20:50:46 pwolanin Exp $
name = Outline
description = Allows content to be organized into hierarchical outlines
version = $Name: DRUPAL-5--1-0 $

; Information added by drupal.org packaging script on 2007-03-21
version = "5.x-1.0"
project = "outline"

Using the cvs version linked to in #2 the error is still there.

According to http://drupal.org/node/64279#info

version = "$Name$"

Not having the double quotes is what gives the warning on PHP 5. I don't know if that's also the cause of the duplicate version information.

beginner’s picture

Status: Active » Fixed

Thanks Cloudy. I have committed the change to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)
kpm’s picture

I just grabbed the Outline module and navigated to /admin/build/modules and was greeted with the same warning:
warning: Error parsing sites/all/modules/outline/outline.info on line 4 in /var/www/drupal/includes/module.inc on line 195.
Here is the outline.info file contents:

; $Id: outline.info,v 1.3 2007/01/07 20:50:46 pwolanin Exp $
name = Outline
description = Allows content to be organized into hierarchical outlines
version = $Name: DRUPAL-5--1-0 $
; Information added by drupal.org packaging script on 2007-03-21
version = "5.x-1.0"
project = "outline"

I have edited the $Name to "$Name" and to "$Name$" as suggested, but the warning remains.

kpm’s picture

Status: Closed (fixed) » Active

forgot to change the status...

kpm’s picture

Status: Active » Closed (fixed)

Just realized I had to change

version = $Name: DRUPAL-5--1-0 $

to

version = "$Name: DRUPAL-5--1-0 $"

to make that warning go away...
I also removed all the line extra line breaks for good measure.

profrink’s picture

Thanks, had the same problem and changed:
version = $Name: DRUPAL-5--1-0 $
to
version = "$Name: DRUPAL-5--1-0 $"

All is well now