This is a follow-up bug discovered while working on fixing
Item6492.
Error message is shown: "TWiki detected an internal error - please check your TWiki logs and webserver logs for more information. Can't call method "binmode" on an undefined value"
when following these steps:
- go to attach screen
- browse to file 1
- browse to file 2
- browse to file 3
- browse to file 4
- remove file 2 and 3 from list (file 1 and 4 left)
- browse to file 5
- hit [upload]
--
TWiki:Main/PeterThoeny
- 15 Jun 2010
This is now fixed in SVN trunk and 5.0 branch.
Patch:
--- lib/TWiki/Request/Upload.pm (revision 18861)
+++ lib/TWiki/Request/Upload.pm (working copy)
@@ -94,7 +94,7 @@
sub handle {
my $fh = new IO::File( $_[0]->{tmpname}, '<' );
- $fh->binmode;
+ $fh->binmode if( $fh );
return $fh;
}
--
TWiki:Main.PeterThoeny
- 15 Jun 2010
Hi, I am getting the "Can't locate object method "binmode" via package "IO::File" with the Twiki-5.1.4 installed on XP. I also have
ActivePerl 5.8.6.811 installed. Anyone else seeting this problem? I checked Upload.pm file, it matches the new updated version. Thanks.
--
TWiki:Main.JayTim
- 2013-06-24
Any suggestion on how to update "CPAN:IO::File" library? When I type install IO:File in Perl Package Manager, I see the there are 4 different choices like IO-File-Cached, IO-File-Lockable, IO-File-Multi and IO-File-String, do i need to reinstall all of them? THanks.
--
TWiki:Main.JayTim
- 2013-06-24
Topic revision: r5 - 2013-06-24
- JayTim