Embed code error with custom fields

I have inserted the embed code custom fields into a single-[post type].php file (twenty eleven theme) and all works fine except for custom fields that use radio buttons, check boxes or drop down select options for the data input on a custom post type.

I get the following error:

Warning: Invalid argument supplied for foreach()