sualko / cloud_piwik

Track @Nextcloud users with @matomo-org (formerly Piwik)
http://sualko.github.io/cloud_piwik/
MIT License
37 stars 18 forks source link

Cannot save admin settings #21

Closed gjelsas closed 7 years ago

gjelsas commented 7 years ago

I'm now on Nextcloud 11 and the entries I enter into the admin settings of the piwik addon win't be saved. I disabled all addons and tried three different browsers. Any Idea?

sualko commented 7 years ago

Can you check your javascript console and nextcloud log?

gjelsas commented 7 years ago

% tail -f /var/www/owncloud/data/nextcloud.log | grep piwik
{"reqId":"ofAdnwrlQ9j3gM5AHQeV","remoteAddr":"","app":"PHP","message":"Undefined index: HTTP_HOST at \/var\/www\/owncloud\/apps\/piwik\/appinfo\/app.php#24","level":3,"time":"2016-12-20T21:30:02+01:00","method":"--","url":"--","user":"--","version":"11.0.0.10"}

My Javascrip Console in Vivaldi browser says:

jquery-migrate.min.js?v=c841531…:2 JQMIGRATE: Migrate is installed, version 1.4.0 track.js?v=c841531…:8 Uncaught TypeError: Cannot read property 'getItem' of undefined at track.js?v=c841531…:8 at track.js?v=c841531…:81 (anonymous) @ track.js?v=c841531…:8 (anonymous) @ track.js?v=c841531…:81 js.js?v=c841531…:2139 Deprecation warning: tipsy is deprecated. Use tooltip instead. jQuery.fn.tipsy @ js.js?v=c841531…:2139 (anonymous) @ admin.js?v=c841531…:44 j @ jquery.js:3099 fireWith @ jquery.js:3211 ready @ jquery.js:3417 I @ jquery.js:3433 VM825:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse () at Object.success (settings-admin.js?v=c841531…:5) at j (jquery.js:3099) at Object.fireWith [as resolveWith] (jquery.js:3211) at x (jquery.js:8264) at XMLHttpRequest. (jquery.js:8605) (anonymous) @ settings-admin.js?v=c841531…:5 j @ jquery.js:3099 fireWith @ jquery.js:3211 x @ jquery.js:8264 (anonymous) @ jquery.js:8605 jquery.js:8630 GET https://georgelsas.de/owncloud/data/.ocdata?t=1482324013133 403 (Forbidden) send @ jquery.js:8630 ajax @ jquery.js:8166 checkDataProtected @ setupchecks.js?v=c841531…:211 (anonymous) @ admin.js?v=c841531…:241 j @ jquery.js:3099 fireWith @ jquery.js:3211 ready @ jquery.js:3417 I @ jquery.js:3433 DevTools failed to parse SourceMap: https://georgelsas.de/owncloud/index.php/settings/admin/dist/purify.min.js.map