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

Stops working after upgrading to NC28 #916

Open
ueismann opened this issue Dec 13, 2023 · 25 comments
Open

Stops working after upgrading to NC28 #916

ueismann opened this issue Dec 13, 2023 · 25 comments

Comments

@ueismann
Copy link

ueismann commented Dec 13, 2023

After upgrading and updating system + NC + Apps, then trying to open document in web interface: "Onlyoffice cannot be reached, contact your administrator."

Nextcloud Server version
28.0.0

Operating system
Debian/Ubuntu

Web server
Apache (supported)

Database engine version
MariaDB

OO connector App version
9.0.0

@SergeyKorneyev
Copy link

Please try opening the ONLYOFFICE connector settings and saving them again.

@ueismann
Copy link
Author

I tried the following:

Unfortunately none of this helped. Am I supposed to change the settings anyhow?

@NSO73
Copy link

NSO73 commented Dec 15, 2023

Hi.
Same issue here.

Log :

Exception array_merge(): Argument #2 must be of type array, null given in file '[...]/lib/public/AppFramework/Http/Response.php' line 273

@ueismann
Copy link
Author

ueismann commented Dec 15, 2023

I tried the following:

Unfortunately none of this helped. Am I supposed to change the settings anyhow?

...using the Demo ONLYOFFICE Server in the connector settings works (connects but hangs at "Loading..."), but doesn't solve the problem of course.

@deganl
Copy link

deganl commented Dec 15, 2023

+1
same issue after upgrading to 28.0.0

@ueismann
Copy link
Author

  • also re-installing OO connector + community document server doesn't help

@webworka
Copy link

webworka commented Dec 21, 2023

+1
Same issue here after upgrade to 28.0.0/28.0.1

But I found a workaround: In file lib/public/AppFramework/Http/Response.php, line 273:

Old Code:

return array_merge($mergeWith, $this->headers);

New Code:

return array_merge($mergeWith, $this->headers?? []);

I know this is not a real solution but I got onlyoffice back now.

@ueismann
Copy link
Author

Thx!, works here.

@claushviid
Copy link

ame issue here after upgrade to 28.0.1

@claushviid
Copy link

Old Code:
return array_merge($mergeWith, $this->headers);
New Code:
return array_merge($mergeWith, $this->headers?? []);

Did not work, now i receive the message onlyoffice can not be reached. Contact admiistrator

@aigarslv90
Copy link

Check path in your Server settings in ONLYOFFICE Settings, it could have index.php in it - try removing it.

For example: https://next.server.lv/index.php/apps/documentserver_community/ change it to https://next.server.lv/apps/documentserver_community/

@claushviid
Copy link

ok after changing lib/public/AppFramework/Http/Response.php, line 273:
From Old Code:
return array_merge($mergeWith, $this->headers);
To New Code:
return array_merge($mergeWith, $this->headers?? []);

and removing index.php from Server settings in ONLYOFFICE Settings

Everything works again. Thanks aigarslv90

@v-bulynkin
Copy link

v-bulynkin commented Dec 27, 2023

To apply the workaround noninteractively:

sed -i '273s/headers.*/headers?? []);/' /var/www/html/lib/public/AppFramework/Http/Response.php

@xyko0
Copy link

xyko0 commented Dec 29, 2023

Hello, same issue here. The workaround doesn't work in my case 😭

@sheep0lata
Copy link

sheep0lata commented Jan 10, 2024

Hello, same issue here. The workaround doesn't work in my case 😭

Hi, the workaround didn't work at first for me neither but I had an other error. To resolve it I had to check if documentserver_community was installed, which seemed to be the case.

I had to download the app directly from Nextcloud's apps hub (https://apps.nextcloud.com/apps/documentserver_community) on the latest version then extract it in the apps folder.

OnlyOffice was back up after these modifications, hope it can help you.

Update to this answer : apparently OnlyOffice crashed 10 mins after fixing it, giving me two error messages :
"Community document server is not supported for this instance, please setup and configure an external document server"
"can't execute x2t binary, ensure php can execute binaries in the app folder"

I'm still trying to figure why this appears.

Second update : I just forgot to change the rights on the documentserver_community folder, fixed when changing the user and group (from root:root to www-data:www-data).

@ueismann
Copy link
Author

Upgrade from 28.0.0 to 28.0.1: same issue, same solution. Please, we need a real fix.

@a1ex-ak
Copy link

a1ex-ak commented Jan 11, 2024

Upgrade from 27.1.5 to 28.0.1: same issue, same solution. Please, we need a real fix.

@rinkelzz
Copy link

same issue... both workarounds doesn't work for me

@deganl
Copy link

deganl commented Jan 12, 2024

No fix since over 4 weeks, really? I now switched to Collabora and everything works fine.

@teachergil
Copy link

I still have problems with onlyoffice app and nextcloud server. Will you have any fix???

@claushviid
Copy link

Will you have any fix???

@rsedlmeier
Copy link

No upgrade to NC 28 as OnlyOffice is critical to most users.
Hope you eliminate that bug soon.
Thx

@rsedlmeier
Copy link

Same issue /w 28.0.2

@rsedlmeier
Copy link

nextcloud/documentserver_community#311

THis one worked for me on NC 28.0.2.

@a1ex-ak
Copy link

a1ex-ak commented Feb 3, 2024

nextcloud/documentserver_community#311

У меня это сработало на NC 28.0.2.

what do these teams do or improve?
I don't understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests