Cheshire Cat Computing

Software support and information
It is currently Wed May 22, 2013 1:09 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Jan 06, 2005 8:04 pm 
Offline
User

Joined: Tue Jan 04, 2005 12:30 am
Posts: 8
I made suggested modifications but it didn't seem to help. Here is the error log from apache:
Code:
 main::readcfgfile() called too early to check prototype at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 88., referer: http://www.myhost.com/cgi-bin/routers2.cgi?rtr=as17.cfg&bars=Cami&xgtype=d&page=menub&xgstyle=l2&if=as17_Fa0_0&xmtype=options

main::readcfgfile() called too early to check prototype at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 88., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf

Use of uninitialized value in undef operator at /usr/local/mrtgweb/cgi-bin/pdfreport.cgi line 116., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf

HTMLDOC(6020) INFO: HTMLDOC 1.8.24 Open Source starting in CGI mode., referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf

HTMLDOC(6020) INFO: TMPDIR is "/tmp/report-6015", referer: http://www.myhost.com/cgi-bin/pdfreport.cgi?x=1&fi=as17.cfg&url=http%3A%2F%2Fwww.myhost.com%2Fcgi-bin%2Frouters2.cgi&t=graph&L=0&r=&h=&b=javascript%3Ahistory.back%28%29%3Bhistory.back%28%29&conf=%2Fusr%2Flocal%2Fmrtgweb%2Frrd%2Frouters2.conf


Also in IE window I get this instead of the PDF file:

Code:
Content-Type: text/plain

HTMLDOC Version 1.8.24 Open Source Copyright 1997-2004 Easy Software Products, All Rights Reserved.
This software is governed by the GNU General Public License, Version 2, and
is based in part on the work of the Independent JPEG Group.



Here is the config part of pdfreport.cgi
Code:
my( $HTMLDOC ) = "/usr/bin/htmldoc"; # location of htmldoc executable
my( $ROUTERSCGI ) = "/usr/local/mrtgweb/cgi-bin/routers2.cgi"; # location of routers2.cgi
my( $WORKDIR ) = "/tmp";             # temporary work directory
my( $WEBROOT ) = "/usr/local/mrtgweb/pdf";    # docroot for your web server
my( $CONFPATH ) = "/usr/local/mrtgweb/cfg";  # default path for cfg files
my( $VERSION ) = "1.0";


This is the permissions for $WEBROOT directory:
drwxrwxrwx 2 root root 4096 Jan 3 13:12 pdf

Any other ideas how it can be fixed?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 8:29 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Your system clearly is working very differently from mine...

I'll upgrade my htmldoc exec to match yours, and I'll check the code again. I think you may have a different perl version to me... I have 5.8.0, do you have 5.6 or even 5.005? I think you need at least 5.6.

Since I can't duplicate it, its a bit hard to do anything but treat the symptoms empirically.

To prevent the uninitialised value error, line 116 change to:
undef $ENV{QUERY_STRING} if(defined $ENV{QUERY_STRING});

(this is weird since QUERY_STRING really should be set. Maybe a perl version problem)

To stop htmldoc thinking it is running as a CGI, line 140 add:
$ENV{TMPDIR} = $tdir;
$ENV{TMP} = $tdir;
undef $ENV{QUERY_STRING};

(This looks like a htmldoc version problem, with htmldoc trying to be clever)

To prevent the prototype check error, line 59 remove ($) and change to:
sub readcfgfile {

(this might be a perl version problem)

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 5:26 am 
Offline
User

Joined: Tue Jan 04, 2005 12:30 am
Posts: 8
I did all the suggested modifications but it didn't help. The only fixed error was the one regarding prototype check. I still get "Use of uninitialized value in undef operator" errors. Also, htmldoc is still "starting in CGI mode". Here is my perl version:
Code:
[user@comp user]$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)


This really could be the htmldoc problem by I don't know how to correctly remove existing version in order to install v1.8.23. I guess I'll just have to wait untill you upgrade yours to v1.8.24. In case it helps my OS is RedHat Enterprise Linux AS v3. (Linux host 2.4.21-4.ELsmp )

P.S. In case you didn't know it, there is a great piece of software for emulating hardware PC on Windows and Linux for installing "virtual" OS for debugging and testing purposes. It's called VMWare http://www.vmware.com/download/workstation.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 10, 2005 11:14 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
I've some other more urgent work on at the moment, so this is being a bit delayed. This is still on the to-do list, though. I think it may be the HTTP_REFERRER env var that it is using to (incorrectly) select CGI mode, so I'll look into that.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 16, 2005 9:44 pm 
Offline
Silver User

Joined: Fri Mar 11, 2005 3:43 am
Posts: 15
I have got the same problems as you and that comes from the htmldoc version. I have installed the 1.84 version and that doesn't work i have also the same error text/plain but now it works I have just installed the 1.83 version in the same path that the 1.84 and it has erased the previous version and now it works...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 17, 2005 9:39 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Yes, I have had other reports that 1.8.24 of HTMLDOC takes different parameters.

I have 1.8.23 here which works fine. I will install 1.8.24 at some time and make the required changes, but I'm a bit short on time. Also trying to get language setup for 2.16 ready for easter....

Check your version with 'htmldoc --version'

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 7:12 am 
Offline
User

Joined: Sat Mar 26, 2005 5:40 am
Posts: 5
I was curious if anyone had ever gotten pdfreport to work after getting the "unitialized operator at undef operat" at line 117 error. I am trying to get this to work with htmldoc 1.8.23, perl 5.8.7 and routers2 version 2.16 beta 7. In my apache error_log I see this error at line 117 and 143,.

Mark


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 09, 2006 1:40 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Sorry - worload has gotten the better of me. What with all the 'real' work, plus new release of routers2 and nagevlog, not to mention society work and small daughter, I've not been able to work on this and wont be able to for at least 2 months. It's in the pipeline, though...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group