EPrints Technical Mailing List Archive

Message: #08691


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] enlarging of text field fails?


CAUTION: This e-mail originated outside the University of Southampton.
Dear all,

after enlarging of 'volume' to
{
        name => 'volume',
        type => 'text',
        maxlength => 9,
},
updating the repository and restarting apache I got the following error (even for a length of 7 ...):

DBD::mysql::st execute failed: Data too long for column 'volume' at row 1 at /usr/share/eprints/perl_lib/EPrints/Database.pm line 1187.
UPDATE `eprint` SET `volume`=?, `date_year`=?, `date_month`=?, `date_day`=?, `lastmod_year`=?, `lastmod_month`=?, `lastmod_day`=?, `lastmod_hour`=?, `lastmod_minute`=?, `lastmod_second`=?, `edit_lock_until`=? WHERE `eprintid`='9795': 1406 at /usr/share/eprints/perl_lib/EPrints/Database.pm line 1595.
        EPrints::Database::update(EPrints::Database::mysql=HASH(0x55ca085bf8b0), EPrints::DataSet=HASH(0x55ca03701e78), HASH(0x55ca0865be00), HASH(0x55ca08669a80)) called at /usr/share/eprints/perl_lib/EPrints/DataObj.pm line 720
        EPrints::DataObj::commit(EPrints::DataObj::EPrint=HASH(0x55ca086699a8), undef) called at /usr/share/eprints/perl_lib/EPrints/DataObj/EPrint.pm line 1028
        EPrints::DataObj::EPrint::commit(EPrints::DataObj::EPrint=HASH(0x55ca086699a8)) called at /usr/share/eprints/perl_lib/EPrints/Workflow/Stage.pm line 221
        EPrints::Workflow::Stage::update_from_form(EPrints::Workflow::Stage=HASH(0x55ca0865b848), EPrints::ScreenProcessor=HASH(0x55ca03298358)) called at /usr/share/eprints/perl_lib/EPrints/Workflow.pm line 401
        EPrints::Workflow::update_from_form(EPrints::Workflow=HASH(0x55ca08675878), EPrints::ScreenProcessor=HASH(0x55ca03298358)) called at /usr/share/eprints/perl_lib/EPrints/Plugin/Screen/EPrint/Edit.pm line 152
        EPrints::Plugin::Screen::EPrint::Edit::action_save(EPrints::Plugin::Screen::EPrint::Edit=HASH(0x55ca0865bba8)) called at /usr/share/eprints/perl_lib/EPrints/Plugin/Screen.pm line 240
        EPrints::Plugin::Screen::from(EPrints::Plugin::Screen::EPrint::Edit=HASH(0x55ca0865bba8)) called at /usr/share/eprints/perl_lib/EPrints/Plugin/Screen/EPrint/Edit.pm line 117
        EPrints::Plugin::Screen::EPrint::Edit::from(EPrints::Plugin::Screen::EPrint::Edit=HASH(0x55ca0865bba8)) called at /usr/share/eprints/perl_lib/EPrints/ScreenProcessor.pm line 339
        EPrints::ScreenProcessor::process("EPrints::ScreenProcessor", "session", EPrints::Repository=HASH(0x55ca06c5b660), "template", undef, "url", "/cgi/users/home") called at /usr/share/eprints/cgi/users/home line 43
        ModPerl::ROOT::ModPerl::Registry::usr_share_eprints_cgi_users_home::handler(Apache2::RequestRec=SCALAR(0x55ca067ce228)) called at /usr/lib/x86_64-linux-gnu/perl5/5.28/ModPerl/RegistryCooker.pm line 207
        eval {...} called at /usr/lib/x86_64-linux-gnu/perl5/5.28/ModPerl/RegistryCooker.pm line 207
        ModPerl::RegistryCooker::run(ModPerl::Registry=HASH(0x55ca02a9c850)) called at /usr/lib/x86_64-linux-gnu/perl5/5.28/ModPerl/RegistryCooker.pm line 173
        ModPerl::RegistryCooker::default_handler(ModPerl::Registry=HASH(0x55ca02a9c850)) called at /usr/lib/x86_64-linux-gnu/perl5/5.28/ModPerl/Registry.pm line 32
        ModPerl::Registry::handler("ModPerl::Registry", Apache2::RequestRec=SCALAR(0x55ca067ce228)) called at -e line 0
        eval {...} called at -e line 0

What went wrong? What did I miss to adapt?

Many thanks for any hint in advance
Thomas