Title: PHP Error in foreach
Last modified: August 21, 2016

---

# PHP Error in foreach

 *  [Tim](https://wordpress.org/support/users/timothyabgreen/)
 * (@timothyabgreen)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-error-in-foreach/)
 * Hi
 * Not quite sure when this error started but the following error is logged:
 * > [11-Dec-2013 13:18:21 UTC] PHP Warning: Invalid argument supplied for foreach()
   > in /home/MYWEBSITE/public_html/wp-content/plugins/woocommerce-html5-video/WooCommerce-
   > HTML5-Video.php on line 386
 * Line 386 starts like this:
 *     ```
       foreach ($check_videos as $video) {
                 $cadena_tag_video_html5.=$video;
                 switch ($video) {
       ```
   
 * WP is 3.7.1 and all plugins up to date.
 * Site is in development so I can’t share a URL – Can send you admin login if you
   need to see it to debug.
 * Thanks
 * [http://wordpress.org/plugins/woocommerce-html5-video/](http://wordpress.org/plugins/woocommerce-html5-video/)

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

 *  Thread Starter [Tim](https://wordpress.org/support/users/timothyabgreen/)
 * (@timothyabgreen)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/php-error-in-foreach/#post-4401008)
 * Ahh looking further it may be becasue I have tried to embed Vimeo Video.
 * If this is the problem please could you consider Vimeo video embedding as an 
   option?
 * Thanks
 *  Plugin Author [Webilop](https://wordpress.org/support/users/webilop/)
 * (@webilop)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-foreach/#post-4401243)
 * Hi Tim,
 * Sorry by the delay, we have been so busy and we had not seen this report.
 * I did the tests and it works for me, I mean, I embedded a Vimeo video without
   problems.
 * Could you please give us more details about your site? I mean, what version of
   WordPress and WooCommerce you are using, also please tells us what version of
   the plugin you are using.
 * Regards,
 *  Thread Starter [Tim](https://wordpress.org/support/users/timothyabgreen/)
 * (@timothyabgreen)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-foreach/#post-4401244)
 * Hi
 * Thank you for your response and your contribution to open source software.
 * I am no longer using your HTML 5 video plugin as I have found a different method
   to achieve what I need.
 * Kind regards
    Tim

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

The topic ‘PHP Error in foreach’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-html5-video_afbed4.svg)
 * [WooCommerce HTML5 Video](https://wordpress.org/plugins/woocommerce-html5-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-html5-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-html5-video/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-html5-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-html5-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-html5-video/reviews/)

## Tags

 * [no video](https://wordpress.org/support/topic-tag/no-video/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tim](https://wordpress.org/support/users/timothyabgreen/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/php-error-in-foreach/#post-4401244)
 * Status: not resolved