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

Unable to change URL of Collabora Online Server: Undefined index watermark_... #641

Closed
derSascha opened this issue Sep 27, 2019 · 2 comments
Labels
1. to develop Waiting for a developer bug Something isn't working

Comments

@derSascha
Copy link

Describe the bug
After activating the richdocuments app on a fresh nextcloud installation (16.0.5), i'm unable to change the Collabora Online-Server adress in the admin settings. The app complains that watermark indices are missing, see the nextcloud logs below.

To Reproduce
Steps to reproduce the behavior:

  1. Install the richdocuments app
  2. Go to Settings, Collabora Online
  3. Change the Server address an click 'apply'
  4. The text 'Saving...' occurred next to the apply button and never finishes

Server details

Operating system: Ubuntu 18.04 LTS

Web server: nginx 1.16.1

Database: mysql 5.7.27

PHP version: 7.2

Nextcloud version: 16.0.5

Version of the richdocuments app: 3.4.2

Version of Collabora Online: docker collabora/code:latest (4.0.6.1?)

Nextcloud log (data/nextcloud.log)

{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_allTags at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_enabled at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_linkAll at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_linkRead at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_linkSecure at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_linkTags at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_shareAll at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_shareRead at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}
{"reqId":"zXxPQWWjNrLaxTgJ0PGJ","level":3,"time":"2019-09-27T15:14:00+00:00","remoteAddr":"10.67.91.6","user":"admininit","app":"PHP","method":"GET","url":"\/nextcloud\/index.phpadmin\/richdocuments","message":"Undefined index: watermark_text at \/data\/www\/sites\/nextcloud\/nextcloud-16.0.5\/apps\/richdocuments\/lib\/AppConfig.php#69","userAgent":"Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.75 Safari\/537.36","version":"16.0.5.1"}

Browser log

main.js?v=ce983b9a-1:59 Uncaught TypeError: Cannot read property 'message' of undefined
    at Object.finishedAction (main.js?v=ce983b9a-1:59)
    at Object.afterSave [as success] (admin.js?v=ce983b9a-1:169)
    at u (main.js?v=ce983b9a-1:39)
    at Object.fireWith [as resolveWith] (main.js?v=ce983b9a-1:39)
    at k (main.js?v=ce983b9a-1:39)
    at XMLHttpRequest.<anonymous> (main.js?v=ce983b9a-1:39)
@juliusknorr juliusknorr added 1. to develop Waiting for a developer bug Something isn't working labels Oct 4, 2019
@juliusknorr
Copy link
Member

Fixed by #645

@derSascha
Copy link
Author

Thanks for the quick fix. After patching my installation, the errors in the log files don't appear anymore.

@juliushaertl and @rullzer this does not fix the problem with the broken settings page. Any option in the Collabora Online settings page is affected by this. To reproduce: Change something, wait some seconds and reload the page. All changes are reverted. Changing the URL and clicking on "apply" always results javascript error (see above). Any suggestions howto debug this or what i can do to provide more informations?

rotdrop pushed a commit to rotdrop/nextcloud-richdocuments that referenced this issue Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Waiting for a developer bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants