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

Aborted upgrade 1.7 -> 1.7.1 Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient" #3165

Closed
saramato opened this issue Jan 20, 2021 · 9 comments
Assignees

Comments

@saramato
Copy link

When upgrading from 1.7 to 1.7.1 from the console (PHP 7.4.14 (cli))

In HttpClientTrait.php line 223:
Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient", did you mean "auth_basic", "auth_bearer", "query", "headers", "body", "json", "user_data", "max_redirects", "http_ve
rsion", "base_uri", "buffer", "on_progress", "resolve", "proxy", "no_proxy", "timeout", "max_duration", "bindto", "verify_peer", "verify_host", "cafile", "capath", "local_cert", "local_pk", "passphra
se", "ciphers", "peer_fingerprint", "capture_peer_cert_chain", "extra", "auth_ntlm"?

@saramato
Copy link
Author

Something wrong with my apache2/php configuration?

@saramato saramato changed the title Aborted upgrad 1.7 -> 1.7.1 Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient" Aborted upgrade 1.7 -> 1.7.1 Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpClient" Jan 20, 2021
@lleddewk
Copy link

Me too with nginx / php 7.3.19 updating from the CLI using gpm selfupgrade. The error message is exactly the same.

@acondura
Copy link

acondura commented Jan 21, 2021

Got the same issue. Running the update from the admin UI seems to go successfully. If that fails too, try setting Configuration > System > Advanced > Remote Fetch Method to Auto or Fopen and update again.

@mahagr mahagr self-assigned this Jan 21, 2021
mahagr added a commit that referenced this issue Jan 21, 2021
…ent\CurlHttpClient"` in `bin/gpm selfupdate` [#3165]
@lleddewk
Copy link

Thanks. I manually patched the file system/src/Grav/Console/Gpm/SelfupgradeCommand.php and now the upgrade works flawlessly. Thanks again.

@mahagr
Copy link
Member

mahagr commented Jan 21, 2021

Running this in Grav root should fix the issue:

wget https://raw.githubusercontent.com/getgrav/grav/c8af0d8a385a4dce7d5c5ef54a50c23b5946167f/system/src/Grav/Console/Gpm/SelfupgradeCommand.php -O system/src/Grav/Console/Gpm/SelfupgradeCommand.php

@saramato
Copy link
Author

After replacing the 'system/src/Grav/Console/Gpm/SelfupgradeCommand.php' file, the upgrade runs without any problems. Thanks!

@mahagr mahagr closed this as completed Feb 2, 2021
@jeremycherfas
Copy link

Re-opening this issue. I Just got the same error. Currently on 1.7.0-rc.20

In HttpClientTrait.php line 223:
                                                                               
  Unsupported option "curl" passed to "Symfony\Component\HttpClient\CurlHttpC  
  lient", did you mean "auth_basic", "auth_bearer", "query", "headers", "body  
  ", "json", "user_data", "max_redirects", "http_version", "base_uri", "buffe  
  r", "on_progress", "resolve", "proxy", "no_proxy", "timeout", "max_duration  
  ", "bindto", "verify_peer", "verify_host", "cafile", "capath", "local_cert"  
  , "local_pk", "passphrase", "ciphers", "peer_fingerprint", "capture_peer_ce  
  rt_chain", "extra", "auth_ntlm"?   

I tried the fix at #3165 (comment) and got

HTTP request sent, awaiting response... 416 Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

What now? My site is unreachable.

@jeremycherfas
Copy link

What now? My site is unreachable.

In the end I downloaded system/src/Grav/Console by hand and went from there. Error updating Problems, which seems to want grav 1.7.11 but otherwise OK.

@mahagr
Copy link
Member

mahagr commented Apr 15, 2021

@jeremycherfas It has been fixed in later version of Grav. you need to manually update from update package.

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

No branches or pull requests

5 participants