EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09981


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] ask about irstats


CAUTION: This e-mail originated outside the University of Southampton.
Hi David,

I installed from eprints bazaar, but then I update the files from github.

Is it uninstall and install again is the best way for files consistency? 

What your suggestion David?

Thank you

Regards,
Agung pw

On Sat, Feb 15, 2025, 23:40 David R Newman <drn@ecs.soton.ac.uk> wrote:
Hi Agung,

It sounds like you may have inconsistent versions of the various files that make the IRStats2 plugin.  How did you install IRStats2 (from the EPrint Bazaar or from GitHub).  Did you install as an ingredient or a Bazaar plugin?  Which version or IRStats2 do you have installed and if applicable specifically which changeset to you have checked out from GitHub.  Both of the base_url and validate_non_context_param have been added relatively recently but it looks like your version of EPrints/Plugin/Stats/Utils.pm in either /usr/share/eprints/lib/plugins/ or /usr/share/eprints/ingredients/irstats2/plugins/ is out of date and does not have these functions. 

Without knowing how you installed (and possibly upgraded IRStats2) it is difficult to advise what to do.  It may be sufficient to download the latest version of EPrints/Plugin/Stats/Utils.pm from [1].  However, that may make things more difficult to maintain in the future, as you will have an even more inconsistent version of IRStats2 installed.

Regards

David Newman

[1] https://raw.githubusercontent.com/eprints/irstats2/refs/heads/master/lib/plugins/EPrints/Plugin/Stats/Utils.pm

On 15/02/2025 3:23 pm, Agung Prasetyo W. wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Hi,

I want to ask something about irstats. I have run the process_stats --setup command, but until the process is complete, the display in irstats only shows the icon and the text loading

Is there something wrong with our process, or is there a file that is not appropriate? We also found an error in apache2.error as follows:

[Fri Feb 14 22:41:07.798499 2025] [:error] [pid 3386824] Undefined subroutine &EPrints::Plugin::Stats::Utils::base_url called at /usr/share/eprints/archives/archive_ID/cgi/stats/set_finder line 47.\n
[Fri Feb 14 22:41:07.857356 2025] [:error] [pid 217829] Undefined subroutine &EPrints::Plugin::Stats::Utils::validate_non_context_param called at /usr/share/eprints/archives/archive_ID/cgi/stats/get line 83.\n

this is also the screenshot
image.png


Please help me

Thank you

Regards,
Agung PW

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/


PNG image