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
I tried to use Ampache API on a self hosted owncloud, however, I'm getting the following error:
PHP Fatal error: Declaration of OCA\\Music\\Controller\\AmpacheController_AllTracksPlaylist::__construct(string $userId, OCA\\Music\\BusinessLayer\\TrackBusinessLayer $trackBusinessLayer, OCP\\IL10N $l10n) must be compatible with OCP\\AppFramework\\Db\\EntityInterface::__construct() in /mnt/data/apps/music/lib/Controller/AmpacheController.php on line 2179
Thank you!
The text was updated successfully, but these errors were encountered:
Thanks for the report. So apparently classes inheriting the Entity class from the framework are no longer allowed define a constructor taking any arguments. I guess I need to refactor my code a bit.
The ownCloud version 10.14.0 has changed the Entity base class and any
classes (indirectly) inheriting it are no longer allowed to have a
constructor taking arguments. Hence, we need to construct our "All
Tracks adapter" playlist in the Ampache API a bit differently.
refs #1138
Hi
I tried to use Ampache API on a self hosted owncloud, however, I'm getting the following error:
PHP Fatal error: Declaration of OCA\\Music\\Controller\\AmpacheController_AllTracksPlaylist::__construct(string $userId, OCA\\Music\\BusinessLayer\\TrackBusinessLayer $trackBusinessLayer, OCP\\IL10N $l10n) must be compatible with OCP\\AppFramework\\Db\\EntityInterface::__construct() in /mnt/data/apps/music/lib/Controller/AmpacheController.php on line 2179
Thank you!
The text was updated successfully, but these errors were encountered: