<div dir="ltr">Hi Will,<div><br></div><div>Thanks so much for the quick reply.</div><div><br></div><div>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.</div><div><br></div><div>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!".</div><div><br></div><div>Anyway, thank you for your help,</div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2019 at 10:50 AM Will Fyson via Eprints-tech <<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div id="gmail-m_-5770300710971098694smartTemplate4-template">Hi James,<br>
<br>
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.
<br>
<br>
Therefore to fix this problem rather than simply disable <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Forcid_support.pl&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=DSLjriumrQvrF7Io8Y4THvRiuApgCoHDWVhDSTo07SQ%3D&reserved=0" originalSrc="http://orcid_support.pl" shash="pYvRNF+cJe8stYnHJx+x1FIIfh6MF0VAwP4OqcUFCv6+1wHoIE1Fq7APz2dHrjX/+GaM+mjfELAFG3yRxTUlL0mUR0P5NadOmwnsrlKvEEPzj7rKGBvSOogjd+3Ad5UHFx49W+aH7VhazkigCIVbxlVIua3vpJfUS7ALx7uc4ho=" target="_blank">orcid_support.pl</a> 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.<br>
<br>
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 <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_orcid_support.pl&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=Ww7jLpv86Wso8BC24lniV2Ox8xOMECoxxHNsoefySFo%3D&reserved=0" originalSrc="http://z_orcid_support.pl" shash="LnifOCc9e7DFTBhmFLrFX5BWolV53/ixg9sOw8J3an1X8n6EhmU+trBEIXvtiOFnfdwVVc1AKmGjJg+Ad+TruD/soCrzst6FeJxsv/lwLVfrYafZ5pg8S9uUxSL6oHylU2Q6kH3+3mjQJUI2mK+5B0DMhCJUkma+xDb0cROBnes=" target="_blank">z_orcid_support.pl</a> may well fix this however,
once the previous fix is in place.<br>
<br>
Many thanks,<br>
<br>
Will<br>
</div>
<div id="gmail-m_-5770300710971098694smartTemplate4-quoteHeader"><br>
<hr>
<b>From:</b> James Kerwin Via Eprints-tech <a class="gmail-m_-5770300710971098694moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">
<eprints-tech@ecs.soton.ac.uk></a> [<a class="gmail-m_-5770300710971098694moz-txt-link-abbreviated" href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">eprints-tech@ecs.soton.ac.uk</a>]
<b>Sent:</b> 04 April 2019 10:39 <b>To:</b> Eprints-tech <a class="gmail-m_-5770300710971098694moz-txt-link-rfc2396E" href="mailto:eprints-tech@ecs.soton.ac.uk" target="_blank">
<eprints-tech@ecs.soton.ac.uk></a> <b>Subject:</b> [EP-tech] Bazaar Update Gone Wrong - ORCID Support
<br>
</div>
<div class="gmail-m_-5770300710971098694replaced-blockquote" type="cite">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">Hello again,
<div><br>
</div>
<div>I have a follow-up question to me earlier one.</div>
<div><br>
</div>
<div>I attempted to upgrade the orcid support plugin to V1.7. I got an error page saying:</div>
<div><br>
</div>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div dir="ltr">
<div>Duplicate field name encountered: user.orcid</div>
<div><br>
</div>
</div>
</blockquote>
</blockquote>
After restarting the server the repository went down. I changed all the following in the <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Forcid_zupport.pl%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=7aoEhkIJpxZ5%2F3FuCLZF5o1xRld2Pj7lkfOg28p7amM%3D&reserved=0" originalSrc="http://orcid_zupport.pl/" shash="bpF+1e3oMTAsLGMCMbRPyti1cTHYuqmlrNjtjyO6jn4WMisRFgGcwFjPYnfv+FhY5l70kr2PogUu3BPDTxQXYLtJp+AaEePRZUeuz0fb/ZE8Y/vl4boSO+wXwgKC86aSUI1AGKTKKyo7pYYKgLMy9Iwt5Lp5pqaNRaISrvZPg8s=" target="_blank">orcid_zupport.pl</a> script
to:
<div><br>
</div>
<div>
<div>#Enable the plugin!</div>
<div>$c->{plugins}{"Orcid"}{params}{disable} = 1;</div>
<div>$c->{plugins}{"Screen::Report::Orcid::UserOrcid"}{params}{disable} = 1;</div>
<div>$c->{plugins}{"Screen::Report::Orcid::AllUsersOrcid"}{params}{disable} = 1;</div>
<div>$c->{plugins}{"Screen::Report::Orcid::CreatorsOrcid"}{params}{disable} = 1;</div>
<div>$c->{plugins}{"Export::Report::CSV::CreatorsOrcid"}{params}{disable} = 1;</div>
</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
</div>
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div dir="ltr">
<div>
<pre style="white-space:pre-wrap;color:rgb(0,0,0)">Undefined subroutine &EPrints::ORCID::Utils::get_normalised_orcid called at (eval 222) line 9.</pre>
</div>
</div>
</blockquote>
</blockquote>
<div dir="ltr">
<div><br>
</div>
<div>Does anybody know what caused this and how I fix it?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>James </div>
</div>
</div>
<br>
<fieldset class="gmail-m_-5770300710971098694mimeAttachmentHeader"></fieldset> <br>
<pre>*** Options: <a class="gmail-m_-5770300710971098694moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="gmail-m_-5770300710971098694moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=PNYc9uktuBKsQXuNUdxGPTQB%2BcMO5XbYoKmCrnoVpgk%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Mw+rcx7ebUuT6n2iC2SlE1tF0eKLcSjURZ4wH+4jryLxrHHs7Os73zDsy3OGwPq4D7wAhyyXeOMCdUAz8785M8VHi1ICMyFgQIM/0UEvsO7XLmt1q4s9BoeRp9KfgmSewslwsmomXqagHMaUxkuk3RD0cTGqtM13CxWuYulpm1g=" target="_blank">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="gmail-m_-5770300710971098694moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=TjHcQvbjBBipt%2F4bE32jsi5X8A0BVQJuWgP6DIiAcRQ%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="f3S8nfqcATqYBF4U9qK1C29VGiKmmBqV86Zysypu+yWZlFnDSzk2mA/Gs2eW7vUIq/o2tCqQ3j34ZeeosTtWWt1sFk7yickMD8IbSpDinvrDqP8EZisU4CzQynnHXg7VYdHBI1xnxMn4RFphjn05s62s9Ytu7M0AYFeyJ1vuOzg=" target="_blank">http://wiki.eprints.org/</a>
*** EPrints developers Forum: <a class="gmail-m_-5770300710971098694moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=rmY6%2Fp5TgBynamExI0oK1R%2BgIExeO1XvZpmLiUuV%2Brg%3D&reserved=0" originalSrc="http://forum.eprints.org/" shash="kcHX9Jx4mcr8T4n2Cb10979xiLKSX70sW1t0f7mk0byT+UneggeGMO9BtYfgd+8NWULm3QfR6dz5pKlyxn22te1lRtZLNqxZ5CLlmvBDbwofrZiFpX6PmfWUyZRvfeYDSNyaPi4a0okMqCBohoSHdbnp8vFXuWLmlaH88BaHIVI=" target="_blank">http://forum.eprints.org/</a>
</pre>
</div>
<br>
</div>
*** Options: <a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech" rel="noreferrer" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a><br>
*** Archive: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=PNYc9uktuBKsQXuNUdxGPTQB%2BcMO5XbYoKmCrnoVpgk%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Mw+rcx7ebUuT6n2iC2SlE1tF0eKLcSjURZ4wH+4jryLxrHHs7Os73zDsy3OGwPq4D7wAhyyXeOMCdUAz8785M8VHi1ICMyFgQIM/0UEvsO7XLmt1q4s9BoeRp9KfgmSewslwsmomXqagHMaUxkuk3RD0cTGqtM13CxWuYulpm1g=" rel="noreferrer" target="_blank">http://www.eprints.org/tech.php/</a><br>
*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=TjHcQvbjBBipt%2F4bE32jsi5X8A0BVQJuWgP6DIiAcRQ%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="f3S8nfqcATqYBF4U9qK1C29VGiKmmBqV86Zysypu+yWZlFnDSzk2mA/Gs2eW7vUIq/o2tCqQ3j34ZeeosTtWWt1sFk7yickMD8IbSpDinvrDqP8EZisU4CzQynnHXg7VYdHBI1xnxMn4RFphjn05s62s9Ytu7M0AYFeyJ1vuOzg=" rel="noreferrer" target="_blank">http://wiki.eprints.org/</a><br>
*** EPrints developers Forum: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fforum.eprints.org%2F&data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C7ecd971cc72045fd8d8808d6b8e4d1a9%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&sdata=rmY6%2Fp5TgBynamExI0oK1R%2BgIExeO1XvZpmLiUuV%2Brg%3D&reserved=0" originalSrc="http://forum.eprints.org/" shash="kcHX9Jx4mcr8T4n2Cb10979xiLKSX70sW1t0f7mk0byT+UneggeGMO9BtYfgd+8NWULm3QfR6dz5pKlyxn22te1lRtZLNqxZ5CLlmvBDbwofrZiFpX6PmfWUyZRvfeYDSNyaPi4a0okMqCBohoSHdbnp8vFXuWLmlaH88BaHIVI=" rel="noreferrer" target="_blank">http://forum.eprints.org/</a><br>
</blockquote></div>