<div dir="ltr">Your solution worked brilliantly on my Test server (going on live when my team have finished for the day). I briefly got caught out in KeyFigures.pm with the $id, but realised what was happening.<div><br></div><div>I&#39;m totally bewildered by my attempts to alias the View.pm plugin (/eprints3/archives/uolrepo/cfg/plugins/EPrints/Plugin/Stats/LocalView.pm). I moved it to the local plugins folders and prefixed it with &quot;Local&quot; as I tend to do:</div><div><br></div><div>$c-&gt;{plugin_alias_map}-&gt;{&quot;Stats::View&quot;} = &quot;Stats::LocalView&quot;;<br>$c-&gt;{plugin_alias_map}-&gt;{&quot;Stats::LocalView&quot;} = undef;<br>$c-&gt;{plugins}{&quot;Stats::LocalView&quot;}{params}{disable} = 0;<br></div><div><br></div><div>It doesn&#39;t seem to catch it, so on the Test server only I&#39;ve gone to the View.pm that I&#39;m not supposed to change (/eprints3/lib/plugins/EPrints/Plugin/Stats/View.pm). Oddly I was able to alias the KeyFiguress.pm with LocalKeyFigures.pm with the same relative locations.</div><div><br></div><div>I even accounted for the expected loading order of cfg.d and included the required code in <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fplugins.pl%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=V5G%2BP5Rc1QeVt%2FYUsFV5gKmAjy%2B9hfaZbBjchbdkVKs%3D&amp;reserved=0" originalSrc="http://plugins.pl/" shash="QvxS66nzkKYVgMcEw4DZJOKOiOwn/FG40eeYi0LbIwwDLnn0KuQsjuiyWm0oZ/RtdEeSevqSvXcbD8qtnwIr8dL217Lj1QahTK1EVStIQwOZk5wm57kPwJ/d6qeeAQDa1leS7Y9tKI0u1CyOrECuDNOB/A+GhY1j9ZRqMzmEHQs=">plugins.pl</a> and <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fzz_irstas2.pl%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=nwqvxL%2FZh2KEcQyYW1MPgknUyIfkFutrN6DBsrOEKlE%3D&amp;reserved=0" originalSrc="http://zz_irstas2.pl/" shash="MyV1OifIsM0M3O9UT7PCdjvZCIIDxGJW38XTdL7csoFPvdDGCSjraul/+EI2BDFPsWtXUTsA/djM9TtUDL5AYMOarPvqbAzQJAtTL0lDyYtRTDJJupjZ7jRWeIo9ItEqTKHnQisB+ppsl4wSoTVGbGc7bXJOFnp0EWKvo3abRlM=">zz_irstas2.pl</a>.</div><div><br></div><div>Anyway that&#39;s a different issue that I should be able to resolve myself.</div><div><br></div><div>Thanks,</div><div>James</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 9, 2020 at 11:31 AM David R Newman &lt;<a href="mailto:drn@ecs.soton.ac.uk">drn@ecs.soton.ac.uk</a>&gt; 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>
    <p>Hi James,</p>
    <p>I cannot remember off hand what caching issues you may need to
      deal with.  First rule is always make sure you reload the
      webserver after making the changes.  Then on any pages you load
      make sure your hard refresh (e.g. Ctrl+Shift+R).  If you have
      download graphs on abstract/summary pages I think you will need to
      run refresh abstracts.  <br>
    </p>
    <p>This definitely fixed the issue for me and I had several
      independent people test this to confirm.<br>
    </p>
    <p>Regards</p>
    <p>David Newman<br>
    </p>
    <div>On 09/10/2020 11:20, James Kerwin
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi David,
        <div><br>
        </div>
        <div>Thank you very much. I&#39;ll make the necessary changes today
          and see how we get on. I wouldn&#39;t have worked this out if I
          had centuries to look at it.</div>
        <div><br>
        </div>
        <div>I did try changing the load in /cfg.d/<a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fz_irstats2.pl%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=OJWWW0HxKi4ONH%2FC53rgFWxx5gi9Vz78NdDfrALxVfQ%3D&amp;reserved=0" originalSrc="http://z_irstats2.pl/" shash="Ysr4bT6XtBi/R1uMw49PxxFGAvFIuJFz1lFacMnwrN5/jNEDFN2WBnBNVtfUKOAg3ien9smBulBLd7KS59RTTze5g5plMoH1g/iUiWiFSwy+5ayIzRd4AD1KwRaTRCP9XFzhCZQ3JLhYZ4l6iQddTV8xo8hxX3J5o2BESI3dgn4=" target="_blank">z_irstats2.pl</a> in
          line with this:</div>
        <div><br>
        </div>
        <div><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdevelopers.google.com%2Fchart%2Finteractive%2Fdocs%2Fbasic_load_libs%23update-library-loader-code&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=Ca9tWaVZjZk3PjO44pwCq%2FJvm7fRVaYmDIo8sEmOujU%3D&amp;reserved=0" originalSrc="https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code" shash="TcIW+Se34rolQHWpcSSoGWKaG8KpreqyZZgrjFUtb6UB80W/3jmC5cxZfbVF983yRDjjaXp8i6zqLOIsI+0Vh6jsxE7W4JhTG6eEKZgFGGIRuJaHdqMbubp3t5BImNjgqU+L3VVqjkOgfYGHe24MjqAvQpVPKapxNiM+hxwWPs0=" target="_blank">https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code</a> <br>
        </div>
        <div><br>
        </div>
        <div>This particular attempt didn&#39;t solve the problem, but it
          didn&#39;t break it either and it did change the load method when
          I inspected it (in Chrome when you look at the HTML etc).<br>
          <br>
          Anyway I better get on with these changes, thank you for the
          guidance, appreciated as ever!</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>James</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Oct 8, 2020 at 9:32 AM
          David R Newman &lt;<a href="mailto:drn@ecs.soton.ac.uk" target="_blank">drn@ecs.soton.ac.uk</a>&gt;
          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>
            <p>Hi James,</p>
            <p>Yes, I have noticed this as well.  I fixed by change the
              following block of code in EPrints/Plugin/Stats/View.pm</p>
            <p>125                 if( document.loaded )<br>
              126                       new EPJS_Stats_$js_class( {
              &#39;context&#39;: $json_context, &#39;options&#39;: $view_options } );<br>
              127                 else<br>
              128                        
              document.observe(&quot;dom:loaded&quot;,function(){<br>
              129                                   new
              EPJS_Stats_$js_class( { &#39;context&#39;: $json_context,
              &#39;options&#39;: $view_options } );<br>
              130                         });</p>
            <p>to:</p>
            <p>     125           
              google.setOnLoadCallback(drawChart_$id);<br>
                   126            function drawChart_$id()<br>
                   127            {<br>
                   128                    new EPJS_Stats_$js_class( {
              &#39;context&#39;: $json_context, &#39;options&#39;: $view_options } );<br>
                   129    <br>
                   130            }</p>
            <p>I also made a similar change in
              EPrints/Plugin/Stats/View/KeyFigures.pm as well.  If you
              have download stats boxes on abstract/summary pages you
              will also need to make a similar change to one of the
              phrases in lang/en/phrases/irstats2.xml.</p>
            <p>Regards</p>
            David Newman
            <div>On 08/10/2020 08:51, James Kerwin via Eprints-tech
              wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Hi All,<br>
                <div><br>
                </div>
                <div>I updated IRStats2 to the most recent version back
                  in May (I think it was 1.01 to 1.1) from the Bazaar.</div>
                <div><br>
                </div>
                <div>All seemed well until this week when I looked and
                  realised there was no data. since the upgrade. It
                  turns out it was because of the permissions and
                  ownership of the process_stats file which is supposed
                  to run frequently to process the stats and I assume
                  update the irstats2_ tables in the database.</div>
                <div><br>
                </div>
                <div>After the upgrade the script was owned by www-data
                  (whatever it&#39;s called) and the &quot;eprints&quot; user didn&#39;t
                  have permission to execute it. Due to the &quot;no output&quot;
                  options set in cron I wasn&#39;t getting any info.</div>
                <div><br>
                </div>
                <div>It was my fault for not being thorough enough and
                  it&#39;s all sorted now, but I thought I would offer this
                  as a warning to anybody who upgrades and doesn&#39;t know
                  to check this sort of thing.<br>
                  <br>
                  Also the IRStats2 pages stay &quot;loading&quot; forever on
                  Chrome, but load almost immediately on FireFox. Any
                  idea what causes this?</div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <div>James</div>
              </div>
              <br>
              <fieldset></fieldset>
              <pre>*** Options: <a 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 href="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%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=y5n03bTF%2F0qJg5eVd5DzvY5UqWlAcp2jLbyIocCyA7M%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="zRCkBRnrvaAsdgoGLJE7Dc49U7BG5s4LUSqdKc/16XBtWa7CtGq9gpPpSmTQTQamJFgV5bL42u7dtT1pYbqCIG7QxarBFlchoDc7QosbztTf+5EVqo9NmM+mVTGpidZ0PmTGjRH52vqh8peJZVGC8yQGaOXCZhMQGjfuFk2IC3c=" target="_blank">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=VRc%2FQaOSWqWj2az3L6CRZEXPVwQ%2B0QC3%2BAArdmwM7Fk%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="xpkZUyGMXztsem4S/mresSshnvFoKSH0TV+NVlTDchgUEVxhdfT42cKMB4DtI0yEDqAcjLbQR2jytHr6zw0cHGmK4iD2KePaRP6dDdfsW7jG4egpMuOOTdCbXuLZl6E+uGmTVHF7xrY54u1hRL2ZT7aCi7K3K3XH26Mso8AI+7Y=" target="_blank">http://wiki.eprints.org/</a></pre>
            </blockquote>
            <div id="gmail-m_8471036565462458196gmail-m_8275029250304110295gmail-m_5935789201647633706DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
              <table style="border-top:1px solid rgb(211,212,222)">
                <tbody>
                  <tr>
                    <td style="width:55px;padding-top:13px"><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=b1E%2BbQWENyWF6YpYswfQzSWR8jVO%2FCTBDFOIGDO%2FXNE%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="Mdg6mwERrGs1soON12KBYblG6buUEJc23eHhVyzd3u9yZKp9PkC/lI/aaQoHdVLinBWpx9cMmXTWpNB+9OSDYSt5hGffyPAGvvkLE+OQ6G4hvSluEuGZzc00nnCFbFmPfq8E30RporA1+GplZJY2Do+elGOSiRa25oYkHj9fOmI=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" style="width: 46px; height: 29px;" width="46" height="29"></a></td>
                    <td style="width:470px;padding-top:12px;color:rgb(65,66,78);font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
                      <a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.avg.com%2Femail-signature%3Futm_medium%3Demail%26utm_source%3Dlink%26utm_campaign%3Dsig-email%26utm_content%3Demailclient&amp;data=01%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C88ecb4018d594b060efe08d86c5ee8bb%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=b1E%2BbQWENyWF6YpYswfQzSWR8jVO%2FCTBDFOIGDO%2FXNE%3D&amp;reserved=0" originalSrc="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" shash="Mdg6mwERrGs1soON12KBYblG6buUEJc23eHhVyzd3u9yZKp9PkC/lI/aaQoHdVLinBWpx9cMmXTWpNB+9OSDYSt5hGffyPAGvvkLE+OQ6G4hvSluEuGZzc00nnCFbFmPfq8E30RporA1+GplZJY2Do+elGOSiRa25oYkHj9fOmI=" style="color:rgb(68,83,234)" target="_blank">www.avg.com</a> </td>
                  </tr>
                </tbody>
              </table>
              <a href="#m_8471036565462458196_m_8275029250304110295_m_5935789201647633706_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div>
          </div>
        </blockquote>
      </div>
    </blockquote>
  </div>

</blockquote></div>