This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5665 - can't use string as an array while strict refs in use for log file
Summary: can't use string as an array while strict refs in use for log file
Status: RESOLVED FIXED
Alias: None
Product: LogValidator
Classification: Unclassified
Component: logprocess.pl (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-27 22:37 UTC by Hugh Byrne
Modified: 2008-11-18 15:08 UTC (History)
0 users

See Also:


Attachments
proposed patch (509 bytes, patch)
2008-10-14 15:59 UTC, Olivier Thereaux
Details

Description Hugh Byrne 2008-04-27 22:37:21 UTC
Installed W3C-Logvalidator and try to run
>logprocess -f logprocess.conf
Can't use string ("\var\log/apache/access.log combi") as an ARRAY ref while "str
ict refs" in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.

I am running Windows XP SP2

Perl version as below
C:\Program Files\W3C-LogValidator>perl -v

This is perl, v5.10.0 built for MSWin32-x86-multi-thread
(with 3 registered patches, see perl -V for more detail)

Copyright 1987-2007, Larry Wall

Binary build 1002 [283697] provided by ActiveState http://www.ActiveState.com
Built Jan 10 2008 11:00:53

Any help would be much appreciated.
Comment 1 Olivier Thereaux 2008-04-29 04:59:27 UTC
Hello,

"\var\log/apache/access.log" looks odd, are you sure this is the path to your logs?

I'll try to look at why it triggers such an error.

Comment 2 Hugh Byrne 2008-04-29 22:23:15 UTC
(In reply to comment #1)
> Hello,
> "\var\log/apache/access.log" looks odd, are you sure this is the path to your
> logs?
> I'll try to look at why it triggers such an error.

Olivier many apologies for the typo I tried so many log combinations.
The issue appears to be that the process is failing before it attempts to open the file whether the file exists or not.

I have tried the following location examples and some more besides.

Can't use string ("\var\log\apache\access.log combi") as an ARRAY ref while 
"strict refs" in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can't use string ("/var/log/apache/access.log combi") as an ARRAY ref while 
"strict refs" in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can't use string ("'c:\weblogs\access.log' combined") as an ARRAY ref while 
"strict refs" in use at C:/Perl/site/lib/W3C/LogValidator/Config.pm line 167.
Can't use string ("c:\weblogs\access.log combined") as an ARRAY ref while 

I tried looking at the perl and docs etc. to debug but it was a bit beyond me I'm afraid as I have a very basic knowledge just about sufficient to install and run etc.
Comment 3 Olivier Thereaux 2008-10-14 15:59:51 UTC
Created attachment 602 [details]
proposed patch

Patch proposed (off-list) by Colm Dougan. To be tested.
Comment 4 Olivier Thereaux 2008-11-18 15:08:57 UTC
(In reply to comment #3)
> Created an attachment (id=602) [details]
> proposed patch
> 
> Patch proposed (off-list) by Colm Dougan. To be tested.

I applied Colm's patch and am moving forward with a release.