Try the fastest and simplest way to install ONLYOFFICE

NextCloud App for OnlyOffice fails with PHP error

Issues during installation, usage and configuring

NextCloud App for OnlyOffice fails with PHP error

Postby 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
hhfrese
 
Posts: 1
Joined: Tue Apr 24, 2018 5:58 am

Re: NextCloud App for OnlyOffice fails with PHP error

Postby Maxim » Thu Apr 26, 2018 7:56 am

Hello!
Please specify your Onlyoffice connection settings (in Nextcloud) to the Document Server.
Maxim
 
Posts: 1742
Joined: Tue Oct 11, 2016 2:34 pm


Return to ownCloud/Nextcloud ONLYOFFICE integration app

Who is online

Users browsing this forum: No registered users and 2 guests

cron