Issue with API call & php8
-
Hello,
I’ve experienced this issue on a website that has some problems with API Calls (it’s a test env) and it’s running over PHP 8.0.When i try to access the wp-admin the code from Line 232 – msp-admin-funcion.php generates a fatal error if the API call fails (Uncaught TypeError: Unsupported operand types: string – int)
return number_format_i18n( floor( ($download_num/1000) ) * 1000 ). '+';
I’ve added a workaround to check if $download_num is numeric then execute.
Hope it may helps with some future release
- The topic ‘Issue with API call & php8’ is closed to new replies.