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

Fixed Media Gallery Alert Error

Discussion in 'Media Gallery Resolved Bugs' started by The Dark Wizard, Nov 12, 2014.

  1. The Dark Wizard

    The Dark Wizard Well-Known Member

    @Slavik

    Just tagged me in a media comment and the alert takes you to

    A server error occurred. Please try again later.
     
    gldtn likes this.
  2. Chris D

    Chris D XenForo Developer Staff Member

    This has been fixed, thanks.
     
  3. Mike

    Mike XenForo Developer Staff Member

    Note that I have just updated XFMG's download to fix this, but you can fix it by changing library/XenGallery/ControllerPublic/Comment.php's line:
    Code:
    $page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxMediaCommentsPerPage) + 1;
    to:
    Code:
    $page = floor($commentsWithPosition[$commentId]['position'] / XenForo_Application::getOptions()->xengalleryMaxCommentsPerPage) + 1;
     
    gldtn, Neal, Allan and 6 others like this.
  4. tommydamic68

    tommydamic68 Well-Known Member

    Do I need to upload all files again for this fix?
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    That is the fix.

    Make the change to the file as directed, and the issue is fixed.
     
    resonansER likes this.

Share This Page