On Tue Apr 21 09:05:44 2009, BOBTFISH wrote:
Show quoted text> Your plugin is broken with Catalyst 5.80 as you try to monkeypatch
> Catalyst::Request::Upload, by calling ->mk_accessors on it.
>
> This behavior was never supported and always a bad idea. Please update
> your code as so that it doesn't do this as suggested in
Catalyst::Upgrading
I'm seeing the same thing after upgrading to Catalyst 5.8:
Could not load class
(Catalyst::Plugin::Upload::Image::Magick::Thumbnail) because : You are
trying to modify Catalyst::Request::Upload, which has been made
immutable, this is not supported. Try subclassing
Catalyst::Request::Upload, rather than monkeypatching it at
/usr/local/share/perl/5.10.0/MooseX/Emulate/Class/Accessor/Fast.pm line 107
Catalyst::Component::mk_accessors('Catalyst::Request::Upload',
'_thumbnail_temp') called at
/usr/local/share/perl/5.10.0/Catalyst/Plugin/Upload/Image/Magick/Thumbnail.pm
line 128
require Catalyst/Plugin/Upload/Image/Magick/Thumbnail.pm called at
/usr/local/lib/perl/5.10.0/Class/MOP.pm line 138
eval {...} called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 138
Class::MOP::_try_load_one_class('Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 101
Class::MOP::load_first_existing_class('Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 144
Class::MOP::load_class('Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at /usr/local/share/perl/5.10.0/Catalyst.pm line 2453
Catalyst::_register_plugin('Cleavages',
'Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at
/usr/local/share/perl/5.10.0/Catalyst.pm line 2479
Catalyst::setup_plugins('Cleavages', 'ARRAY(0xa268700)') called at
/usr/local/share/perl/5.10.0/Catalyst.pm line 1003
Catalyst::setup('Cleavages') called at
/home/chisel/development/cleavag.es/Cleavages/trunk/script/../lib/Cleavages.pm
line 63
require Cleavages.pm called at script/cleavages_server.pl line 55
Compilation failed in require at /usr/local/lib/perl/5.10.0/Class/MOP.pm
line 138.
at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 124
Class::MOP::load_first_existing_class('Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at /usr/local/lib/perl/5.10.0/Class/MOP.pm line 144
Class::MOP::load_class('Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at /usr/local/share/perl/5.10.0/Catalyst.pm line 2453
Catalyst::_register_plugin('Cleavages',
'Catalyst::Plugin::Upload::Image::Magick::Thumbnail') called at
/usr/local/share/perl/5.10.0/Catalyst.pm line 2479
Catalyst::setup_plugins('Cleavages', 'ARRAY(0xa268700)') called at
/usr/local/share/perl/5.10.0/Catalyst.pm line 1003
Catalyst::setup('Cleavages') called at
/home/chisel/development/cleavag.es/Cleavages/trunk/script/../lib/Cleavages.pm
line 63
require Cleavages.pm called at script/cleavages_server.pl line 55
Compilation failed in require at script/cleavages_server.pl line 55.