Presence of "http://" in the parameters of the archive cron script may cause incompatibility with cPanel #4483
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
c: Performance
For when we could improve the performance / speed of Matomo.
When using cPanel to set up the cron job as per http://piwik.org/docs/setup-auto-archiving/ , you may encounter an issue where cPanel will refuse to create (or edit) the cron job for Piwik.
A typical command might be, for example:
However, doing so in my case will not work, cPanel will give me an error in a red rectangle box: "JSON parse failed."
Weirdly enough, Hostgator administrators (ie: root) are able to do it with cpanel (so they can't reproduce the issue on their end), but a "normal" user like me cannot. This is regardless of which web browser is used.
We narrowed down the issue to be due to the presence of "http://". For example, I can create this fake cron job:
...but not this one:
Hoping there's something that could be improved on the piwik side, like making the http/https part optional/autodetectable (and documenting that)...
The text was updated successfully, but these errors were encountered: