Question
I've been trying to get the genhtml plug in working, unfortunately without much success. I seem to have come up agains a security problem of some kind. It doesn't seem to be able to even create the directories for the generation. The rest of the Twiki installation and plug-ins seem to work ok. Just can't get this one going. We do use .htaccess file to control security but not sure why this plug in needs anything different.
- TWiki version: 01-Dec-2001
- Web server:
- Server OS: Red Hat 7
- Web browser: IE
- Client OS: W2K
--
SimonMiles - 11 Feb 2002
I got the same situation. The wiki is working properly, but nothing happens when I click in the "Generate HTML" button.
--
AnibalRojas - 27 Feb 2002
Could you please both be a bit more specific about your configuration and your problems?
Simon: What do you mean by security problem? What is in your web server log files?
Do you run your perl code with taint check enabled(Just guessing from the word 'security')?
--
FrankHartmann - 04 Mar 2002
Configuration:
- TWiki version: 01-Dec-2001
- Web server: Apache/1.3.20 (Unix)
- Perl Version: 5.00503
- Server OS: Linux 2.4.16
- Web browser: IE 5.5
- Client OS: W2K Professional
Problem description: When I invoke
http://www.mysite.com/cgi-bin/twiki/bin/genhtml
, a form is displayed. When I click in the "Generate HTML" button the for is submitted, and comes back from the server, but no files or directories are generated under /twiki/pub. The problem is the same if a Web is specified. No error messages are shown.
The rest of the twiki installation is working properly. Pages can be edited, and attachments work ok.
--
AnibalRojas - 05 Mar 2002
Hello Anibal,
I have installed genhtml today from scratch, I had to do the following steps:
- unzip the thing at the correct place
- I think you did this as you can see the form
- I had to make chmod +x .../twiki/bin/genhtml
- I think you did this as you can see the form
- Then I filled in the Name of a web said generate HTML
- nothing happened, in my /var/log/apache/error.log was
Undefined subroutine CGI::dump
at ../lib/TWiki/Plugins/GenHTMLAddon/GenHTML.pm line 186
- in perl 5.6 CGI::dump was renamed to CGI::Dump. After correcting the statement I see now a list of topics being processed. This does not fit to your description as you said no error messages appeared. This is discussed in GenHTMLAddonDev.
So I have no idea what is the cause of your problem. Could you check, that you have not the above error in your log file? Do you have topics in your web, which do not Start with
Web? The second form allows to specify webs which shall be excluded, if you exclude all ....
--
FrankHartmann - 10 Mar 2002
Frank,
I got no access to error.log ... But before asking hosting support for it, I checked the the ouput of perldiver.cgi, and found no CGI::Dump or CGI::dump modules listed. I supouse this is the problem... Am I right?
I can ask for this module to be installed.
Thanks for your help.
--
AnibalRojas - 11 Mar 2002
I have been searching for CGI:Dump or CGI:dump and it is not listed in CPAN. I am not a Perl programmer but the support people of the hosting tried different modules (including CGI.pm), and the script doesn't run.
--
AnibalRojas - 22 Apr 2002
It turns out that CGI::Dump is a subroutine, not a Perl module, i.e. it's included in the CGI.pm module as of 2.752 anyway (on Perl 5.6.1 as it happens). Please ignore my earlier comment!
You
must get hold of the error log, it will waste a lot of time if you don't - see
TWikiDebugging.
Try editing the
GenHTML plugin code to use CGI::Dump instead of CGI::dump, as Frank suggested.
--
RichardDonkin - 22 Apr 2002