SID-00879: Does Gen PDF Addon work under 5.0.0?
| Status: |
Answered |
TWiki version: |
5.0.0 |
Perl version: |
5.10.1 |
| Category: |
GenPDFAddOn |
Server OS: |
Slackware 13.1, kernel 2.6.33.4-smp |
Last update: |
10 years ago |
I have installed
GenPDFAddOn.zip and htmldoc-1.9.x-r1571.tar.gz without problems under 4.2.2. Yet using the same source and following the same steps under 5.0.0 gives an error when attempting to run
http://192.168.0.3/twiki/bin/genpdf/[anything]
To check it's not the base slackware system, I transported a mirror of my working 4.2.2 Twiki dir (complete with
GenPDF) over and tested it, that works fine on the same system.
From Twiki's error.log
[Mon Jun 28 15:56:18 2010] genpdf:
Undefined subroutine CGI::remoteAddress
at /home/twiki/lib/TWiki/LoginManager/Session.pm line 45
at /usr/lib/perl5/5.10.1/CGI.pm line 867
CGI::_compile called at /usr/lib/perl5/5.10.1/CGI.pm line 831
CGI::AUTOLOAD('CGI=HASH(0x8199268)') called at /home/twiki/lib/TWiki/LoginManager/Session.pm line 45
TWiki::LoginManager::Session::load('TWiki::LoginManager::Session',
undef, 'CGI=HASH(0x8199268)', 'HASH(0x8800eb0)') called at /usr/lib/perl5/site_perl/5.10.1/CGI/Session.pm line 64
CGI::Session::new('TWiki::LoginManager::Session', undef, 'CGI=HASH(0x8199268)', 'HASH(0x8800eb0)') called at /home/twiki/lib/TWiki/LoginManager.pm line 321
TWiki::LoginManager::loadSession('TWiki::LoginManager::TemplateLogi
n=HASH(0x87a8860)', undef) called at /home/twiki/lib/TWiki/Users.pm line 115
TWiki::Users::new('TWiki::Users', 'TWiki=HASH(0x86a3730)') called at /home/twiki/lib/TWiki.pm line 1552
TWiki::new('TWiki', undef, 'CGI=HASH(0x8199268)') called at /home/twiki/lib/TWiki.pm line 3342
TWiki::initialize('/TechGuide/Posie2SlackCfg', undef, undef, 'http:
//192.168.0.3/twiki/bin/genpdf', 'CGI=HASH(0x8199268)') called at /home/twiki/lib/TWiki/Contrib/GenPDF.pm line 595
TWiki::Contrib::GenPDF::viewPDF() called at /home/twiki/bin/genpdf
line 43
Which is pretty much what the browser returns too, along with "Software Error: ... "
The only thing upgraded from stock slackware 13.1 was CGI::Session 4.20 to 4.42, this didn't help this problem though.
Have googled for other solutions but found nothing useful.
--
MikeJBrown - 2010-06-28
Discussion and Answer
We are still testing extensions for TWiki-5.0 compatibility. So far we tested over 100. We have not yet tested the
GenPDFAddOn.
Your help in testing (and if possible fixing in case of an issue) is greatly appreciated.
The error message you report is likely cause by calling an unofficial function. TWiki extensions that call only the documented TWiki::Func API do not have upgrade issues.
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-08-02
I have the same issue! I would be very happy if anybody could solve this problem
--
WolfgangG - 2010-08-02
got the same ...
--
CarlaReitzenstein - 2010-08-06
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-10-06
Quick fix:
Seems that there is a problem at /lib/TWiki/LoginManager/Session.pm line 45. In 5.0.1 it stands as:
$ENV{REMOTE_ADDR} =
@_
== 1 ? $_[0]->remoteAddress : $_[1]->remoteAddress;
while it should be:
$ENV{REMOTE_ADDR} =
@_
== 1 ? $_[0]->remote_addr : $_[1]->remote_addr;
I've changed it and
GenPDF works again.
--
SzymonSobczyk - 2011-03-04
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.