anchorcms/anchor-cms

Can't upgrade from 0.12.6 -> 0.12.7

Opened this issue · 8 comments

Summary

When promped with an upgrade, the download buttons does not work, clicking it returns sendAjax is not a function in the console.

Expected Behaviour

The upgrade downloads and is applied.

Actual Behaviour

  • Log in into admin environment
  • Get promped with upgrade
  • Download button does not work

Context details (if applicable)

  • Anchor version: 0.12.6
  • Server setup: Apache/2.4.29 (Unix)

@marc0tjevp That's an odd one; mind trying it again?

@CraigChilds94 I just tried again, still the same result.

I'm having this problem as well, trying to go from 0.12.3 to 0.12.7. Attached screenshot of the console error.
screen shot 2018-03-12 at 11 31 18 am

@TheBrenny Checked the network tab, there's no request. Clicking the button just adds a # to the url.

wow, Zepto again. From what @TheBrenny just said, I'd guess the the handler for the button is malformed. From @joshvickerson's stacktrace, it looks like the event is firing and request is sending, but the response is not not what's expected.

Could be another push towards that Vanilla rewrite we talked about. All these JS bugs might shake out if we just refactored Zepto out of the picture...

@evansharp The stacktrace also looks like it's more an issue with what the server is sending back; ie, it's not actually sending a JSON response... This usually happens becuase we (probably I) may have missed a step in setting the return to be JSON instead of HTML.

@TheBrenny But of course if we replaced Zepto, bugs like that would come out in the wash ;)