hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
989 stars 497 forks source link

HP Fatal error: Uncaught Error: Undefined constant "Hitrov\CURLOPT_URL" #97

Closed MissionTrouble closed 1 year ago

MissionTrouble commented 1 year ago

While trying to use this script, I got an error "PHP Fatal error: Uncaught Error: Undefined constant "Hitrov\CURLOPT_URL" in /home/****/.oci/oci-arm-host-capacity/src/OciApi.php:243 Stack trace:

0 /home/****/.oci/oci-arm-host-capacity/src/OciApi.php(132): Hitrov\OciApi->call()

1 /home/****/.oci/oci-arm-host-capacity/index.php(74): Hitrov\OciApi->getInstances()

2 {main}

thrown in /home/****/.oci/oci-arm-host-capacity/src/OciApi.php on line 243" After googling the error it seemed to be an issue with not having curl installed, but after running curl --version I got this response "curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.16 Release-Date: 2022-01-05 Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd" Im not sure where to go from here.