Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run opcache:compile #141

Open
LocalHeroPro opened this issue Oct 24, 2022 · 3 comments
Open

Can't run opcache:compile #141

LocalHeroPro opened this issue Oct 24, 2022 · 3 comments

Comments

@LocalHeroPro
Copy link

LocalHeroPro commented Oct 24, 2022

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
Copy link

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

@IgorUsoltsev
Copy link

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

@LocalHeroPro
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants