Doesn't work with NextClould from the official EPEL repository
See original GitHub issueI prefer to install services like NextCloud/ownCloud from repositories due to a consistent update strategy, syslog and so on. I use a NextCloud package from EPEL.
Unfortunately, JSXC downloaded from here doesn’t work with a NextCloud instance deployed in the above mentioned way. The problem lies in conflicting vendor packages:
2017/05/12 21:39:21 [error] 11804#11804: *5837496 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare Sabre\Uri\resolve() (previously declared in /usr/share/php/Sabre/Uri/functions.php:23) in /var/lib/nextcloud/apps/ojsxc/vendor/sabre/uri/lib/functions.php on line 92" while reading response header from upstream, client: 89.164.199.70, server: cloud.example.com, request: "GET /status.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.example.com"
Can you make the autoloading feature more robust to handle cases where user already has required libraries?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Linux packages status - Installation - Nextcloud community
Will Nextcloud be "inviting" to distribution packages? It is in the EPEL7 repos so easy to install on CentOS/RHEL 7 Due to PHP...
Read more >What is the supported PHP7 installation method for CentOS 7
The documentation clearly states the CentOS7 + PHP7 is an accepted combination in the recommended method of install.
Read more >Packages for Nextcloud on RH/CentOS - Installation
Hi, I have tried the following on centos 7 with epel 7 installed: yum install nextcloud and it says: No package nextcloud available....
Read more >CentOS, PHP & Nextcloud: the version dilemma - Releases
The solution would be to go with Nextcloud 10, which only requires PHP 5.4, and which is also provided in package form by...
Read more >Example installation on CentOS 8 - Nextcloud Documentation
In this install tutorial we will be deploying CentOS 8, PHP 7.4, MariaDB, Redis as memcache and Nextcloud running on Apache. Start off...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix works for me. Tnx.
As this is only a workaround, should we treat the issue as a bug in Symfony and report it there?
I just had a look at this, The problem is that the EPEL package is using another autoload mechanism (a Symfony component) instead of Composer. Normally Nextcloud uses composer for it’s dependencies, which this app depends on (since composer won’t load a dependency twice IIRC).
Can you test https://github.com/nextcloud/jsxc.nextcloud/pull/17 please.