EPrints Technical Mailing List Archive
Message: #08697
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Message during process_stats IRStat2
- To: <eprints-tech@ecs.soton.ac.uk>, "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- Subject: Re: [EP-tech] Message during process_stats IRStat2
- From: David R Newman <drn@ecs.soton.ac.uk>
- Date: Fri, 13 Aug 2021 09:45:25 +0100
Hi Izwan,
Looking at the line of code that has the error:
if( $hostname eq $self->{host} )
One of the these to variables is not set. As there is a comparison involving $hostname further up in the file, it must be $self->{host} that is not set. This is earlier set from line 24:
$self->{host} = $self->{session}->config( "host" );
My suspicion is that you have reconfigured your repository to be HTTPS only and there only set $c->{securehost} and not $c->{host} in your archive's cfg/cfg.d/10_core.pl (or some other config file in the same directory). If $c->{host} is set to undef this would also return the same error message here. 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:
$self->{host} ||= $self->{session}->config( "securehost" );
This will set $self->{host} to the config value of securehost
if there is no value set for host. I have had to make various
amendments to EPrints to support the no $c->{host} set means
HTTPS only, so that it does not break things that expect it to
always be set. However, not setting $c->{host} seemed like the
most intuitive way to allow system administrators to know they
have configured their repository for HTTPS only.
Unfortunately, there has not been a new release of IRStats 2 since these changes were baked into recent versions of EPrints 3.4. In part due to this only affecting those who configured there repositories for HTTPS only in this way.
Regards
David Newman
CAUTION: This e-mail originated outside the University of Southampton.Dear all, I just migrated and upgraded EPrints 3.3.16 to 3.4.3. Everything worked fine until I ran the process_stat --setup for IRSTAT2.
The statistic is running (i guess) but it only shows messageUse of uninitialized value in string eq at /usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm line 84.Use of uninitialized value in string eq at /usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm line 84.Use of uninitialized value in string eq at /usr/share/eprints/lib/plugins/EPrints/Plugin/Stats/Processor/Access/Referrer.pm line 84.
Access: incremental commit to DB
I'm using mysql 8. I want to get rid of that message.
Regards
Izwan
PENAFIAN: E-mel ini dan apa-apa fail yang dihantar bersama-samanya ("Mesej") 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. BACA SELANJUTNYA...
DISCLAIMER : This e-mail and any files transmitted with it ("Message") is intended only for the use of the recipient(s) named above and may contain information that is non-public, proprietary, privileged, confidential and exempt from disclosure under applicable law including the Official Secrets Act 1972. READ MORE...
*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** Archive: http://www.eprints.org/tech.php/ *** EPrints community wiki: http://wiki.eprints.org/
- References:
- [EP-tech] Message during process_stats IRStat2
- From: "MOHD.IZWAN SALIM" <mohdizwan8733@uitm.edu.my>
- [EP-tech] Message during process_stats IRStat2
- Prev by Date: [EP-tech] Message during process_stats IRStat2
- Next by Date: Re: [EP-tech] Message during process_stats IRStat2
- Previous by thread: [EP-tech] Sort view with creators_name and corp_creators
- Index(es):