1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Server error generated while restoring poll from a draft

Discussion in 'Resolved Bug Reports' started by rellect, Nov 29, 2014.

  1. rellect

    rellect Well-Known Member

    PHP:
    ErrorExceptionarray_fill(): Number of elements must be positive library/XenForo/ControllerPublic/Forum.php:553
    I have just reproduced it here in xenforo.com, should be in your server logs now.
     
  2. Moshe1010

    Moshe1010 Well-Known Member

    If a fix can be published here as well I will be thankful. It's flooding my error log lately.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    File:
    library/XenForo/ControllerPublic/Forum.php

    Find (Line 551):
    PHP:
    if (sizeof($poll['responses']) <= 2)
    Replace:
    PHP:
    if (sizeof($poll['responses']) < 2)
     
    ManOnDaMoon, DRaver, ehsanix and 7 others like this.

Share This Page