Title: &#8220;shippingEnabled&#8221; array expected
Last modified: June 28, 2026

---

# “shippingEnabled” array expected

 *  [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * (@jairoochoa)
 * [2 weeks, 2 days ago](https://wordpress.org/support/topic/shippingenabled-array-expected/)
 * Hi there
 * I’ve got this error
 *     ```wp-block-code
       [28-Jun-2026 19:08:18 UTC] PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/mysite/public_html/wp-content/plugins/side-cart-woocommerce/includes/class-xoo-wsc-frontend.php:150
       ```
   
 * This is the line:
 *     ```wp-block-code
       'shippingEnabled' => in_array( 'shipping' , $glSettings['scf-show'] ),
       ```
   
 * and this error can be prevent by doing like this:
 *     ```wp-block-code
       'shippingEnabled' => in_array('shipping',is_array( $glSettings['scf-show'] ) ? $glSettings['scf-show'] : array( $glSettings['scf-show'] )),
       ```
   
 * or like this:
 *     ```wp-block-code
       'shippingEnabled' => is_array( $glSettings['scf-show'] ) && in_array( 'shipping', $glSettings['scf-show'] ),
       ```
   
 * Anyway, I’ve entered in Side Cart > Settings and just Saved without making any
   change and now the Shop runs.
   It seems that somehow some value vas null; maybe
   never stored or maybe lost.
 * Fix is still recommended in case data where null. It’ shouldn’t but it happened.
 * Thanks

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshippingenabled-array-expected%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Jairo Ochoa](https://wordpress.org/support/users/jairoochoa/)
 * Last activity: [2 weeks, 2 days ago](https://wordpress.org/support/topic/shippingenabled-array-expected/)
 * Status: not resolved