Fixed 405 Method Not Allowed, and 2 form tags

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:
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.
 

Not quite.

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.

Thanks, we've notified him that it's likely something with the server.
 
Top Bottom