<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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=0bDVR22J37Mbfv9z3vAXJaUQ0zpls8EnGo46BDxngGA%3D&amp;reserved=0" originalSrc="http://z_irstats2.pl/" shash="LeRBqKABKptaQvt+FNDVwE/0uUq+Dotx1h8akyglOb5fyybxQr1LDMv0MrU7cdPxeaqCWa94JeptA3VmppHnUfz8P1rSka7GYToqz7dLn5usi4zvC/fkbKTZ+JBrDeTL4CAdRHblvurpQepopXqLliKySalDJl1FRBSeyuCHauI=" 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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=puDQHE0Wgjupeca%2BlqIxx3caacXD4z9xjKWWtncNQ1k%3D&amp;reserved=0" originalSrc="https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-code" shash="fICr2AWOj9MZF9L0vJn0mwzmzRNKy9gibipmbjsTh1NHx/xbuTvgpKk5V7BGekXTjcl7onxqsFDekljB9MCmGf7DBtc3hugnNDzHkRC8k8YhIWnk8ULCq49brPDnOuSSnv5w08FB48UuCZ3NZLnFBJSeZWwD3hGRB7/df8Silac=" 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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=X9RKFs%2FlglZHB29kQDEFnoG1EG%2BsGsf6ugUCJ30GIdE%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="sQpc86IxdplTVKSFMKiiNwPV94Tm4XNaoPL28TG4NErSv2q5GafSxOF38MNPDYmi1EAoajfxDQOuSalSd0Fk1N4iPhFb9i9RhHgg58JEQEv8Y6+34KpHl3S+Sgcoq5Qc9EdlqmsTcjoZ84zAV1z9+b40uHvvk2UCFwb8ICZH/gQ=" 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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=0XKQkq1Og3puIhTkLANFPU1wMFMC7B57eDX0XNjSkvE%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="iVwI5aEJJ5Jv27fsAT+ls7hRzsvSrt9wrbRPkDJ2XFQoqdTggN8BxSk6WSacUdvCn85cKvfrl4lEUsVhkYHDm04iXBxcBM3do6HJyoOIRclJWTXgp527PaM2fWAeqN52N3KLU05yC4eLADuXHcLccSj6HYBUg6/y+CIqIJ5pQl0=" target="_blank">http://wiki.eprints.org/</a></pre>
    </blockquote>
  <div id="gmail-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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2BWL5HtXd3McfjbzRaJmxleDaAQGSa8TGfEqg2KXZYbY%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="Pj5hFC4Wc9i0VNie8kgR/QheytDDKsjrPaXHP6GCZYzYiN2ZgKrPaEAvrIcVkLTwQ73jQBwWOVg8xxQVJpedO6TzqBsBY9wpzE8/Yp4taj7qOvv9vkbh0vORrCbyaADw92apDoQurp4artBvduU2hqMN0brcuj0RqVW/agBJrC4=" 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: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%7C83750a6ac4bf46d7e5cc08d86c3d0ada%7C4a5378f929f44d3ebe89669d03ada9d8%7C0&amp;sdata=%2BWL5HtXd3McfjbzRaJmxleDaAQGSa8TGfEqg2KXZYbY%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="Pj5hFC4Wc9i0VNie8kgR/QheytDDKsjrPaXHP6GCZYzYiN2ZgKrPaEAvrIcVkLTwQ73jQBwWOVg8xxQVJpedO6TzqBsBY9wpzE8/Yp4taj7qOvv9vkbh0vORrCbyaADw92apDoQurp4artBvduU2hqMN0brcuj0RqVW/agBJrC4=" style="color:rgb(68,83,234)" target="_blank">www.avg.com</a>
                </td>
        </tr>
</tbody></table><a href="#m_8275029250304110295_m_5935789201647633706_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></div>

</blockquote></div>