FuelSDK-PHP
FuelSDK-PHP copied to clipboard
Unable to validate App Keys(ClientID/ClientSecret) w/ Php 7.4.x [BUG]
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.
I am seeing this error also when using PHP 7.4.5. I have rolled back to PHP 7.3 for the time being
This is quite serious and we were able to reproduce it on 7.4.4 and 7.4.11
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