You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[6.0.0alpha1] PHP Fatal Error when upgrading on PHP 5.3 #5313
Activity
Niduroki commentedon Oct 12, 2013
@DeepDiver1975
DeepDiver1975 commentedon Oct 12, 2013
@bartv2 any idea? THX
christinloehner commentedon Oct 13, 2013
aren't you doing autoload for classes?
That would have several advantages:
:-)
EDIT: Okay, just found the autoloader... but then there must be something wrong. Maybe I can find the compatibility problem....
GieltjE commentedon Oct 14, 2013
This also happens when using php 5.4.x
VicDeo commentedon Oct 14, 2013
@GieltjE do you have any PHP opcode caher (xcache, apc...)?
GieltjE commentedon Oct 14, 2013
@VicDeo apc was enabled, when I disable it owncloud still gives the same error, using a raspberry pi with PHP Version 5.4.4-14+deb7u5
bantu commentedon Oct 14, 2013
Is this the full error message? The error is usually followed by a "previously defined in ..." message.
christinloehner commentedon Oct 15, 2013
Unfortunatly, that is the only and full error message... :(
2013/10/11 09:00:05 [error] 3524#0: *11893 FastCGI sent in stderr: "PHP Fatal error: Cannot redeclare class OC_Config in /srv/cloud.xxxxx.xxx/www/lib/config.php on line 41" while reading response header from upstream, client: 95.91.243.185, server: cloud.xxxxx.xxx, request: "GET /index.php/apps/news/folders? HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "cloud.xxxxx.xxx", referrer: "http://cloud.xxxxx.xxx/index.php/apps/news/"
No other error before or after that error message.
DeepDiver1975 commentedon Oct 15, 2013
Maybe we get more information if php xdebug is installed?
GieltjE commentedon Oct 15, 2013
Edit: Put this into a code box - bantu
VicDeo commentedon Oct 16, 2013
@GieltjE can you try flushing memcache storage?
christinloehner commentedon Oct 17, 2013
is memcache a requirement for >=6.0? I have no memcache running until now.
DeepDiver1975 commentedon Oct 17, 2013
Memcache is not required.
GieltjE commentedon Oct 17, 2013
@VicDeo I do not have memcache, just APC, with that disabled the result is the same
bantu commentedon Oct 17, 2013
It seems you have the OC_Config class file twice. There should only be one file at lib/legacy/config.php, but you seem to also have lib/config.php.
bantu commentedon Oct 17, 2013
This should be caused by the fact that all $pathsToRequire are require_once'd. This does not make sense to me. See https://github.com/owncloud/core/blob/master/lib/autoloader.php#L143
GieltjE commentedon Oct 17, 2013
@bantu lib/config.php still exists from the before the upgrade..... Removing it seems to fix the problem though.
GieltjE commentedon Oct 17, 2013
Searched for a upgrade document in the archive, not online for some reason.
bantu commentedon Oct 17, 2013
Closing as such.