• Hi,

    After I updated the plugin to the latest version, I’ve been getting this error:

    Warning: Division by zero in “misc_functions.php” on line 99

    The popup still works (YouTube), but the error appears above the actual link.

    When I delete the plugin and re-install version 1.8.4, it works fine again.

    • This topic was modified 6 years, 11 months ago by brookskim.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter brookskim

    (@brookskim)

    Disregard this reply.

    • This reply was modified 6 years, 11 months ago by brookskim.
    Plugin Support mbrsolution

    (@mbrsolution)

    No problem, I will disregard the reply.

    Is your issue resolved? Or do you still have issues?

    Thank you

    • This reply was modified 6 years, 11 months ago by mbrsolution.
    Thread Starter brookskim

    (@brookskim)

    Sorry, I accidentally replied to my original post, but couldn’t delete it.

    The actual problem still exists.

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, can you share the shortcode you are currently using in your pages or post?

    Thank you

    Thread Starter brookskim

    (@brookskim)

    Here you go:

    [video_lightbox_youtube video_id=IjHgzkQM2Sg width=0px height=0px anchor=”Play Video”]

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, can you try the following adjustments in your shortcode. When ever you add a width and height value in the shortcode, you can’t add px and you should always close the value with double quotes.

    [video_lightbox_youtube video_id="IjHgzkQM2Sg" width="640" height="480" anchor="Play Video"]

    Make the required changes to the width and height as per your site’s needs.

    Let me know if the above works for you.

    Kind regards

    • This reply was modified 6 years, 11 months ago by mbrsolution.

    I upgraded to 1.85 and the following code was displayed below the anchor image.

    /* <![CDATA[ */ jQuery(document).ready(function($){ $(function(){ var width = $(window).innerWidth(); var setwidth = 640; var ratio = 0.75; var height = 480; var link = ‘https://www.youtube.com/watch?v=VQ0LfJMKN5Q&rel=false&width=640&height=480&#8217;; if(width < setwidth) { height = Math.floor(width * 0.75); //console.log(“device width “+width+”, set width “+640+”, ratio “+0.75+”, new height “+ height); var new_url = wpvl_paramReplace(‘width’, link, width); var new_url = wpvl_paramReplace(‘height’, new_url, height); $(“a#5a75f26f0c329″).attr(‘href’, new_url); //console.log(new_url); } }); }); /* ]]> */

    I went back to 1.79 and everything is normal.
    This is my code
    [video_lightbox_youtube video_id=”VQ0LfJMKN5Q&rel=false” width=”640″ height=”480″ anchor=”https://www.website.com/wp-content/uploads/2017/07/youtube-video-e1500546738306.jpg”%5D

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi @lansend, can you create a new support thread.

    Than you

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error after upgrading to 1.8.5’ is closed to new replies.