Title: Issue with API call &amp; php8
Last modified: June 29, 2022

---

# Issue with API call & php8

 *  [simoneromboli](https://wordpress.org/support/users/simoneromboli/)
 * (@simoneromboli)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/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.

 * ![](https://ps.w.org/master-slider/assets/icon-256x256.png?rev=1638064)
 * [Master Slider - Responsive Touch Slider](https://wordpress.org/plugins/master-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/master-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/master-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/master-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/master-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/master-slider/reviews/)

## Tags

 * [api call](https://wordpress.org/support/topic-tag/api-call/)

 * 0 replies
 * 1 participant
 * Last reply from: [simoneromboli](https://wordpress.org/support/users/simoneromboli/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/issue-with-api-call-php8/)
 * Status: not resolved