Cannot use lexical variable $eventName guzzlehttp

9.1.x
help

#1

Please help us by providing the following info. Before posting please also check the pinned "Known issues" threads and make sure that you're running the latest available version for your oC release: https://owncloud.org/changelog/

Steps to reproduce
1. Log in to OwnCloud
2. Click on Apps
3.

Expected behaviour
Apps page should load

Actual behaviour
HTTP error 500 returned.

Server configuration
Operating system: ArchArm 4.4.45-1-ARCH
Web server : apache 2.4.25-1
Database: mariadb 10.1.21-1
PHP version: php 7.1.1-1
ownCloud version (see ownCloud admin page): 9.1.3.1
Updated from an older ownCloud or fresh install: Updated
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption):

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see https://central.owncloud.org/t/how-to-find-webserver-or-oc-logfile-enable-php-logfile/808 for more info

Cannot use lexical variable $eventName as a parameter name at \/usr\/share\/webapps\/owncloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Event\/Emitter.php#48

Integrity status for oC9+

No errors have been found.

Additional Info
In the Admin pane, the message "Error occurred while checking server setup" is displayed. Loading this page generates the same error message about lexical variable $eventName as listed in the code block above.

I deleted the owncloud directory and reinstalled from the package manager, but saw no change in behaviour.

Web searches show little information, except to suggest an incompatibility between the php version and the guzzlehttp version.

Thank you for any help you can provide.

--James


#2

Appears to be a bug in the guzzle library of version 5.3.0 when used with php 7.1+: https://github.com/guzzle/guzzle/pull/1393

Further information here re: symfony and php 7.1 issues https://github.com/symfony/symfony-installer/issues/263


#3

Ah... Found this: https://archlinuxarm.org/forum/viewtopic.php?f=9&t=11218

So OwnCloud not ready for php 7.1.1 yet. Except mine didn't give a warning about a compatibility problem like the link above.
I'll try to roll back to the older php version for now.