WordPress.org

Ready to get started?Download WordPress

Forums

YouTube SimpleGallery
Error after enable 0 videos in collums settings (3 posts)

  1. eldenroot
    Member
    Posted 1 year ago #

    I get many php errors after I set 0 videos (flow setting) on my website

    http://wordpress.org/extend/plugins/youtube-simplegallery/

  2. taze01
    Member
    Posted 11 months ago #

    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.

  3. rldev
    Member
    Posted 8 months ago #

    What file did you make this edit?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.