Red Hat Bugzilla – Bug 1259484
Missing PHP classes
Last modified: 2016-04-01 10:18:20 EDT
Description of problem:
First error is:
"PHP Fatal error: Class 'Pimple\\Container' not found in /usr/share/owncloud/lib/private/appframework/utility/simplecontainer.php on line 32"
which is fixed by "dnf install -y php-pimple" as only "php-pimple-lib" is installed by dnf as dependency
Second error is:
PHP Fatal error: Class 'RandomLib\\Factory' not found in /usr/share/owncloud/lib/private/security/securerandom.php on line 32
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. dnf install owncloud -y
2. visit https://localhost/owncloud
ownCloud login page
php-ircmaxell-random-lib and php-ircmaxell-security-lib are installed (both 1.1.0-1.fc22)
The second failure seems unexpected, because we patch the OC autoloader to fallback to system paths, and RandomLib\\Factory should be autoloadable according to PSR-0 rules, as it's located in /usr/share/php/RandomLib/Factory.php . Similarly, php-pimple-lib should be sufficient to satisfy the Pimple\\Container requirement. I'm testing to see if I can reproduce this.
I can't reproduce this on a fresh F22 install with owncloud-8.0.5-1.fc22.noarch , php-ircmaxell-random-lib-1.1.0-1.fc22, and php-pimple-lib-3.0.1-1.fc22 (no php-pimple). OC works fine. I tested by installing with my test kickstart: 'inst.ks=https://www.happyassassin.net/ks/oc/oc8-httpd-sqlite.ks'. Going to http://ip/owncloud on the installed system worked fine, showed the OC web UI.
Can you post 'rpm -q owncloud; rpm -V owncloud'? Did you actually install one of the web server subpackages (owncloud-httpd or owncloud-nginx), and if so, which one?
owncloud-httpd was installed as I run apache2
# rpm -q owncloud; rpm -V owncloud
OK, sorry...but I can't actually do much with this now :/ I can't reproduce it here still, it works fine for me. Does this happen to you in a clean VM, if you can test that way? Have you done any local customization to the PHP config or anything like that?
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Owncloud 8.1.5 is on its way to the updates-testing repo.
When it has been pushed it would be helpful if you could do the following to test:
dnf update --enablerepo=updates-testing owncloud\*
Closing the bug due to the lack of response to needsinfo in the past 3 weeks and 8.1.5 now being in stable F22
If you still experience issues please reopen the bug.