appstract / laravel-opcache

Laravel Package for OPcache
MIT License
1.33k stars 118 forks source link

Can't run opcache:compile #141

Open LocalHeroPro opened 1 year ago

LocalHeroPro commented 1 year ago

To reproduce:

$ php artisan opcache:clear
OPcache cleared

$ php artisan opcache:compile --force
Compiling scripts...
Illuminate\Http\Client\RequestException
HTTP request returned status code 500
at vendor/laravel/framework/src/Illuminate/Http/Client/Response.php:302
298▕      */
299▕     public function toException()
300▕     {
301▕         if ($this->failed()) {
➜ 302▕             return new RequestException($this);
303▕         }
304▕     }
305▕
306▕     /**
+15 vendor frames 
16  artisan:37
Illuminate\Foundation\Console\Kernel::handle()

PHP: 8.1.2 Laravel: 9.36.4 laravel-opcache: 4.0.2

khalyomede commented 10 months ago

I have the same issue, but instead of a 500 I have a 404

IgorUsoltsev commented 9 months ago

Please check your config file config/opcache.php In my case I had missing 'routes' folder.

LocalHeroPro commented 9 months ago

Default config file is: https://github.com/appstract/laravel-opcache/blob/master/config/opcache.php I have default file, provided by this package. I have routes folder in main app folder.