Hi,
I created a website long time ago and saved it in my git repository. And recently I wanted to restore the website in a fresh ubuntu 18.04 server. The version of UserFrosting framework is 4.0 or 4.1 I guess.
So, in a fresh ubuntu server with LAMP, I pull the code from my git repo and I ran
- composer install
- worked fine
- php bakery bake
- it throws an error
PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFrosting\System\ServicesProvider::register() must be an instance of Interop\Container\ContainerInterface, instance of Slim\Container given, called in /var/www/mingle/app/system/UserFrosting.php on line 132 and defined in /var/www/mingle/app/system/ServicesProvider.php:30
Stack trace:
#0 /var/www/mingle/app/system/UserFrosting.php(132): UserFrosting\System\ServicesProvider->register(Object(Slim\Container))
#1 /var/www/mingle/app/system/Bakery/Bakery.php(49): UserFrosting\System\UserFrosting->setupSprinkles(false)
#2 /var/www/mingle/bakery(33): UserFrosting\System\Bakery\Bakery->__construct()
#3 {main}
thrown in /var/www/mingle/app/system/ServicesProvider.php on line 30
I am not sure why I am getting this error. How can I fix it?