WordPress.org

Support

Support » Plugins and Hacks » YouTube SimpleGallery » Error after enable 0 videos in collums settings

Error after enable 0 videos in collums settings

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same here. Setting Columns = 0 (for free-float) you get a divide by zero error in shortcode.php line 238.

    I just changed line 238 from
    if($thisgallerycount%$cols==0) $showgallery .= ‘<br clear=”all” style=”clear: both;” />’;
    to
    if($cols!=0) $showgallery .= ‘<br clear=”all” style=”clear: both;” />’;

    That was a simple workaround, not a solution. It creates a free float but breaks the column setting.
    Not well versed enough in PHP for real solution.

    What file did you make this edit?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error after enable 0 videos in collums settings’ is closed to new replies.
Skip to toolbar