Required parameter missing or invalid: items

Figured it out myself. If anyone ever has this problem. I had to add:

value="{{ variant.id }}">	
                    {{ variant.title }}

too line 162 so that the code would look like this:

 <option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} {% assign featured_image = product.images.first | default: product.featured_image %} value="{{ variant.id }}">	
                    {{ variant.title }}
                  </option>

So glad I didn’t pay someone just to find out that I need to add such a simple line of code to make it work.