Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fatal error when using prebind #1502
I am using prebind authentication. When I initialize converse, I receive the error "FATAL: TypeError: Cannot read property 'insertAdjacentElement' of null" that can be traced back to converse-register.js:57, where this.el.querySelector('.buttons') is set to null because, presumably, the querySelector function cannot find any elements. This error occurs when using prebind authentication but not login authentication.
I am writing it here on github because the lack of a clear error message that describes the problem on the user's end is something that ought to be resolved.
No, I have used a fresh install of converse and have included converse.min.js and converse.css in the html file. Here is the converse.initialize script:
Note that I am also getting another error afterwards:
EDIT: prebinding works fine using another client, jsxc, so my prebind link isn't the reason for the error.
EDIT2: using cdn-supplied .css and .js files produces the same error.