Title: Undefined variable: wrapper_id
Last modified: May 17, 2017

---

# Undefined variable: wrapper_id

 *  [Myar](https://wordpress.org/support/users/myar/)
 * (@myar)
 * [9 years ago](https://wordpress.org/support/topic/undefined-variable-wrapper_id/)
 * Hi there,
 * in my logs I get this error:
 * Undefined variable: wrapper_id
 * in /wp-content/plugins/advanced-responsive-video-embedder/public/functions-shortcode-
   filters.php (line 30)
 * I think it is because the variable isnt defined outside the if statement.
 * I think this will fix it:
 * function arve_sc_filter_attr( $a ) {
 *  $align_class = empty( $a[‘align’] ) ? ” : ‘ align’ . $a[‘align’];
    $wrapper_id
   = null;
 *  foreach ( array( ‘id’, ‘mp4’, ‘m4v’, ‘webm’, ‘ogv’, ‘url’, ‘webtorrent’ ) as
   $att ) {

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nico](https://wordpress.org/support/users/nico23/)
 * (@nico23)
 * [9 years ago](https://wordpress.org/support/topic/undefined-variable-wrapper_id/#post-9142151)
 * Thanks for reporting this.
 * There are two things happening here.
 * You catched a bug in the code, I will fix that.
    There should also be this error
   displayed on the frontend for a video you are embedding.
 * > Element ID could not be build, please report this bug.
 * Seems like the ID could not be build. Please tell me the exact shortcodes or 
   URLs you use to embed videos. Something is wrong like some shortcode lacks any
   of this parameters. ‘id’, ‘mp4’, ‘m4v’, ‘webm’, ‘ogv’, ‘url’ so the id can not
   be build. I will write a unit test for this case.

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable: wrapper_id’ is closed to new replies.

 * ![](https://ps.w.org/advanced-responsive-video-embedder/assets/icon-128x128.png?
   rev=3338557)
 * [Advanced Responsive Video Embedder for Rumble, Odysee, YouTube, Vimeo, Kick ...](https://wordpress.org/plugins/advanced-responsive-video-embedder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-responsive-video-embedder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-responsive-video-embedder/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nico](https://wordpress.org/support/users/nico23/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/undefined-variable-wrapper_id/#post-9142151)
 * Status: not a support question