Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize getDataCache and institutionDataCache in PKPStatisticsHelper to be empty arrays #11144

Closed
bozana opened this issue Mar 20, 2025 · 3 comments
Assignees
Milestone

Comments

@bozana
Copy link
Collaborator

bozana commented Mar 20, 2025

When executing the UsageStatsLoader scheduled task, I got this error:
PHP Fatal error: Uncaught Error: Cannot access uninitialized non-nullable property PKP\statistics\PKPStatisticsHelper::$geoDataCache by reference in /home/bozana/pkp/ojs-master/lib/pkp/classes/statistics/PKPStatisticsHelper.php:206

PRs:
stable-3_5_0: #11147
main: #11160

@bozana bozana added this to the 3.5 Internal milestone Mar 20, 2025
@bozana bozana self-assigned this Mar 20, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Statistics Mar 20, 2025
bozana added a commit to bozana/pkp-lib that referenced this issue Mar 20, 2025
@bozana
Copy link
Collaborator Author

bozana commented Mar 20, 2025

@asmecher, could you please check the change here?
Thanks a lot!

@bozana
Copy link
Collaborator Author

bozana commented Mar 20, 2025

Or, maybe @jonasraoni would be able to take a look? :-)

@asmecher
Copy link
Member

@bozana, please go ahead, thanks!

bozana added a commit that referenced this issue Mar 21, 2025
#11144 Initialize getDataCache and institutionDataCache in…
bozana added a commit to bozana/pkp-lib that referenced this issue Mar 21, 2025
bozana added a commit that referenced this issue Mar 21, 2025
#11144 Initialize getDataCache and institutionDataCache in…
@bozana bozana closed this as completed Mar 21, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Statistics Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants