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

Fixed Preview Button, lightbox not open, Uncaught TypeError

Discussion in 'Media Gallery Resolved Bugs' started by gotski, Apr 1, 2016.

  1. gotski

    gotski Member

    Hello, today noticed that the files of one of the members of my forum, do not open in the lightbox.

    In browser error logs I can see:

    upload_2016-4-1_12-39-44.png

    I began to look for the cause ....
    took the file from the user's album and uploaded it to your album, everything worked perfectly.

    but then did everything just as my user, the album called "2015" a title and description for the file is also made "2015"

    and I received the same error.

    I in JS complete zero, I hope that you will tell me how I can solve the problem.

    I tested it in official media too and received error too.

    https://xenforo.com/community/media/2015.1286/
     
  2. gotski

    gotski Member

  3. Chris D

    Chris D XenForo Developer Staff Member

    Thanks.

    We've worked around this for XFMG 1.1.6 but we've also made some changes in XF 1.5.7. Our XenForo.htmlspecialchars() function was not handling non-strings very well so we've sold that, but for those who may be for some reason running the latest gallery and not the latest XF, we have also explicitly worked around this in the lightbox code in the Gallery.
     
    gotski and sami simo like this.
  4. gotski

    gotski Member

    Thank you, Chris.
    How I can fix it? Media Gallery is an important part of my community
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Either wait until the next release or edit the titles so they contain more than just numbers.
     
  6. gotski

    gotski Member

    when the next release? I can have these files presumably several hundred or even thousands ;(
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    Well the problem will have been there for a considerable amount of time and it's only just come up, so I suspect waiting until the next release (maybe next week) shouldn't be too much of an issue.
     
    gotski likes this.

Share This Page