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

Piwik code is asking for string from local_analytics #5

Open
nbartley opened this issue Apr 6, 2023 · 7 comments
Open

Piwik code is asking for string from local_analytics #5

nbartley opened this issue Apr 6, 2023 · 7 comments
Assignees
Labels
Bug Something isn't working Needs backporting Needs to be backported to a previous branch

Comments

@nbartley
Copy link

nbartley commented Apr 6, 2023

Describe the bug
The get_pwiki code for analytics in classes/output/core_renderer_toolbox.php on lines 799 and 801 call for strings from local_analytics instead of theme_adaptable.

Generates a string not found error when debuging is turned up and piwik is enabled.

@nbartley nbartley added Bug Something isn't working Pending replication Pending the issue being replicated to demonstrate that it is indeed an issue. labels Apr 6, 2023
@gjb2048
Copy link
Collaborator

gjb2048 commented Apr 6, 2023 via email

@gjb2048
Copy link
Collaborator

gjb2048 commented Apr 6, 2023 via email

@nbartley
Copy link
Author

nbartley commented Apr 6, 2023

Version V401.1.2

https://github.com/gjb2048/moodle-theme_adaptable/blob/master/classes/output/core_renderer_toolbox.php

Lines 799 and 801.

$trackurl .= $pageinfo[1]->fullname.'/'.get_string('edit', 'local_analytics'); } else { $trackurl .= $pageinfo[1]->fullname.'/'.get_string('view', 'local_analytics');

Why would local analytics plugin be required for basic Piwik tracking from the site... it loads the piwik jscript code from trackerurl not local moodle.

@gjb2048
Copy link
Collaborator

gjb2048 commented Apr 6, 2023 via email

@nbartley
Copy link
Author

nbartley commented Apr 6, 2023

That's my point, it isn't required, probably just an old copy paste bug. Anywho, I've let ya know, it is a bug and it generates lovely error messages when piwik tracking is enabled.

@gjb2048
Copy link
Collaborator

gjb2048 commented Apr 6, 2023 via email

@gjb2048 gjb2048 added Needs backporting Needs to be backported to a previous branch and removed Pending replication Pending the issue being replicated to demonstrate that it is indeed an issue. labels Apr 6, 2023
@gjb2048
Copy link
Collaborator

gjb2048 commented Apr 6, 2023

@nbartley Fixed in development repository - will be in the next release for M4.1, possibly backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Needs backporting Needs to be backported to a previous branch
Projects
None yet
Development

No branches or pull requests

2 participants