[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - pdfreport (htlmdoc) error

Cheshire Cat Computing

Software support and information
It is currently Tue Nov 11, 2025 4:32 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Mar 04, 2011 2:18 am 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
Can someone help not sure what is wrong?

ERRORS DETECTED IN HTMLDOC

/usr/bin/htmldoc --size a4 --webpage --no-links --no-strict --color -t pdf --quiet --path /var/www/html/mrtg --outfile /tmp/report-13171/report.13171.pdf > /tmp/report-13171/report.13171.pdf.err 2>&1

ERROR: No HTML files!
HTMLDOC Version 1.8.23 Copyright 1997-2002 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.


Top
 Profile Send private message  
 
PostPosted: Fri Mar 04, 2011 10:59 pm 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
Seeing this error in my httpd error logs

Pango-WARNING **: pango_layout_set_markup_with_accel: Error on line 1: Character ' ' is not valid inside an entity name, referer: http://172.16.1.135/cgi-bin/routers2.cg ... pe=options

Pls someone help me!


Top
 Profile Send private message  
 
PostPosted: Sat Mar 05, 2011 12:35 am 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
Looking at this a bit more and it looks like no html files are in $TMPFILE of the below command any help?

$cmd = "$HTMLDOC --size a4 --webpage --no-links --no-strict --color -t pdf --quiet --path $WEBROOT --outfile $TMPFILE ".(join " ",@files)." > $TMPFILE.err 2>&1";


Top
 Profile Send private message  
 
PostPosted: Tue Mar 08, 2011 9:51 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Can you give me a copy of the MRTG .cfg file corresponding to the PDF report that is failing? It seems that the problem is not with HTMLDOC, but earlier on since it is failing to create the web page that is subsequently converted to PDF.

Also, please let me know which version of Routers2 and which version of RRDTool you are using -- there were som incompatibilities between later versions of htmldoc and earlier versions of routers2. Upgrading routers2 to the latest verison would probably be a good idea if you are on an older 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 Send private message  
 
PostPosted: Wed Mar 09, 2011 9:33 pm 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
Hi Steve

Thank you for helping I have had to remove some things from the cfg file see below.

WorkDir: /var/www/html/mrtg/
LogFormat: rrdtool

MaxBytes[_]: 12500000
Options[_]: growright,bits
YLegend[_]: Bits per Second
Legend1[_]: Incoming Traffic
Legend2[_]: Outgoing Traffic
Legend3[_]: Maximal 5 Minute Incoming
Legend4[_]: Maximal 5 Minute Outgoing
LegendI[_]: In:
LegendO[_]: Out:
Directory[_]: TEST

Target[gw.gigoutside]: /IP Address Removed:test@IP Address Removed:::::2
Title[gw.gigoutside]: Gig0/0
PageTop[gw.gigoutside]: <H1>Gig0/0</H1>
routers.cgi*InMenu[gw.gigoutside]: No
routers.cgi*Summary[gw.gigoutside]: Outside
routers.cgi*Extension[gw.gigoutside]: "Trending Analysis" /cgi-bin/trend.cgi graph-sm.gif
routers.cgi*Extension[gw.gigoutside]: "PDF Report Monthly,Yearly" /cgi-bin/pdfreport.cgi?wmy=my pdf-sm.gif

routers2.cgi version v2.20
RRDtool version 1.4.3
htmldoc version 1.8.23

Running the below cmd works and the manually running the html file thought htmldoc makes a pdf.

/var/www/cgi-bin/routers2.cgi -D 'mds-gw-corsham-pdf-test.cfg' -T 'gw-corsham.gigoutside' -t dwmy -s l2p > /var/www/html/test.html


Top
 Profile Send private message  
 
PostPosted: Thu Mar 10, 2011 2:40 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I'm using htmldoc 1.8.27, rrdtool 1.4.trunk, Routers2 v2.22beta and things seem to be OK.

Since you're using Routers2 v2.20, try upgrading to 2.21 or 2.22beta since there was a fix for pdfreport support in 2.21 which corrected an issue with htmldolc 1.8.x. v2.20 also corrected some errors in pdfreport.cgi so make sure you have the latest version of pdfreport.cgi (shipped with the routers2 package)

The error message is caused by routers2 not producing any html files for htmldoc to process. Are you using authentication/autorisation in your routers2.conf at all?

Steve

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


Top
 Profile Send private message  
 
PostPosted: Thu Mar 10, 2011 10:06 pm 
Offline
User

Joined: Tue Aug 17, 2010 1:33 am
Posts: 7
I am running no authentication/autorisation upgraded htmldoc to 1.827 and Routers2 v2.21 still the same problem?


Top
 Profile Send private message  
 
PostPosted: Tue May 10, 2011 6:05 am 
Offline
Contributor

Joined: Sat Apr 01, 2006 6:44 am
Posts: 16
Location: Denver, CO

_________________
--
Garry Cook

The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing.
~Albert Einstein


Top
 Profile Send private message  
 
PostPosted: Tue May 10, 2011 11:08 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand

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


Top
 Profile Send private message  
 
PostPosted: Tue May 10, 2011 11:28 am 
Offline
Contributor

Joined: Sat Apr 01, 2006 6:44 am
Posts: 16
Location: Denver, CO
Excellent, thanks for the help Steve. It works perfectly now.

_________________
--
Garry Cook

The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing.
~Albert Einstein


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

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

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