appstract / laravel-opcache

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

cmnds error #7

Closed ctf0 closed 7 years ago

ctf0 commented 7 years ago

first many thanx for this package & for the article as well.

atm am getting error on each run of opcache:config, sometimes it could be

 [ErrorException]
  Trying to get property of non-object

or

 [GuzzleHttp\Exception\RequestException]
  cURL error 56: Recv failure: Connection reset by peer (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
ovanschie commented 7 years ago

Only get this with the config command? Where are you running the command (inside vm, inside os terminal, on your server)?

ctf0 commented 7 years ago

OSX 10.11.6 PHP 7.0.15 (cli) Laravel 5.3.30

if u need more info just tell me 👍

Update all the terminal commands give the above error, but the OPcache::clear(); doesnt 😲 have u tried the cmnds with the new guzzle version ?

ovanschie commented 7 years ago

Yes, I tried with the newest guzzle version an ran the tests.

Can you answer my second question please?: Where are you running the command (inside vm, inside os terminal, on your server)?

ctf0 commented 7 years ago

OSX 10.11.6

inside os terminal :white_check_mark:

ovanschie commented 7 years ago

Where is your server running, inside VM (homestead) or do you use something else?

Also, have you set the correct APP_URL in .ENV to correspond with your application URL?

ctf0 commented 7 years ago

no, on mac itself using php installed with brew for the url , i tried with both valet > demo.dev & php artisan > localhost

ctf0 commented 7 years ago

update

the error is no longer showing up, i update to v5.4 and guzzle is already pre-installed to 6.2.2.

one thing to note, using APP_URL=http://localhost will give error, instead of php artisan use valet and change app_url to APP_URL=http://your-site.dev

thanx again for ur work.