[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error searching for contacts



I've set up a test database, on a test system and added a contact. Now when I try to search for a contact I go to this screen:

Contact Search

Entity Class
Name
Control Code
E-mail
Phone
Contact
Only Users (Only for Employees)
Notes
Account Number
Address
City
State/Province
Zip/Postal Code
Country
Active From
Date to



And just click search which gets me:


Error!

Unable to open script: LedgerSMB::Scripts::contact_reports : : You cannot coerce an attribute (start_from) unless its type (LedgerSMB::DBObject::Date) has a coercion at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 37
Moose::Exception::_build_trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x78da4c0)') called at reader Moose::Exception::trace (defined at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 9) line 7 Moose::Exception::trace('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x78da4c0)') called at /usr/lib/perl5/vendor_perl/Moose/Exception.pm line 49 Moose::Exception::BUILD('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x78da4c0)', 'HASH(0x78d0218)') called at /usr/lib/perl5/vendor_perl/Class/MOP/Method.pm line 128 Class::MOP::Method::execute('Moose::Meta::Method=HASH(0x7926708)', 'Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x78da4c0)', 'HASH(0x78d0218)') called at /usr/lib/perl5/vendor_perl/Moose/Object.pm line 56 Moose::Object::BUILDALL('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion=HASH(0x78da4c0)', 'HASH(0x78d0218)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 282 Moose::Meta::Class::new_object('Moose::Meta::Class=HASH(0x78da2b0)', 'HASH(0x78d0218)') called at /usr/lib/perl5/vendor_perl/Moose/Object.pm line 27 Moose::Object::new('Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'start_from', 'type_name', 'LedgerSMB::DBObject::Date', 'params', 'HASH(0x34eb9a0)') called at /usr/lib/perl5/vendor_perl/Moose/Util.pm line 51 Moose::Util::throw_exception('CannotCoerceAttributeWhichHasNoCoercion', 'attribute_name', 'start_from', 'type_name', 'LedgerSMB::DBObject::Date', 'params', 'HASH(0x34eb9a0)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 393 Moose::Meta::Attribute::_process_coerce_option('Moose::Meta::Attribute', 'start_from', 'HASH(0x34eb9a0)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 262 Moose::Meta::Attribute::_process_options('Moose::Meta::Attribute', 'start_from', 'HASH(0x34eb9a0)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 53 Moose::Meta::Attribute::new('Moose::Meta::Attribute', 'start_from', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date', 'definition_context', 'HASH(0x78d0338)') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Attribute.pm line 101 Moose::Meta::Attribute::interpolate_class_and_new('Moose::Meta::Attribute', 'start_from', 'definition_context', 'HASH(0x78d0338)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 716 Moose::Meta::Class::_process_new_attribute('Moose::Meta::Class=HASH(0x4682860)', 'start_from', 'definition_context', 'HASH(0x78d0338)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 709 Moose::Meta::Class::_process_attribute('Moose::Meta::Class=HASH(0x4682860)', 'start_from', 'definition_context', 'HASH(0x78d0338)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Meta/Class.pm line 573 Moose::Meta::Class::add_attribute('Moose::Meta::Class=HASH(0x4682860)', 'start_from', 'definition_context', 'HASH(0x78d0338)', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose.pm line 77 Moose::has('Moose::Meta::Class=HASH(0x4682860)', 'start_from', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at /usr/lib/perl5/vendor_perl/Moose/Exporter.pm line 405 Moose::has('start_from', 'is', 'ro', 'coerce', 1, 'isa', 'LedgerSMB::DBObject::Date') called at LedgerSMB/Report/Contact/History.pm line 275 require LedgerSMB/Report/Contact/History.pm at LedgerSMB/Scripts/contact_reports.pm line 19 LedgerSMB::Scripts::contact_reports::BEGIN at LedgerSMB/Report/Contact/History.pm line 0 eval {...} at LedgerSMB/Report/Contact/History.pm line 0 require LedgerSMB/Scripts/contact_reports.pm at (eval 453) line 1 eval 'require LedgerSMB::Scripts::contact_reports;' at lsmb-request.pl line 103 LedgerSMB::Handler::try {...} at /usr/share/perl5/vendor_perl/Try/Tiny.pm line 81 eval {...} at /usr/share/perl5/vendor_perl/Try/Tiny.pm line 72 Try::Tiny::try('CODE(0x467bb18)', 'Try::Tiny::Catch=REF(0x4426f40)') called at lsmb-request.pl line 120 LedgerSMB::Handler::call_script('contact_reports.pl', 'LedgerSMB=HASH(0x43b44e8)') called at lsmb-request.pl line 84 require lsmb-request.pl at /opt/ledgersmb/contact_reports.pl line 8 Compilation failed in require at LedgerSMB/Scripts/contact_reports.pm line 19. BEGIN failed--compilation aborted at LedgerSMB/Scripts/contact_reports.pm line 19. Compilation failed in require at (eval 453) line 1.

dbversion: 1.4.0, company: ChilliTronix

I've just downloaded from SVN.

Kind regards

Benedict White

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ledger-smb-users mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-users