<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi James,</p>
    <p>Yes, I have noticed this as well.&nbsp; I fixed by change the
      following block of code in EPrints/Plugin/Stats/View.pm</p>
    <p>125 &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( document.loaded )<br>
      126&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; new EPJS_Stats_$js_class( { 'context':
      $json_context, 'options': $view_options } );<br>
      127&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>
      128&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      document.observe(&quot;dom:loaded&quot;,function(){<br>
      129&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new EPJS_Stats_$js_class( {
      'context': $json_context, 'options': $view_options } );<br>
      130&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });</p>
    <p>to:</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp; 125&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; google.setOnLoadCallback(drawChart_$id);<br>
      &nbsp;&nbsp;&nbsp;&nbsp; 126&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function drawChart_$id()<br>
      &nbsp;&nbsp;&nbsp;&nbsp; 127&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
      &nbsp;&nbsp;&nbsp;&nbsp; 128&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new EPJS_Stats_$js_class( { 'context':
      $json_context, 'options': $view_options } );<br>
      &nbsp;&nbsp;&nbsp;&nbsp; 129&nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp;&nbsp;&nbsp; 130&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
    <p>I also made a similar change in
      EPrints/Plugin/Stats/View/KeyFigures.pm as well.&nbsp; 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 class="moz-cite-prefix">On 08/10/2020 08:51, James Kerwin via
      Eprints-tech wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:EMEW3|6e84abf858adf01f83758183d1238389w978ve14eprints-tech-bounces|ecs.soton.ac.uk|CAKkNZ9D15WkDHG5RQY7xScPr58NiuNTxXnxCM8OH6gFDLE0YoA@mail.gmail.com">
      
      <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's called) and the &quot;eprints&quot; user didn't have
          permission to execute it. Due to the &quot;no output&quot; options set
          in cron I wasn't getting any info.</div>
        <div><br>
        </div>
        <div>It was my fault for not being thorough enough and it's all
          sorted now, but I thought I would offer this as a warning to
          anybody who upgrades and doesn't know to check this sort of
          thing.<br>
          <br>
          Also the&nbsp;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 class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&amp;data=01%7C01%7C%7C4c990ac3b1fe4846a9f408d86b64a51c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2B7sBTD0Puqa5zljcuGi8oij%2Fb8YcOUtttLhsy4Te8RA%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Law0l/vucRq8f7CPgudWJpKpz0FRSlq2Zegtb69hmYD002jFNWTYzkL6xOsT0ZLI7qXAybXHbVGusLkdSUzpnytrHgkFQ9XG+HMg+A14uB1v2k2cttb8fzfqDt/Y92/reamPnBt0lEEXBOX3f7oOyqRkPVqNko6rVnBBR0acgHo=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&amp;data=01%7C01%7C%7C4c990ac3b1fe4846a9f408d86b64a51c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=PKKfcwddT8HlDqPdO%2F7892f9SUYvj61KIDuPTtCVIEo%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="P7scgI0woffDK/K8zc2qJAo2itUy8gNMvubLiih7u8ugkLSTQOsPsIw6E++7VHhAbO07ZlnR2hXjhEE2buhMzOwZprPB+LE8Nv4GNTnIOpzPhmeZOg9hZt/+Zj8FdNABdDO/SLqLZd15IK7K2LFMIRA1/2EKLon6hHc8v7NCYu8=">http://wiki.eprints.org/</a></pre>
    </blockquote>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top: 1px solid #D3D4DE;">
        <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%7C%7C4c990ac3b1fe4846a9f408d86b64a51c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=M1T9FtzBbJtL1NghChjaOKpVV6JQrdTsXwuD%2BqtZpg8%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="XOfIoWYQoRQc6OGnyZDnYLdAQPDoXr/ZddmaUP9rzznnUFmamupr/oAkjLH5r+P9wVDRTNNtt2r8zOjnKDxZVwKmBhVGwdPkal9WPX9xwXXBMwETn4R0ufOK+tmacDpqTZoGyjkmkqB2BmWxkn2s/5bqbeiYhj1cp+DPXXNpfjI=" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width: 470px; padding-top: 12px; color: #41424e; 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%7C%7C4c990ac3b1fe4846a9f408d86b64a51c%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=M1T9FtzBbJtL1NghChjaOKpVV6JQrdTsXwuD%2BqtZpg8%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="XOfIoWYQoRQc6OGnyZDnYLdAQPDoXr/ZddmaUP9rzznnUFmamupr/oAkjLH5r+P9wVDRTNNtt2r8zOjnKDxZVwKmBhVGwdPkal9WPX9xwXXBMwETn4R0ufOK+tmacDpqTZoGyjkmkqB2BmWxkn2s/5bqbeiYhj1cp+DPXXNpfjI=" target="_blank" style="color: #4453ea;">www.avg.com</a>
                </td>
        </tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>