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
Local::copyFromStorage() not compatible with OC\Files\Storage\Common::copyFromStorage #5071
I have already fixed this in a fork, and will be making a pull request.
Steps to reproduce
Upgraded from 11 to 12
Server started complaining about a 500 error
Logs had this in them:
PHP Fatal error: Declaration of OC\Files\Storage\Local::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath) must be compatible with OC\Files\Storage\Common::copyFromStorage(OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime = false) in /home/nextcloud/nextcloud/lib/private/Files/Storage/Local.php on line 44
Expected behaviour
It should load.
Actual behaviour
it crashes with a 500 error.
Server configuration
Operating system:
Debian 8
Web server:
Apache 2.2 Database:
MySQL
PHP version:
7.2 Nextcloud version: (see Nextcloud admin page)
12.0 Updated from an older Nextcloud/ownCloud or fresh install:
11.0.2, then 11.0.3 Where did you install Nextcloud from:
The website? Direct download.
Activity
ChristophWurst commentedon May 29, 2017
Fix can be found at #5072