I updated a version of laravel 5.4 to 5.5.50, on localhost it works perfectly, with php 7.4, but when going to production it returns this error in same version of php:
[2020-12-04 11:49:26] production.ERROR: Declaration of Illuminate\Support\Traits\Macroable::macro($name, callable $macro) should be compatible with Carbon\Carbon::macro($name, $macro) {"exception":"[object] (ErrorException(code: 0): Declaration of Illuminate\Support\Traits\Macroable::macro($name, callable $macro) should be compatible with Carbon\Carbon::macro($name, $macro) at /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Support/Carbon.php:6305)"}
[2020-12-04 11:49:26] production.ERROR: Call to undefined method Illuminate\View\Factory::replaceNamespace() {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to undefined method Illuminate\View\Factory::replaceNamespace() at /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:398)"}
[2020-12-04 11:49:26] production.ERROR: Uncaught Error: Call to undefined method Illuminate\View\Factory::replaceNamespace() in /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:398
Stack trace:
#0 /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(295): Illuminate\Foundation\Exceptions\Handler->renderHttpException(Object(Symfony\Component\HttpKernel\Exception\HttpException))
#1 /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php(187): Illuminate\Foundation\Exceptions\Handler->prepareResponse(Object(Illuminate\Http\Request), Object(Symfony\Component\HttpKernel\Exception\HttpException))
#2 /usr/users1/web/feupworld/feup_world/app/Exceptions/Handler.php(53): Illuminate\Foundation\Exceptions\Handler->render(Object(Illuminate\Http\Request), Object(Symfony\Component\Debug\Exception\FatalThrowableError))
#3 /usr/users1/web/feupworld/feup_world/bootstrap/cache/compiled.php(2210) {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 1): Uncaught Error: Call to undefined method Illuminate\View\Factory::replaceNamespace() in /usr/users1/web/feupworld/feup_world/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:398
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire