laravel / lumen-framework

The Laravel Lumen Framework.
https://lumen.laravel.com
MIT License
1.48k stars 416 forks source link

Errors appears on logs even on fresh install #1261

Closed toto33331 closed 2 years ago

toto33331 commented 2 years ago

On a fresh install of Lumen 9, after a few minutes, a new log file is created with this error:

local.ERROR: Uncaught Error: Call to undefined function app_path() in Command line

After correcting it by this colution there's a new error

local.ERROR: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #1 [ <required> $cachePath ]] in class Illuminate\View\Compilers\Compiler in C:\wamp64\www\lumen9\vendor\illuminate\container\Container.php:1106

Any chance of correcting it ?

driesvints commented 2 years ago

I can install Lumen and run it just fine.

CarlosGCJesus commented 1 year ago

a

On a fresh install of Lumen 9, after a few minutes, a new log file is created with this error:

local.ERROR: Uncaught Error: Call to undefined function app_path() in Command line

After correcting it by this colution there's a new error

local.ERROR: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #1 [ <required> $cachePath ]] in class Illuminate\View\Compilers\Compiler in C:\wamp64\www\lumen9\vendor\illuminate\container\Container.php:1106

Any chance of correcting it ?

Same problem... OpenAI thinks its .env CACHE_DRIVER=array|file|... missing but nothing so far in my research: Runnig under WSL2.0 Ubuntu20.04 "require": { "php": "^8.1", "laravel/lumen-framework": "^10.0" }