Announcement

Collapse
No announcement yet.

Very strange bug - text replaced with word "array"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wayne Luke
    replied
    I don't see anything wrong here. There used to be a bug where certain characters could cause this to break and mess with other variables.

    What are the settings for the problematic usergroup with the problem under Usergroups -> Usergroup Manager.

    Leave a comment:


  • Flowerfairy
    replied
    The above is from the page where I've just tweaked things back so as to re-produce the "Array" problem, that is, the quoted user having the custom usergroup as primary and I've used the log in a user feature to log in as the user with the problem, well, one of them. Gotta go change it back now.

    Leave a comment:


  • Flowerfairy
    replied
    <script type="text/javascript">
    if (location.hash) {
    document.write('<style type="text/css"> a.anchor { display:none;} <\/style>');
    }
    var uploadUrlTarget = "https://www.forum.ukcen.com/uploader/url";
    var pageData = {
    "baseurl": "https://www.forum.ukcen.com",
    "baseurl_path": "/",
    "baseurl_login": "https://www.forum.ukcen.com",
    "baseurl_core": "https://www.forum.ukcen.com/core",
    "pageid": "76",
    "pagetemplateid": "4",
    "channelid": "55",
    "nodeid": "6948",
    "userid": "2569",
    "user_startofweek": "-1",
    "user_lang_pickerdateformatoverride": "",
    "textDirLeft": "left",
    "textDirRight": "right",
    "textdirection": "ltr",
    "can_use_sitebuilder": "",
    "cookie_prefix": "bb",
    "cookie_path": "/",
    "cookie_domain": "",
    "sb_state_cookie": "bbsitebuilder_active",
    "inlinemod_cookie_name": "inlinemod_nodes",
    "pagenum": "1",
    "languageid": "1",
    "threadmarking": "2",
    "lastvisit": "1565126491",
    "phrasedate": "1564743123",
    "optionsdate": "1563544453",
    "current_server_datetime": "1565203523",
    "simpleversion": "v=544",
    "showhv_post": "",
    "nextcron": "1565203800",
    "securitytoken": "1565203523-619f17b97cfee9e112b27173b37367bfa5d87f58",
    "eustatus": "0",
    "flash_message": ""
    };
    </script>

    Leave a comment:


  • Wayne Luke
    replied
    Array is displayed by PHP when you send an array of values and a string is expected. One of the addons could be modifying the output incorrectly to break the JSON object that is returned by the server and you get an invalid variable type based on this. However, I wouldn't be able to tell you why it is breaking. Theoretically, changing usergroups shouldn't have any change on the output format but it seems it has.

    When a user with the problem visits the site, what is the Javascript block in the source of the page? It should look similar to the below:

    Code:
    		if (location.hash) {
    			document.write('<style type="text/css"> a.anchor { display:none;} <\/style>');
    		}
    
    		var uploadUrlTarget = "http://vbulletin5/dev/uploader/url";
    		var pageData = {
    			"baseurl": "http://vbulletin5/dev",
    			"baseurl_path": "/dev/",
    			"baseurl_login": "http://vbulletin5/dev",
    			"baseurl_core": "http://vbulletin5/dev/core",
    			"baseurl_pmchat": "http://vbulletin5/dev/pmchat/chat",
    			"pageid": "1",
    			"pagetemplateid": "1",
    			"channelid": "1",
    			"nodeid": "0",
    			"userid": "1",
    			"username": "Wayne",
    			"musername": "Wayne",
    			"user_startofweek": "1",
    
    			"user_lang_pickerdateformatoverride": "",
    			"user_editorstate": "1",
    			"textDirLeft": "left",
    			"textDirRight": "right",
    			"textdirection": "ltr",
    			"can_use_sitebuilder": "1",
    			"cookie_prefix": "dev_",
    			"cookie_path": "/",
    			"cookie_domain": "",
    			"sb_state_cookie": "dev_sitebuilder_active",
    			"inlinemod_cookie_name": "inlinemod_nodes",
    
    				"pagenum": "1",
    
    			"languageid": "1",
    			"threadmarking": "2",
    			"lastvisit": "1564602386",
    			"phrasedate": "1564436169",
    			"optionsdate": "1564591584",
    
    			"current_server_datetime": "1564649113",
    			"simpleversion": "v=554a4",
    
    			"showhv_post": "",
    
    			"nextcron": "1053271720",
    			"securitytoken": "1564649113-729efa9b415e140444d40c925fbac1e7cd5b1322",
    			"eustatus": "-1",
    			"flash_message": "",
    			"registerurl": "http://vbulletin5/dev/register",
    			"activationurl": "http://vbulletin5/dev/activateuser",
    			"helpurl": "http://vbulletin5/dev/help",
    			"contacturl": "http://vbulletin5/dev/contact-us",
    			"datenow": "08-01-2019"
    		};

    Leave a comment:


  • Flowerfairy
    replied
    Originally posted by Wayne Luke View Post
    That is weird. Do you have any third-party addons installed? Every user that posts in this forum channel is in a custom primary usergroup and I haven't seen this problem here.
    Yes, I do have a number of third party add-ons. But I've not deactivated/removed any of them, just did the above.

    Leave a comment:


  • Wayne Luke
    replied
    That is weird. Do you have any third-party addons installed? Every user that posts in this forum channel is in a custom primary usergroup and I haven't seen this problem here.

    Leave a comment:


  • Flowerfairy
    replied
    For the benefit of other vBulletin 5 admins, I'd like to share how I managed to fix this issue. It turns out it had to do with certain members being assigned to a custom user group as their primary user group. In this case, I created a user group called "lawyers", with special permissions to access certain parts of the forum that other users can't see, and assigned a dozen people who are our lawyers, to this user group. I didn't think this was an issue till one of the lawyers sent me an email saying they couldn't access private messages at all. I couldn't find anything in the settings that would prevent them from using the PM system, I tried the "fix broken profiles" feature, it didn't work. Eventually it occurred to me to try assigning them to the Registered users primary user group and the custom user group Lawyers as their secondary user group. I then used the "log in as user" feature to test and voila! the PM feature was automatically restored! I then tried logging in as one of the users who always got "Array" when posting (because they were quoting the lawyers' answers), and the text, including quote, came out fine!

    So it was definitely related to members being assigned to a custom user group as their primary user group.

    Leave a comment:


  • Wayne Luke
    replied
    Please upgrade to 5.5.2. Does the issue continue?

    Leave a comment:


  • Very strange bug - text replaced with word "array"

    This is something that has happened a number of times, it looks like, whenever a member (but not an admin) tries to quote a post by one of our lawyers (who have a separate Lawyer usergroup that gives them access to private areas, but no admin permissions), somehow the post comes up as "Array", as seen here: https://www.forum.ukcen.com/forum/uk...=4977#post4977

Working...
X