MyBB Community Forums
Registration stuck on Checking if username is available - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: Installation and Upgrades Support (https://community.mybb.com/forum-182.html)
+--- Thread: Registration stuck on Checking if username is available (/thread-227694.html)



Registration stuck on Checking if username is available - saucerman - 2020-05-08

it just hangs, and you get the searching icon just spinning.....on the latest version 1.8.22 anyone have any clues as why this might be happening?


RE: Registration stuck on Checking if username is available - noyle - 2020-05-09

What was the theme in use when the user was registering? If it's not the MyBB's default one, will the registration experience the same on MyBB's default theme?


RE: Registration stuck on Checking if username is available - saucerman - 2020-05-09

it's throwing a select2 is undefined in the following jsĀ 


{
MyBB.select2();
$("#referrer").select2({
placeholder: "Search for a user",
minimumInputLength: 2,
multiple: false,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
url: "xmlhttp.php?action=get_users",
dataType: 'json',
data: function (term, page) {
return {
query: term, // search term
};
},
results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};
}
},
initSelection: function(element, callback) {
var value = $(element).val();
if (value !== "") {
callback({
id: value,
text: value
});
}
},
});
}
// -->
</script>
<!-- end: member_register_referrer -->
<!-- start: member_register_regimage -->
<br />
<fieldset class="trow2">
<script type="text/javascript">

and if you look at the general.js there is Uncaught TypeError: Cannot read property 'select2' of undefined

In the "if" statement

/
/ Fixes https://github.com/mybb/mybb/issues/1232
 select2: function()
{
if(typeof $.fn.select2 !== "undefined")
{
$.extend($.fn.select2.defaults, {



RE: Registration stuck on Checking if username is available - .m. - 2020-05-10

are you using MyBB's Stock Theme or a custom theme ? can we have forum url to check ..


RE: Registration stuck on Checking if username is available - saucerman - 2020-05-10

the url is

https://rtr-pca.org/forum/index.php

appreciated


RE: Registration stuck on Checking if username is available - .m. - 2020-05-11

looks like forum was upgraded from a older version
& theme needs updating codes in templates & stylesheets

perhaps it would be better to install a new theme & use it
[Themes at Extend Section] | [Theme Installation]