Title: Error in variable multiselect
Last modified: March 20, 2019

---

# Error in variable multiselect

 *  [KarlEngstrom](https://wordpress.org/support/users/karlengstrom/)
 * (@karlengstrom)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-variable-multiselect/)
 * Hello-
 * I’m having many problems, but I’ll start with the color selector (variable, multiselect).
   If a customer forgets to select a color (leaving “Choose an option”) and adds
   the product to cart, it will throw an error “PHP Fatal error: Call to a member
   function getLabel() on null…” in the cart view. I understand that selection is
   null, but can we have it display a notice like “You must select an option”? Or
   maybe eliminate the null (“Choose an option”) from the top of the option list?
 * Thanks
    Karl
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-in-variable-multiselect%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [KarlEngstrom](https://wordpress.org/support/users/karlengstrom/)
 * (@karlengstrom)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-variable-multiselect/#post-11350559)
 * Hello-
 * I worked on it over the weekend, eliminating plugins. There’s 20 plugins on this
   site including Jigoshop eCommerce & Premium Shipping for Jigoshop. I narrowed
   the on page errors to a conflict with Store Locator Plus 5.0.5.
 * In the cart it displays: “PHP Fatal error: Call to a member function getLabel()
   on null in /******/******/*******/wp-content/plugins/jigoshop-ecommerce/src/Jigoshop/
   Entity/Product/Variable/Attribute.php on line 107”
 * In checkout it displays: “Undefined index: type in /******/******/******/wp-content/
   plugins/jigoshop-ecommerce/templates/shop/checkout.php on line 43”
 * If the color is selected the cart is OK but the checkout error still persists.
 * Thought?
    TIA Karl
 *  Thread Starter [KarlEngstrom](https://wordpress.org/support/users/karlengstrom/)
 * (@karlengstrom)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-in-variable-multiselect/#post-11359700)
 * If the color isn’t selected, left on “Choose an option”, it passes a null to 
   the cart & the cart then looks like this
    [https://www.hagstornadobait.com/images/jigoshop-cart-error-190326.jpg](https://www.hagstornadobait.com/images/jigoshop-cart-error-190326.jpg)
 * Any help out there?
 *  Thread Starter [KarlEngstrom](https://wordpress.org/support/users/karlengstrom/)
 * (@karlengstrom)
 * [7 years ago](https://wordpress.org/support/topic/error-in-variable-multiselect/#post-11467621)
 * Looks like JS support doesn’t hit this forum any longer. Sending support request
   to see if I get response there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Error in variable multiselect’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jigoshop-ecommerce_222121.svg)
 * [Jigoshop eCommerce](https://wordpress.org/plugins/jigoshop-ecommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jigoshop-ecommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jigoshop-ecommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/jigoshop-ecommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jigoshop-ecommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jigoshop-ecommerce/reviews/)

## Tags

 * [multiselect](https://wordpress.org/support/topic-tag/multiselect/)
 * [variable](https://wordpress.org/support/topic-tag/variable/)

 * 3 replies
 * 1 participant
 * Last reply from: [KarlEngstrom](https://wordpress.org/support/users/karlengstrom/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-in-variable-multiselect/#post-11467621)
 * Status: not resolved