FuelSDK-PHP icon indicating copy to clipboard operation
FuelSDK-PHP copied to clipboard

Unable to validate App Keys(ClientID/ClientSecret) w/ Php 7.4.x [BUG]

Open nickolaspz opened this issue 4 years ago • 3 comments

Describe the bug When initializing ET_Client: Unable to validate App Keys(ClientID/ClientSecret) Php 7.4.4. Works with Php <= 7.3.16.

To Reproduce Upgrade to Php 7.4.4

Expected behavior Should initialize ET_Client.

Code snippet Unable to validate App Keys(ClientID/ClientSecret) provided.: Trying to access array offset on value of type null {"exception":"[object] (Exception(code: 0): Unable to validate App Keys(ClientID/ClientSecret) provided.: Trying to access array offset on value of type null at \vendor\salesforce-mc\fuel-sdk-php\src\ET_Client.php:436

Environment

  • "salesforce-mc/fuel-sdk-php": "^1.3"
  • PHP version 7.4.4
  • Windows 10 64x

I have looked into the similar issues and nothing mentions the error with php 7.4.x.

nickolaspz avatar Apr 06 '20 17:04 nickolaspz

I am seeing this error also when using PHP 7.4.5. I have rolled back to PHP 7.3 for the time being

stef686 avatar Apr 21 '20 09:04 stef686

This is quite serious and we were able to reproduce it on 7.4.4 and 7.4.11

jamzy118 avatar Oct 09 '20 16:10 jamzy118

I we're able to reproduce this as well. Initially I made a fork fixing these exceptions over at: https://github.com/danniehansen/FuelSDK-PHP/tree/hotfix/php-7.4 (fell free to use this as a temporary solution - works fine. Have it running in production). Originally submitted this as a PR but later saw this https://github.com/salesforce-marketingcloud/FuelSDK-PHP/pull/160

danniehansen avatar Oct 27 '20 19:10 danniehansen