EPrints Technical Mailing List Archive
Message: #09298
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- To: David R Newman via Eprints-tech <eprints-tech@ecs.soton.ac.uk>, "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>, David R Newman <drn@ecs.soton.ac.uk>
- Subject: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- From: John Salter <J.Salter@leeds.ac.uk>
- Date: Wed, 3 May 2023 06:53:39 +0000
CAUTION: This e-mail originated outside the University of Southampton.
Hi,
Try this:
<component type="Field::Subject"> <field ref="campuses" /> </component>Sorry for a short reply - I'm on my phone!
Cheers,
John
From: eprints-tech-bounces@ecs.soton.ac.uk <eprints-tech-bounces@ecs.soton.ac.uk> on behalf of David R Newman via Eprints-tech <eprints-tech@ecs.soton.ac.uk>
Sent: 03 May 2023 07:48
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; MOHD.IZWAN SALIM <mohdizwan8733@uitm.edu.my>
Subject: Re: [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
Sent: 03 May 2023 07:48
To: eprints-tech@ecs.soton.ac.uk <eprints-tech@ecs.soton.ac.uk>; MOHD.IZWAN SALIM <mohdizwan8733@uitm.edu.my>
Subject: Re: [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
Hi Izwan,
You say that campuses is a new dataset but you have added the field as type 'subject'. This is not going to work you probably want to use type 'dataobjref':
https://wiki.eprints.org/w/Dataobjref_field
If campuses are actually specified in your subjects tree then you could use a field of type 'subject'. However, you would need to make sure you have section of you subject tree that contains all your campuses and then specify this parent subject's id this under the 'top' attribute of the subject typed field.
Regards
David Newman
You say that campuses is a new dataset but you have added the field as type 'subject'. This is not going to work you probably want to use type 'dataobjref':
https://wiki.eprints.org/w/Dataobjref_field
If campuses are actually specified in your subjects tree then you could use a field of type 'subject'. However, you would need to make sure you have section of you subject tree that contains all your campuses and then specify this parent subject's id this under the 'top' attribute of the subject typed field.
Regards
David Newman
On 03/05/2023 7:34 am, MOHD.IZWAN SALIM via Eprints-tech wrote:
CAUTION: This e-mail originated outside the University of Southampton.Dear all
Just add a new dataset - campuses to our repository. The type is subject. I already run epadmin update dan upgrade.
However, when I add <component><field ref="campuses" /></component> in our default page, it will show an error with the log indicated as below:
Undefined or invalid function: campuses
at /usr/share/eprints/perl_lib/EPrints/Repository.pm line 1853.
EPrints::Repository::call(EPrints::Repository=HASH(0x55fdea222a10), "campuses", EPrints::MetaField::Subject=HASH(0x7f6588b7b730), EPrints::Repository=HASH(0x55fdea222a10), ARRAY(0x7f6588a872c8), EPrints::DataSet=HASH(0x7f65882d5130), 0, undef, ...) called at /usr/share/eprints/perl_lib/EPrints/MetaField.pm line 1040
EPrints::MetaField::call_property(EPrints::MetaField::Subject=HASH(0x7f6588b7b730), "render_input", EPrints::MetaField::Subject=HASH(0x7f6588b7b730), EPrints::Repository=HASH(0x55fdea222a10), ARRAY(0x7f6588a872c8), EPrints::DataSet=HASH(0x7f65882d5130), 0, undef, ...) called at /usr/share/eprints/perl_lib/EPrints/MetaField.pm line 514
EPrints::MetaField::render_input_field(EPrints::MetaField::Subject=HASH(0x7f6588b7b730), EPrints::Repository=HASH(0x55fdea222a10), ARRAY(0x7f6588a872c8), EPrints::DataSet=HASH(0x7f65882d5130), 0, undef, EPrints::DataObj::EPrint=HASH(0x7f658899c5d0), "c16") called at /usr/share/eprints/perl_lib/EPrints/Plugin/InputForm/Component/Field.pm line 309
EPrints::Plugin::InputForm::Component::Field::render_content(EPrints::Plugin::InputForm::Component::Field=HASH(0x7f6588b78040), EPrints::Plugin::InputForm::Surround::Default=HASH(0x7f6588b645e0)) called at /usr/share/eprints/perl_lib/EPrints/Plugin/InputForm/Surround/Default.pm line 78
EPrints::Plugin::InputForm::Surround::Default::render(EPrints::Plugin::InputForm::Surround::Default=HASH(0x7f6588b645e0), EPrints::Plugin::InputForm::Component::Field=HASH(0x7f6588b78040), EPrints::Repository=HASH(0x55fdea222a10)) called at /usr/share/eprints/perl_lib/EPrints/Workflow/Stage.pm line 255
EPrints::Workflow::Stage::render(EPrints::Workflow::Stage=HASH(0x7f6588af2748), EPrints::Repository=HASH(0x55fdea222a10), EPrints::Workflow=HASH(0x7f6588aeec38)) called at /usr/share/eprints/perl_lib/EPrints/Workflow.pm line 446
EPrints::Workflow::render(EPrints::Workflow=HASH(0x7f6588aeec38)) called at /usr/share/eprints/perl_lib/EPrints/Plugin/Screen/EPrint/Edit.pm line 291
EPrints::Plugin::Screen::EPrint::Edit::render(EPrints::Plugin::Screen::EPrint::Edit=HASH(0x7f6588af07f8)) called at /usr/share/eprints/perl_lib/EPrints/ScreenProcessor.pm line 406
EPrints::ScreenProcessor::process("EPrints::ScreenProcessor", "session", EPrints::Repository=HASH(0x55fdea222a10), "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(0x7f6588a281c8)) called at /usr/lib/x86_64-linux-gnu/perl5/5.26/ModPerl/RegistryCooker.pm line 207
eval {...} called at /usr/lib/x86_64-linux-gnu/perl5/5.26/ModPerl/RegistryCooker.pm line 207
ModPerl::RegistryCooker::run(ModPerl::Registry=HASH(0x7f6588a49ba0)) called at /usr/lib/x86_64-linux-gnu/perl5/5.26/ModPerl/RegistryCooker.pm line 173
ModPerl::RegistryCooker::default_handler(ModPerl::Registry=HASH(0x7f6588a49ba0)) called at /usr/lib/x86_64-linux-gnu/perl5/5.26/ModPerl/Registry.pm line 32
ModPerl::Registry::handler("ModPerl::Registry", Apache2::RequestRec=SCALAR(0x7f6588a281c8)) called at -e line 0
eval {...} called at -e line 0
[Wed May 03 14:19:07.799136 2023] [:error] [pid 3830:tid 140073899120384] Usage: XML::LibXML::Node::appendChild(self, nNode) at /usr/share/eprints/perl_lib/EPrints/Plugin/InputForm/Component/Field.pm line 309.\n
Am I missing something?
RegardsIzwan
UiTM Digital Library
PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") adalah dihasratkan hanya untuk kegunaan penerima yang dinyatakan di atas dan mungkin mengandungi maklumat yang tidak umum, bermilik, istimewa, sulit dan dikecualikan dari penzahiran di bawah undang-undang yang terpakai termasuklah Akta Rahsia Rasmi 1972. BACA SELANJUTNYA...
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law including the Official Secrets Act 1972. READ MORE...
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- Follow-Ups:
- [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- References:
- [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Re: [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
- From: David R Newman <drn@ecs.soton.ac.uk>
- [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
- Prev by Date: Re: [EP-tech] {Suspected SPAM} Undefined or invalid function when add new dataset field
- Next by Date: [EP-tech] {Suspected SPAM} Re: {Suspected SPAM} Undefined or invalid function when add new dataset field
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):