2020-05-08, 08:50 PM
2020-05-09, 11:43 AM
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?
2020-05-09, 07:53 PM
it's throwing a select2 is undefined in the following jsĀ
and if you look at the general.js there is Uncaught TypeError: Cannot read property 'select2' of undefined
In the "if" statement
/
{
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, {
2020-05-10, 04:39 AM
are you using MyBB's Stock Theme or a custom theme ? can we have forum url to check ..
2020-05-10, 07:28 PM
2020-05-11, 03:32 AM
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]
& 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]