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

Fixed 405 Method Not Allowed, and 2 form tags

Discussion in 'Media Gallery Resolved Bugs' started by Jake B., Jan 14, 2015.

  1. Jake B.

    Jake B. Well-Known Member

    We were trying to help a client get all of his styles setup, and his XFMG installation isn't working. We've tried updating it, but we're still having issues. The error occurs when we try to add media, the preview shows up, but when we go to save it we get the following errors:

    POST http://forums.digitaldownload.com/media/save-media 405 (Method Not Allowed)


    Uncaught TypeError: Cannot read property 'refresh' of null

    I tried looking into the issue, and did notice that there are 2 <form> tags directly next to eachother in xengallery_media_add

    <form method="post" action="{xen:link 'xengallery/save-media'}" class="xenForm AutoValidator formOverlay ContainerChooser" data-redirect="on"><form method="post" action="{xen:link 'xengallery/save-media'}" class="xenForm AutoValidator ContainerChooser" data-redirect="on">
     
    Last edited: Jan 14, 2015
  2. Digital Doctor

    Digital Doctor Well-Known Member

  3. Mike

    Mike XenForo Developer Staff Member

    There does appear to be a minor HTML bug with the duplicated form tag, but that shouldn't really cause any issues (since forms can't be nested).

    The 405 method not allowed would be down to server configuration as it's unlikely XF is actually being reached with the request. It is likely a security service on the server hitting a false positive on something.
     
  4. Jake B.

    Jake B. Well-Known Member

    Not quite.

    Thanks, we've notified him that it's likely something with the server.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Fixed the form tag issue, thanks.
     

Share This Page