• Myar

    (@myar)


    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

    (@nico23)

    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.