# Nextcloud won't save the Collabora online wopi\_url setting

**URL:** <https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818>\
**Category:** 📄 Office\
**Tags:** collabora-online\
**Created:** [July 22, 2016, 3:11am UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818 "2016-07-22T03:11:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [July 22, 2016, 3:11am UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818/1 "2016-07-22T03:11:35Z")

</div>

I tried to add my Collabora online url using the webui, it won’t save.

I tried using occ:  
`# sudo -u www-data /srv/nextcloud/occ config:app:set richdocuments wopi_url --value='https://office.mydomain.com' Config value wopi_url for app richdocuments set to https://office.mydomain.com root@nextcloud:~# sudo -u www-data /srv/nextcloud/occ config:list | grep wopi "wopi_url": null`

I tried to use the exact same command to save a wopi2\_url and it works …

Any idea why ?

---

<div class="post-metadata">

**Author:** ![Lox](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lox/32/881_2.png) [@Lox](https://help.nextcloud.com/u/Lox)\
**Post date:** [July 22, 2016, 3:54am UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818/2 "2016-07-22T03:54:40Z")

</div>

I fixed it by setting the value in mysql directly.

Having followed the Nginx guide I faced another issue where the docker collabora server returns an “X-Frame-Options” that forbids it to be displayed in NextCloud’s iframe.

So I added “add\_header X-Frame-Options SAMEORIGIN;” in the “location ^~ /loleaflet {” block;

---

<div class="post-metadata">

**Author:** ![compumatter1](https://help.nextcloud.com/user_avatar/help.nextcloud.com/compumatter1/32/47665_2.png) [@compumatter1](https://help.nextcloud.com/u/compumatter1)\
**Post date:** [November 28, 2022, 7:06pm UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818/3 "2022-11-28T19:06:59Z")

</div>

These two command worked perfectly for me:

# remember, this is not your Nextcloud vhost config but the one you created for collabora

# this command will set the value of the wopi\_url field

**sudo -u www-data php occ config:app:set richdocuments wopi\_url --value=[https://collaboras.domain.ext](https://collaboras.domain.ext)**

# This will functional equivelant of pressing the “save” button to activate your above config

# Note: Nextcloud will attempt to connect to the the wopi\_url you provided above. If it fails to connect, an error will result to the screen.

**sudo -u www-data php occ richdocuments:activate-config**

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:58pm UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818/4 "2024-11-06T20:58:19Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 3:15pm UTC](https://help.nextcloud.com/t/nextcloud-wont-save-the-collabora-online-wopi-url-setting/1818/5 "2024-12-04T15:15:02Z")

</div>


