<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Izwan,</p>
    <p>Looking at the line of code that has the error:</p>
    <p>if( $hostname eq $self-&gt;{host} )</p>
    <p>One of the these to variables is not set.&nbsp; As there is a
      comparison involving $hostname further up in the file, it must be
      $self-&gt;{host} that is not set.&nbsp; This is earlier set from line
      24:</p>
    <p>$self-&gt;{host} = $self-&gt;{session}-&gt;config( &quot;host&quot; );</p>
    <p>My suspicion is that you have reconfigured your repository to be
      HTTPS only and there only set $c-&gt;{securehost} and not
      $c-&gt;{host} in your archive's cfg/cfg.d/10_core.pl (or some
      other config file in the same directory).&nbsp; If $c-&gt;{host} is set
      to undef this would also return the same error message here.&nbsp; To
      resolve this problem you should go to line 24 of
/usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm
      and add the following line after it:</p>
    <p>$self-&gt;{host} ||= $self-&gt;{session}-&gt;config( &quot;securehost&quot;
      );</p>
    <p>This will set $self-&gt;{host} to the config value of securehost
      if there is no value set for host.&nbsp; I have had to make various
      amendments to EPrints to support the no $c-&gt;{host} set means
      HTTPS only, so that it does not break things that expect it to
      always be set.&nbsp; However, not setting $c-&gt;{host} seemed like the
      most intuitive way to allow system administrators to know they
      have configured their repository for HTTPS only.&nbsp; <br>
    </p>
    <p>Unfortunately, there has not been a new release of IRStats 2
      since these changes were baked into recent versions of EPrints
      3.4.&nbsp; In part due to this only affecting those who configured
      there repositories for HTTPS only in this way.</p>
    <p>Regards</p>
    <p>David Newman<br>
    </p>
    <div class="moz-cite-prefix">On 13/08/2021 09:26, MOHD.IZWAN SALIM
      via Eprints-tech wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:EMEW3|46c1eec59743b81d8c8965f700ffc61dx7C9SA14eprints-tech-bounces|ecs.soton.ac.uk|CAANJ=piqy4Nkb78dWeCji4a+N9gQ86tvqBuGJK7cK25AAwqozw@mail.gmail.com">
      
      <div style="padding-bottom: 10px; padding-top: 5px;">
        <div style="padding:12px; border:1px solid #8D3970;
          background-color:#F7F9FA; color:#8D3970; font-size:14px;
          line-height:22px; font-family: Calibri, Arial, Helvetica,
          sans-serif;">
          <strong>CAUTION:</strong> This e-mail originated outside the
          University of Southampton.
        </div>
      </div>
      <div>
        <div dir="ltr">Dear all, I just&nbsp;migrated and upgraded EPrints
          3.3.16 to 3.4.3. Everything worked fine until I ran the
          process_stat --setup for IRSTAT2.
          <div><br>
          </div>
          <div>The statistic is running (i guess) but it only shows
            message</div>
          Use of uninitialized value in string eq at
/usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm
          line 84.
          <div>Use of uninitialized value in string eq at
/usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm
            line 84.</div>
          <div>Use of uninitialized value in string eq at
/usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm
            line 84.<br>
            Access: incremental commit to DB<br>
            <div><br>
            </div>
            <div>I'm using mysql 8. I want to get rid of that message.</div>
            <div><br>
            </div>
            <div>Regards</div>
            <div><br clear="all">
              <div>
                <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
                  <div dir="ltr"><b>Izwan</b></div>
                  <div><b>UiTM Digital Library<br>
                    </b><a href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fir.uitm.edu.my%2F&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276912324%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=zp%2BkaP6pZcl6lTSXX4MR4S9Pfkv19nqTIXhTB2Hi7z0%3D&amp;reserved=0" originalSrc="http://ir.uitm.edu.my/" shash="Z4UnGFidhU/NtJ2cmhZaT2FeqIUvkA1svAoBxAG0K4tBPczPqJjFIn6MiClfb+KaFLponbg631FbaoqDYcibt2XNwOTOU2fUkmdRYl++7j3g0ZtfiHdYIWiCDXHNbfMQ9k642xKHTqQm/X9Yj/abOsjsS9vGaEglLNZSDwFafZ0=" originalsrc="http://ir.uitm.edu.my/" shash="xT4DvwSOykctYfvlEGmAvwTC6uJ/AIods1MD8GRSGs5sNjMV1++P7gR6eV1HUizd3TCv5M6po1csD+uzb0q3H4goOUMkOp5z+JqUREP/KL+Z0beFyX8+z4pyU+L8KnfnkPmNVTrizVzkW+CBOGh8BLypka68wmmkXsZkPved7dk=" moz-do-not-send="true">http://ir.uitm.edu.my/</a><b><br>
                    </b></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <p><b><font size="3">PENAFIAN: </font></b><font size="2">E-mel
            ini dan apa-apa fail yang dihantar bersama-samanya (&quot;Mesej&quot;)
            adalah dihasratkan hanya untuk kegunaan penerima yang
            dinyatakan di atas dan mungkin mengandungi maklumat yang
            tidak umum, bermilik, istimewa, sulit dan dikecualikan dari
            penzahiran di bawah undang-undang yang terpakai termasuklah
            Akta Rahsia Rasmi 1972.
            <a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276912324%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=%2FUDaqxcMQHz6KQtn5BTbl5t4zhNBpN0mAvBpiWbdlB8%3D&amp;reserved=0" originalSrc="https://mail.uitm.edu.my/index.php/component/content/article?id=2&Itemid=103" shash="QlEmHeAM5M9nMSD0P4A6mzP8y7F9DK3u6/8Sta+XQEpkxVhx1QH4ai82PKWcD5+Dxg2ytnrHINyrp2FkWwd9fqTByGEzzM7ooS0lTJuWaEDBhU7bSOfw2UspfS0WiRNbaN+l4t3dxuE0BEiW1dq+oWZ/fZoc9jTRAtYpx5L5lrM=" originalsrc="https://mail.uitm.edu.my/index.php/component/content/article?id=2&amp;Itemid=103" shash="V9bd+psL0eAxf9BzzeblAehGUkIr3rUazI9uqUVhH8O6GJv9Ucs+o+TegNXIo7xJHjweOB6ZH3hd70/+XKWbnC1DB1b0uyr9PtIWMnWq9iO2xy8CzuuhPe4NrnDf5TCu9UqvRwUVVJJdvTVkFnxkJkGtG7npr3FzeWlS7TqJ+CA=" target="_blank" moz-do-not-send="true">
              <font style="background-color:red" color="#ffffff">BACA
                SELANJUTNYA...</font></a></font></p>
        <hr>
        <font style="font-style:italic" size="3"><b>DISCLAIMER :</b></font><font size="2"><i> This e-mail and any files transmitted with it
            (&quot;Message&quot;) is intended only for the use of the recipient(s)
            named above and may contain information that is non-public,&nbsp;
            proprietary,&nbsp; privileged,&nbsp; confidential&nbsp; and&nbsp; exempt&nbsp; from&nbsp;
            disclosure under applicable law including the Official
            Secrets Act 1972.
          </i><a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.uitm.edu.my%2Findex.php%2Fcomponent%2Fcontent%2Farticle%3Fid%3D2%26Itemid%3D103&amp;data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276922280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=Xj4FCj7aQ5MFK83FQ6a4umXP%2FkPpqmVW5nhG9JuhgF8%3D&amp;reserved=0" originalSrc="https://mail.uitm.edu.my/index.php/component/content/article?id=2&Itemid=103" shash="b/IaAzV53qxqSsUCj4yeTeU5Ta1ISdiRIDkZfzz0F5iJJ2CeD3MNcyPwVUVOeMlRWnpoCdYKO8pYHUaroJmtgJzB5nwy1b0ie0Rt32NovuET9uqhKA51PliYK2DSbkn32mIr/4RZx3Us/x96YjYAWpzwR+oXSLNtTH1pyPKzbio=" originalsrc="https://mail.uitm.edu.my/index.php/component/content/article?id=2&amp;Itemid=103" shash="gJ7cB87EqnNpk3IOLQD+pMMgIJuqtEdwA6LMk3wWOugeFYY8ADZmgg16BiXQ+VMY/21aAK0zLJPEzKZno+4jMrd562jG/T159PgxuAlzMJDuq6JXapPaujgH3PvUynlftMZsy/sGORZAykD+r2RyPHNode9dk6NH3j/0MW2D6Bk=" target="_blank" moz-do-not-send="true"><font style="background-color:red" color="#ffffff">READ MORE...</font></a></font></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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276922280%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=FLBf%2BP0qjrlZN4w1shnGXAKobhI9RifOen3gj8i3M5c%3D&amp;reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="wi5sCXS5iK1YP7gjuSkKj4jGlwY3rCA2G47Zs/tOuwRbJ84xY093Y6NTOF5JIsMtabpT83e8as6kGPgReFt4CnRDrsnwbXP7OGsO5qW1NN2TGtC2z4Pw7agCJwvrKbAplNlBbHoL6BzUSzHEEB/n1liEZMw6nAzQfWuDNg+IrTk=">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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276932236%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=LZQIuCb40DNDOkEnM62eiy9GRg7kJsRNkNjV6uPZGtw%3D&amp;reserved=0" originalSrc="http://wiki.eprints.org/" shash="GolNV5nwqpgKzuERNvJho+7Mx62Tk0yH/K9ZRwl16Q2sL7BkFHn3HNcxL+1OJK7hEEqFdYZLijD7iKpK3eCfecMprCMYCBXlDi3VfDXkX7bvMx0u/byyj160vLJXetrx4cKk/2YVG64GoSIBSIXsaG4OsQ5d8UT/+9LifMkqJaY=">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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276932236%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=a3IHELdonItkfJYsqTUtRysUsdN8RE3XkoOTFiuIWc8%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="hZuPGw5JQ1fKtDuOzsABusH+0l4fk6VO0Yx/BMEjdWgikusy8ofEXAwdzDmExRicsseyhmb54BnvkajQg39nXJ37aHh2asKZVQI9vxhAkreAw6gDyxiuZk+Z7hdCWFCcIpuzl9JjmZaFVVkuLLlhzR7Ed+Y1bRk9zGotKtTKNHk=" 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=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7C3dacd015634d42d6fc5608d95e36b2c6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637644411276942189%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=dOL4Sj5kOEbcmEjEpzitshJmOw%2BTzU%2BMYTYWC9kEdow%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="KldZ3QXaFUf8j696mkzFd0WKFeEmWqsDM4VSOd5qSeRy+jZg6JXrKGLYMEF3ju8YTdfBx2qEdcxij6G1PhxLOskMe4Jne4PKQol4EarVYGcacwUbJ/R9ndwsU/IelwSLkar+ggSuEjIynrC2XtVzHPtuUlzmmkqOHtlJAE7PwT8=" 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>