warning: Error parsing modules/outline/outline.info on line 4

nisguy - April 9, 2007 - 15:45
Project:Outline
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

beginner - April 9, 2007 - 15:58

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

#2

beginner - April 9, 2007 - 16:03

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?

#3

Cloudy - April 10, 2007 - 14:43

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.

#4

beginner - April 10, 2007 - 15:01
Status:active» fixed

Thanks Cloudy. I have committed the change to HEAD.

#5

Anonymous - April 24, 2007 - 15:04
Status:fixed» closed

#6

kpm - October 20, 2007 - 02:20

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.

#7

kpm - October 20, 2007 - 02:21
Status:closed» active

forgot to change the status...

#8

kpm - November 6, 2007 - 20:40
Status:active» closed

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.

#9

profrink - February 16, 2009 - 03:36

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

All is well now

 
 

Drupal is a registered trademark of Dries Buytaert.