NERC-CEH / irecord-butterflies-app

Repository for the code for the iRecord Butterflies App
0 stars 0 forks source link

Issue: user statistics page is showing a 500 error #180

Closed kazlauskis closed 1 month ago

kazlauskis commented 2 months ago

Describe the issue

The website is returning a 500 error for some reason when calling this report: https://irecord.org.uk/api/v2/advanced_reports/user-stats?survey_id=101

Expected behaviour

No response

To Reproduce

No response

App Version

all versions

Device

No response

When did this happen

No response

Screenshots

No response

Additional context

No response

kazlauskis commented 1 month ago

@DavidRoy I'm not sure why the report is failing. Could someone look into this matter on the website?

robin-hutchinson commented 1 month ago

I've just had another report of this - seems like it is affecting quite a few users?

robin-hutchinson commented 1 month ago

I've linked an issue on the general iRecord github: https://github.com/BiologicalRecordsCentre/iRecord/issues/1730

BirenRathod commented 1 month ago

@kazlauskis I found below error from the php log. [27-Sep-2024 13:06:42 Europe/London] Uncaught PHP Exception Error: "Call to undefined method helper_base::cache_get()" at /code/web/modules/custom/indicia_advanced_reports/src/RecorderMetrics.php line 579

does this indicate any issue or bug in the indicia_advanced_reports module?

kazlauskis commented 1 month ago

@BirenRathod yes, probably.

johnvanbreda commented 1 month ago

This should be resolved now, please close if OK

robin-hutchinson commented 1 month ago

All working (confirmed with the user), thank you!

I don't have permissions to close the issue, @kazlauskis would you be able to please?

kazlauskis commented 1 month ago

@robin-hutchinson I've sent you an invite to join the repo now.