Title: TypeError: json_decode()
Last modified: October 30, 2024

---

# TypeError: json_decode()

 *  [Vlăduț Ilie](https://wordpress.org/support/users/vladwtz/)
 * (@vladwtz)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/typeerror-json_decode/)
 * Salut,
 * La emiterea facturilor din panoul de control pentru câteva comenzi, apare această
   eroare. Puteți rezolva, vă rog?
 * `TypeError: json_decode(): Argument #1 ($json) must be of type string, array 
   given (/wp-content/plugins/smartbill-facturare-si-gestiune/includes/class-smartbill-
   cloud-rest-client.php:287) json_decode(/wp-content/plugins/smartbill-facturare-
   si-gestiune/includes/class-smartbill-cloud-rest-client.php:287) SmartBill_Cloud_REST_Client::
   call_server(/wp-content/plugins/smartbill-facturare-si-gestiune/includes/class-
   smartbill-cloud-rest-client.php:407) SmartBill_Cloud_REST_Client::create_invoice_with_document_address(/
   wp-content/plugins/smartbill-facturare-si-gestiune/includes/woocommerce-functions.
   php:593) smartbill_create_document(/wp-content/plugins/smartbill-facturare-si-
   gestiune/includes/woocommerce-functions.php:167) smartbill_woocommerce_issue_document(/
   wp-includes/class-wp-hook.php:324) WP_Hook::apply_filters(/wp-includes/class-
   wp-hook.php:348) WP_Hook::do_action(/wp-includes/plugin.php:517) do_action(/wp-
   admin/admin-ajax.php:192)`
 * PHP 8.1.30
   WordPress 6.6.2SmartBill 3.3.2
 * Mulțumesc,
   Vlad

The topic ‘TypeError: json_decode()’ is closed to new replies.

 * ![](https://ps.w.org/smartbill-facturare-si-gestiune/assets/icon-256x256.png?
   rev=2819513)
 * [SmartBill Facturare si Gestiune](https://wordpress.org/plugins/smartbill-facturare-si-gestiune/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smartbill-facturare-si-gestiune/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smartbill-facturare-si-gestiune/)
 * [Active Topics](https://wordpress.org/support/plugin/smartbill-facturare-si-gestiune/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smartbill-facturare-si-gestiune/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smartbill-facturare-si-gestiune/reviews/)

## Tags

 * [array](https://wordpress.org/support/topic-tag/array/)
 * [json_decode](https://wordpress.org/support/topic-tag/json_decode/)
 * [string](https://wordpress.org/support/topic-tag/string/)
 * [typeerror](https://wordpress.org/support/topic-tag/typeerror/)

 * 0 replies
 * 1 participant
 * Last reply from: [Vlăduț Ilie](https://wordpress.org/support/users/vladwtz/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/typeerror-json_decode/)
 * Status: not resolved