NextCloud App for OnlyOffice fails with PHP error

Issues during installation, usage and configuring
Post Reply
hhfrese
Posts: 1
Joined: Tue Apr 24, 2018 5:58 am

NextCloud App for OnlyOffice fails with PHP error

Post by hhfrese » Tue Apr 24, 2018 7:37 am

Hi,

as we would like to use OnlyOffice as a collaboration tool on top of NextCloud, we installed the Community Edition of the OnlyOffice Document Server along with all the prerequisite packages and the NextCloud server on the same platform running CentOS 7.2. The NextCloud server runs on top of Apache HTTPD 2.4 and PHP 5.4, whereas the OnlyOffice Document Server 5.1 runs on top of NGINX 1.14 and NodeJS 6.14 on a different port 8085.

After adding the OnlyOffice App for NextCloud from

https://github.com/ONLYOFFICE/onlyoffice-owncloud.git

to NextCloud, the Apache HTTPD fails with a PHP error:

httpd[7543]: {PHP} Can't use method return value in write context at /usr/share/nextcloud/apps/onlyoffice/appinfo/application.php#68

The line /usr/share/nextcloud/apps/onlyoffice/appinfo/application.php#68 corresponds to the PHP instruction

if (!empty($this->appConfig->GetDocumentServerUrl()) && $this->appConfig->SettingsAreSuccessful()) {
Util::addScript("onlyoffice", "main");
Util::addStyle("onlyoffice", "main");
}

Any hint to resolve the above issue will be appreciated.

Thanks,

Hans-Hermann

Maxim
Posts: 1821
Joined: Tue Oct 11, 2016 2:34 pm

Re: NextCloud App for OnlyOffice fails with PHP error

Post by Maxim » Thu Apr 26, 2018 7:56 am

Hello!
Please specify your Onlyoffice connection settings (in Nextcloud) to the Document Server.

Post Reply