UNSOLVED Javascript errors in latest 0.7.x

  • GNU/Linux

    @julian Nope, vanilla everything. I do have some custom CSS in the custom CSS section of the ACP to fix some skinning problems of Persona but no javascript or anything.

  • GNU/Linux Admin

    Delete nodebb.min.js in public/?

  • GNU/Linux

    @julian Did that. I even nuked the entire public directory and re-pulled it down from git just to make sure. Restarted nginx and cleared all cache in the browsers.

  • GNU/Linux

    @julian Ok so I booted up a new freshly installed windows VM and loaded up firefox. Visiting my forum I don't see any of these errors. I don't know what's going on with my chrome/firefox/opera/safari on my other systems but they seem to be holding onto the cache even though i've cleared it many times completely and rebooted. For some reason they continue to have the errors...

  • Admin

    From the second error in OP, I would assume that socket isn't defined. Can you "view source" on the ACP home page and paste the contents of <head> please?

  • GNU/Linux

    @psychobunny Sure, here ya go:

    <head>
    	<title>NodeBB Admin Control Panel</title>
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    	<link rel="stylesheet" href="/vendor/jquery/css/smoothness/jquery-ui-1.10.4.custom.min.css?v=v0.5.0-2-3305-g62a2e9f">
    	<link rel="stylesheet" type="text/css" href="/vendor/nanoscroller/nanoscroller.css?v=v0.5.0-2-3305-g62a2e9f">
    	<link rel="stylesheet" type="text/css" href="/admin.css?v=v0.5.0-2-3305-g62a2e9f" />
    
    	<script>
    		var RELATIVE_PATH = "";
    		var config = JSON.parse('{"relative_path":"","socketioTransports":["polling","websocket"],"websocketAddress":"","version":"0.7.0-dev","siteTitle":"NZBCat Forums","showSiteTitle":true,"postDelay":"10","minimumTitleLength":"3","maximumTitleLength":"255","minimumPostLength":"8","maximumPostLength":"32767","hasImageUploadPlugin":true,"maximumProfileImageSize":"256","minimumUsernameLength":"2","maximumUsernameLength":"16","minimumPasswordLength":"6","maximumSignatureLength":"255","maximumAboutMeLength":"500","useOutgoingLinksPage":false,"allowGuestSearching":false,"allowGuestHandles":false,"allowFileUploads":false,"allowProfileImageUploads":true,"allowTopicsThumbnail":false,"allowAccountDelete":false,"privateUserInfo":true,"privateTagListing":false,"usePagination":false,"disableSocialButtons":false,"disableChat":false,"maxReconnectionAttempts":5,"reconnectionDelay":1500,"tagsPerTopic":5,"minimumTagLength":3,"maximumTagLength":15,"topicsPerPage":20,"postsPerPage":10,"maximumFileSize":"2048","theme:id":"nodebb-theme-persona","defaultLang":"en_US","userLang":"en_US","loggedIn":true,"cache-buster":"v0.5.0-2-3305-g62a2e9f","script-buster":"7c252825","css-buster":"9d2983c6","requireEmailConfirmation":false,"topicPostSort":"oldest_to_newest","categoryTopicSort":"newest_to_oldest","csrf_token":"v6xPIZMH-i2zZSdlzssZA8HFfa9udNvgugus","searchEnabled":true,"notificationSounds":false,"openOutgoingLinksInNewTab":false,"topicSearchEnabled":false}');
    		var app = {
    			template: "admin/general/dashboard",
    			user: JSON.parse('{"username":"KingCat","userslug":"kingcat","email":"kingcat@nzb.cat","picture":"/uploads/profile/5-profileimg.png","email:confirmed":false,"uid":5}')
    		};
    	</script>
    
    	<!--[if lt IE 9]>
    		<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.3.0/es5-shim.min.js"></script>
    		<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
    		<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js"></script>
    		<script>__lt_ie_9__ = 1;</script>
    	<![endif]-->
    
    		<script type="text/javascript" src="/vendor/chart.js/chart.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/hammer/hammer.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/nodebb.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script>
    			require.config({
    				baseUrl: "/src/modules",
    				waitSeconds: 3,
    				urlArgs: "v=v0.5.0-2-3305-g62a2e9f",
    				paths: {
    					'admin': '../admin',
    					'vendor': '../../vendor',
    					'buzz': '../../vendor/buzz/buzz.min'
    				}
    			});
    
    			app.inAdmin = true;
    		</script>
    		<script type="text/javascript" src="/vendor/colorpicker/colorpicker.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/src/admin/admin.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/ace/ace.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/nanoscroller/nanoscroller.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/jquery/event/jquery.event.drag.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/jquery/event/jquery.event.drop.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/semver/semver.browser.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/jquery/serializeObject/jquery.ba-serializeobject.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/jquery/deserialize/jquery.deserialize.min.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    		<script type="text/javascript" src="/vendor/mousetrap/mousetrap.js?v=v0.5.0-2-3305-g62a2e9f"></script>
    
    
    	</head>
    

    BTW, I've re-enabled all the plugins as they didn't seem to affect this issue.


  • im have same problem


  • I also have this very same problem. But it only happens when minified js file is used (./nodebb start instead of ./nodebb dev)

    Any solution yet?

  • NodeBB

    We haven't figured out why this is happening yet, relevant GH issue https://github.com/NodeBB/NodeBB/issues/3200

    pichalite created this issue in NodeBB/NodeBB

    closed JS errors on fresh install of v0.7.x #3200


  • This post is deleted!

Suggested Topics

| |