ActiveCampaign / activecampaign-api-php

MIT License
115 stars 76 forks source link

API Wrapper not working with PHP 8.1.11 #125

Closed CourtneyOS closed 1 year ago

CourtneyOS commented 1 year ago

Hello, I have just tried to migrate from PHP 7.4 up to PHP 8.1.1 and in testing have found that the AC wrapper is not able to use CURL anymore. As I'm not a PHP developer I'm not sure where to make the fix myself but looking into it.

I notice that there is mention of CURL changes in the migration documents mostly that its needs to run requires at least libcurl 7.29.0. Would that need to be an environment change? I don't have CURL installed on the server atm and 7.4 is working without a problem. Just the minute i upgrade it to 8.1.11 it has a problem.

I will add to this once I find more but it will be slow going.

How to repo Install php 8.1.1 and map to application Use the PHP wrapper includes Try to call $ac->credentials_test() Notice it fails with 500 error.

CourtneyOS commented 1 year ago

This was a config error on my behalf, my apologies.