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

[EP-tech] Bazaar Update Gone Wrong - ORCID Support



Cheers John,

My apologies, the file is prefixed with a "z_" - I'm just a lazy bones and
didn't include it in my previous email.

I'm having a good look around the repository database now and comparing
test (old version, working) to live (in the opposite way a sane person
would - why did I do this on live first?!) and the script and filenames
etc. look identical.

It'll have to wait until nobody is using the repository, I've had enough
frights for one day!

Thanks,
James

On Thu, Apr 4, 2019 at 11:12 AM John Salter via Eprints-tech <
eprints-tech at ecs.soton.ac.uk> wrote:

> > but it checks for a pre-existing field!".
>
> This could be an issue of file-order.
>
> EPrints will load the configuration fields alphabetically - which is why
> most plugins come with z_ prefixed fileds.
>
>
>
> If the 'does a user orcid field exist' check happens in orcid_support.pl,
> at that point, there might not be an ORCID field.
>
> If an alphabetically-later file (e.g. user_fields.pl) also defines the
> user orcid field, it may be this definition of the field that is actually
> generating the warning!
>
>
>
> NB I haven't checked the above explanation - but thought it might help
> understanding.
>
>
>
> Cheers,
>
> John
>
>
>
>
>
> *From:* eprints-tech-bounces at ecs.soton.ac.uk [mailto:
> eprints-tech-bounces at ecs.soton.ac.uk] *On Behalf Of *James Kerwin via
> Eprints-tech
> *Sent:* 04 April 2019 11:04
> *To:* eprints-tech at ecs.soton.ac.uk; Will Fyson <R.W.Fyson at soton.ac.uk>
> *Subject:* Re: [EP-tech] Bazaar Update Gone Wrong - ORCID Support
>
>
>
> Hi Will,
>
>
>
> Thanks so much for the quick reply.
>
>
>
> I've temporarily disabled the plugin for now. I'll stay behind this
> evening to make your suggested changes. That way I won't disturb our
> repository team any more than I already have with my ham-fisted attempts at
> "improving" things.
>
>
>
> I managed to keep calm long enough to get the repository back up and
> running and then quickly ran outside for some nicotine while I pondered the
> problem, although I did read the section you refer to earlier on which is
> what had me thinking "but it checks for a pre-existing field!".
>
>
>
> Anyway, thank you for your help,
>
> James
>
>
>
> On Thu, Apr 4, 2019 at 10:50 AM Will Fyson via Eprints-tech <
> eprints-tech at ecs.soton.ac.uk> wrote:
>
> Hi James,
>
> The "Duplicate field name encountered: user.orcid" error will occur if you
> have an ORCID field defined for your user dataset elsewhere. The ORCID
> Plugin attempts to add one as well, operating under the assumption that the
> repository doesn't yet have fields for storing ORCIDs in. It makes some
> attempt to try and work out if such a field is already present, but it
> looks like this is not as sophisticated as it needs to be.
>
> Therefore to fix this problem rather than simply disable orcid_support.pl
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Forcid_support.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=tB8RPSx%2FwUS0txlybXwYeQRJB9Tn%2Fq1UwNIkK7vSu5g%3D&amp;reserved=0>
> completely I'd recommend just commenting out the lines where it tries to
> add the ORCID field to the user dataset, i.e. the lines between
> #---Users---# (line 26) and #---Eprints---# (line 47) and then perhaps run
> an epadmin test (which should highlight issues such as duplicate field
> definitions) to see if it is ok to restart the server again.
>
> I can't see why the "Undefined subroutine
> &EPrints::ORCID::Utils::get_normalised_orcid called at (eval 222) line 9."
> error should appear as the Bazaar plugin appears to have this file and this
> function. Re-enabling z_orcid_support.pl
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_orcid_support.pl&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=A%2BthhHbSr9B7NSt7EsE%2BGvZf7J08a5WZuIRFPU7g3uw%3D&amp;reserved=0>
> may well fix this however, once the previous fix is in place.
>
> Many thanks,
>
> Will
>
>
> ------------------------------
>
> *From:* James Kerwin Via Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> <eprints-tech at ecs.soton.ac.uk> [eprints-tech at ecs.soton.ac.uk] *Sent:* 04
> April 2019 10:39 *To:* Eprints-tech <eprints-tech at ecs.soton.ac.uk>
> <eprints-tech at ecs.soton.ac.uk> *Subject:* [EP-tech] Bazaar Update Gone
> Wrong - ORCID Support
>
> Hello again,
>
>
>
> I have a follow-up question to me earlier one.
>
>
>
> I attempted to upgrade the orcid support plugin to V1.7. I got an error
> page saying:
>
>
>
> Duplicate field name encountered: user.orcid
>
>
>
> After restarting the server the repository went down. I changed all the
> following in the orcid_zupport.pl
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Forcid_zupport.pl%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2B4X9mvIlLbFWcTDBjXc5pSalGC0o4OqyY3EWSgHcZMI%3D&amp;reserved=0> script
> to:
>
>
>
> #Enable the plugin!
>
> $c->{plugins}{"Orcid"}{params}{disable} = 1;
>
> $c->{plugins}{"Screen::Report::Orcid::UserOrcid"}{params}{disable} = 1;
>
> $c->{plugins}{"Screen::Report::Orcid::AllUsersOrcid"}{params}{disable} = 1;
>
> $c->{plugins}{"Screen::Report::Orcid::CreatorsOrcid"}{params}{disable} = 1;
>
> $c->{plugins}{"Export::Report::CSV::CreatorsOrcid"}{params}{disable} = 1;
>
>
>
> In order to disable the plugin. Still no signs of life from the server.
> Changed the name of the script to end in .".pl.broken". Restarted the
> server and got life, but on the staff view of an eprint I get an error:
>
>
>
> Undefined subroutine &EPrints::ORCID::Utils::get_normalised_orcid called at (eval 222) line 9.
>
>
>
> Does anybody know what caused this and how I fix it?
>
>
>
> Thanks,
>
> James
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
>
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=J8PGV%2FPwiAnSZwntSgzG6%2Fb%2BLx8BXq%2BCwV6wf9IH2cY%3D&amp;reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=J8PGV%2FPwiAnSZwntSgzG6%2Fb%2BLx8BXq%2BCwV6wf9IH2cY%3D&amp;reserved=0>
>
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QL7%2BTM5l9ocNNyL3FOE%2FZQV66LzHzFDLYbU5cS6liO8%3D&amp;reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QL7%2BTM5l9ocNNyL3FOE%2FZQV66LzHzFDLYbU5cS6liO8%3D&amp;reserved=0>
>
> *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cNuO3NZubAgSl9B6mMwATyLAJY1yuYPkCmnrZEMSaNg%3D&amp;reserved=0 <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cNuO3NZubAgSl9B6mMwATyLAJY1yuYPkCmnrZEMSaNg%3D&amp;reserved=0>
>
>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=J8PGV%2FPwiAnSZwntSgzG6%2Fb%2BLx8BXq%2BCwV6wf9IH2cY%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=J8PGV%2FPwiAnSZwntSgzG6%2Fb%2BLx8BXq%2BCwV6wf9IH2cY%3D&amp;reserved=0>
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QL7%2BTM5l9ocNNyL3FOE%2FZQV66LzHzFDLYbU5cS6liO8%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QL7%2BTM5l9ocNNyL3FOE%2FZQV66LzHzFDLYbU5cS6liO8%3D&amp;reserved=0>
> *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cNuO3NZubAgSl9B6mMwATyLAJY1yuYPkCmnrZEMSaNg%3D&amp;reserved=0
> <https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cNuO3NZubAgSl9B6mMwATyLAJY1yuYPkCmnrZEMSaNg%3D&amp;reserved=0>
>
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=J8PGV%2FPwiAnSZwntSgzG6%2Fb%2BLx8BXq%2BCwV6wf9IH2cY%3D&amp;reserved=0
> *** EPrints community wiki: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=QL7%2BTM5l9ocNNyL3FOE%2FZQV66LzHzFDLYbU5cS6liO8%3D&amp;reserved=0
> *** EPrints developers Forum: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C69d03ee4fc99418c4aa008d6b8ea322d%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=cNuO3NZubAgSl9B6mMwATyLAJY1yuYPkCmnrZEMSaNg%3D&amp;reserved=0
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20190404/3e8ab3ba/attachment-0001.html