Error from `HttpClientTrait.php` when upgrading from the CLI
I'm on Dreamhost, and when I do a selfupgrade (bin/gpm selfupgrade -f), this is what I get:
Preparing to upgrade to v1.8.0-beta.4..
|- Downloading upgrade [9.76M]... 0%
In HttpClientTrait.php line 223:
Unsupported option "curl" passed to "Symfony\Component\HttpClient\NativeHttpClient", did you mean "auth_basic", "auth_bearer", "q
uery", "headers", "body", "json", "user_data", "max_redirects", "http_version", "base_uri", "buffer", "on_progress", "resolve", "
proxy", "no_proxy", "timeout", "max_duration", "bindto", "verify_peer", "verify_host", "cafile", "capath", "local_cert", "local_p
k", "passphrase", "ciphers", "peer_fingerprint", "capture_peer_cert_chain", "extra"?
self-upgrade [-f|--force] [-y|--all-yes] [-o|--overwrite] [-t|--timeout [TIMEOUT]]
About the version I have and version i tried to get:
GPM Releases Configuration: Testing
Grav v1.8.0-beta.4 is now available [release date: Mon Jan 27 13:09:27 2025].
You are currently using v1.7.0.
(it says "Testing", but the URL I downloaded is https://getgrav.org/download/core/grav-admin/1.7.0)
About the server I'm on:
$ cat /etc/issue
Ubuntu 22.04.5 LTS \n \l
PHP version:
$ php -v
PHP 8.2.26 (cli) (built: Nov 21 2024 20:16:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.26, Copyright (c) Zend Technologies
with Zend OPcache v8.2.26, Copyright (c), by Zend Technologies
Installed modules:
$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dh_php_ext
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick
imap
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
random
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
Thanks, clearly there's an issue going from the old Symfony4 to Symfony6 HTTPClient libraries, and the tricky thing is that while upgrading you are still running Symfony4 libraries and these get updated to Symfony6, while other classes are still asusming they are the old ones. It can get tricky!
Quick solution for you while I dig into this is to install a fresh copy of 1.8 then copy of your user folder from your 1.7 site.