MyBB Community Forums

Full Version: Undefined and Android OS devices?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Running MyBB 1.6.9

I have a couple users that are reporting issues with Android OS devices and getting "undefined" errors. One gets them on thread/post content, although if he creates a thread the title gets populated correctly. The other gets the undefined error when he tries to add attachments.

Any ideas? I figure this is isolated to their devices, but the only common denominator is they are both on Android OS devices.

Just an addendum, the user with the Chromebook said it is right out of the box, nothing installed on it yet. His thread topics get posted, but his content is always "undefined", even just plain text.
The undefined problem is a persistent issue that's not yet been bug fixed. There is a thread which says it's fixed in latest MyBB but it's not fixed.

Question: Do you run any external ad scripts like Adsense or BuySellAds?
No I don't have any ads installed right now.
I do have a variety of other packages/plug-ins, of which you'll see JS references below.
I looked at the page source for Post Reply and this is what's included JS wise in HEAD:

<script type="text/javascript" src="http://www.website.com/forum/jscripts/prototype.js?ver=1603"></script>
<script type="text/javascript" src="http://www.website.com/forum/jscripts/general.js?ver=1603"></script>
<script type="text/javascript" src="http://www.website.com/forum/jscripts/popup_menu.js?ver=1600"></script>
...
...
...
<script type="text/javascript">
<!--
	var cookieDomain = ".website.com";
	var cookiePath = "/forum/";
	var cookiePrefix = "";
	var deleteevent_confirm = "Are you sure you want to delete this event?";
	var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?";
	var loading_text = 'Loading. <br />Please Wait..';
	var saving_changes = 'Saving changes..';
	var use_xmlhttprequest = "1";
	var my_post_key = "c08c81c179ac5812df13d211cbc87ab5";
	var imagepath = "images/earth";
// -->
</script>
<script type="text/javascript">
function dismissANN(id)
{
	if(!$("Ann_"+id))
	{
		return false;
	}
	
	if(use_xmlhttprequest != 1)
	{
		return true;
	}

	new Ajax.Request("index.php?action=ann_dismiss", {method: "post", postBody: "ajax=1&my_post_key="+my_post_key+"&id="+id});
	Element.remove("Ann_"+id);
	return false;
}
</script>

<!-- end: headerinclude --><!-- start: forumrunner_redirect -->
<script type="text/javascript" src="/forum/forumrunner/detect.js"></script>
<!-- end: forumrunner_redirect -->
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
<script type="text/javascript" src="jscripts/fitonpage.js?ver=230"></script>
<script type="text/javascript">
<!--
	var fitonpage_on = "1";
	var fitonpage_resize = "auto";
	var fitonpage_fluid = "65";
	var fitonpage_topbar_resized = "Image has been scaled down %PERCENT% (%RSIZE%). Click this bar to view original image (%OSIZE%). Click image to open in new window.";
	var fitonpage_topbar_full = "Image is shown in its original resolution (%OSIZE%). Click this bar to resize image to fit in page (%RSIZE%). Click image to open in new window.";
	var fitonpage_topbar_text_class = "smalltext";
	var fitonpage_topbar_bground = "FFFF99";
	var fitonpage_topbar_icon = "images/icons/information.gif";
	var fitonpage_location = "newreply";
-->
</script>
<script src="./speller/spellChecker.js"></script><script>function openSpellChecker() {var message_new = document.input.message_new;var speller = new spellChecker( message_new );speller.openChecker();}</script><!-- Tapatalk smart banner head start -->
...
...
...
<!-- Tapatalk smart banner head end-->
<script type='text/javascript'>
        var tapatalk_ipad_msg = 'This forum has an app for iPad! Click OK to learn more about Tapatalk.';
        var tapatalk_ipad_url  = 'http://itunes.apple.com/us/app/tapatalk-hd-for-ipad/id481579541?mt=8';
        var tapatalk_iphone_msg = 'This forum has an app for iPhone! Click OK to learn more about Tapatalk.';
        var tapatalk_iphone_url  = 'http://itunes.apple.com/us/app/tapatalk-forum-app/id307880732?mt=8';
        var tapatalk_android_msg = 'This forum has an app for Android. Click OK to learn more about Tapatalk.';
        var tapatalk_android_url  = 'market://details?id=com.quoord.tapatalkpro.activity';
        var tapatalk_kindle_msg = 'This forum has an app for Kindle Fire! Click OK to learn more about Tapatalk.';
        var tapatalk_kindle_url  = 'http://www.amazon.com/gp/mas/dl/android?p=com.quoord.tapatalkpro.activity';
        var tapatalk_kindle_hd_msg = 'This forum has an app for Kindle Fire HD! Click OK to learn more about Tapatalk.';
        var tapatalk_kindle_hd_url  = 'http://www.amazon.com/gp/mas/dl/android?p=com.quoord.tapatalkHD';
        var tapatalkdir = 'mobiquo';
        var tapatalk_smartbanner_enable = '1';
</script>

<script type='text/javascript' src='http://www.website.com/forum/mobiquo/tapadetect.js'></script>
(2013-03-18, 04:43 AM)labrocca Wrote: [ -> ]There is a thread which says it's fixed in latest MyBB but it's not fixed.
The issue with Firefox is fixed but this problem is probably not related...
Yeah I've seen the threads related to Firefox and that it's fixed, but this is all Google/Android OS and Chrome based...so I believe it's different. Hopefully some others are having issues as well with those devices/software and can chime in.
I have had this with a couple of users.What you can do is disable MyCode options for that user. They don't see the editor but can still post and can manually add BBcode.
Hmm OK Leefish, thanks, I will try that. Should at least help with replies, but not sure about adding attachments. Will keep you posted!

OK a little followup...

I disabled the MyCodes/BBCodes in that user's profile and now he is able to post with New Reply and if he does a Preview Post in Quick Reply, but the straight Post Reply in Quick Reply does not.

At least he has a workaround now to post some content.
But I'd imagine this is a bug somewhere in the MyBB code?