Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
wesleyjohnson

Doomworld errors

Recommended Posts

I have had trouble with DoomWorld reply and post editor not loading.  I tried it with the K-Melon browser and have the same problem (but worse because K-Melon does not have the no-css switch).

I think it is dependent upon my dial-up modem speed.

 

K-Melon has an error console, and it is logging errors for the DoomWorld site.  HTML parsing by Firefox is somewhat tolerant of syntax errors.  It silently ignores most errors.  But some of this may be significant, and there should be some attention paid to them by the Doomworld script writers.

 

Does anyone else have an error console on their browser, and can they confirm these errors for other users and other modem setups ??

 

These are from one load of one page of the DoomWorld forum on the Enhanced Standard.

Mon Jun 19 2017 12:19:01
Error: SyntaxError: missing } after function body
Source file: https://www.doomworld.com/uploads/javascript_global/root_library.js.2a227824d743b071a5faf4bb5fcc6de4.js?v=d1b6cf40e1
Line: 2, Column: 77924
Source code:
parseInt(b,10):zb.test(a.nodeName)||Ab.test(a.nodeName)&&a.h
 ----------
Mon Jun 19 2017 12:19:01
Error: ReferenceError: ips is not defined
Source file: https://www.doomworld.com/uploads/javascript_global/root_js_lang_1.js.5dcb499495fda88afb6f8e7f318f7839.js?v=d1b6cf40e1
Line: 1
 ----------
Mon Jun 19 2017 12:19:03
Error: SyntaxError: unterminated string literal
Source file: https://www.doomworld.com/uploads/javascript_global/root_framework.js.cdd911db981328b30a0f4c297a851d2c.js?v=d1b6cf40e1
Line: 361, Column: 2347
Source code:
});});},toggle:function(elem,form){var togglesOn=(elem.attr('
 ----------
Mon Jun 19 2017 12:19:03
Error: ReferenceError: jQuery is not defined
Source file: https://www.doomworld.com/uploads/javascript_core/global_global_core.js.8522ec0e6748d7dd477fba4e71359f88.js?v=d1b6cf40e1
Line: 1
 ----------
Mon Jun 19 2017 12:19:03
Error: ReferenceError: jQuery is not defined
Source file: https://www.doomworld.com/uploads/javascript_global/root_front.js.f90f630491c8fb51ae3d45ae9253a0b2.js?v=d1b6cf40e1
Line: 7
 ----------
Mon Jun 19 2017 12:19:03
Error: ReferenceError: jQuery is not defined
Source file: https://www.doomworld.com/uploads/javascript_forums/front_front_topic.js.915182601fe0527a216e2d438e74b158.js?v=d1b6cf40e1
Line: 7
 ----------
Mon Jun 19 2017 12:19:03
Error: ReferenceError: jQuery is not defined
Source file: https://www.doomworld.com/uploads/javascript_core/front_front_core.js.46f25aab650249042428a26c1610f2c9.js?v=d1b6cf40e1
Line: 9
 ----------
Mon Jun 19 2017 12:19:03
Error: SyntaxError: missing ] in index expression
Source file: https://www.doomworld.com/applications/core/interface/ckeditor/ckeditor/ckeditor.js?v=d1b6cf40e1
Line: 206, Column: 509
Source code:
ow(a.config.extraAllowedContent,"extra",1),this.allow(I[a.en
 ----------
Mon Jun 19 2017 12:19:04
Error: ReferenceError: ips is not defined
Source file: https://www.doomworld.com/forum/topic/93831-defining-a-new-enhanced-source-port-standard-boommbf/?page=14&_fromLogin=1#replyForm
Line: 180

 

Share this post


Link to post

I think this is a matter of the browser being out of date. All I get are some warnings about prototype mutation being slow and window.controllers being deprecated.

Share this post


Link to post

It looks like one or more scripts never downloaded completely and triggered a cascade of errors / warnings. My Firefox console shows a lot of warnings but zero errors. I'm on a mobile connection (using desktop) but it's 4G so probably faster than your dial-up.

 

Reloading the page should eventually fix the problem, clearing your browser cache can also help but that will mean longer load times for a while as your browser needs to rebuild the cache.

Share this post


Link to post

Wesley you must be a time traveller or something. I will never forget the whole "SDL on Windows" situation, you blew my mind with refusing to put the dll files in the same folder as the executable because you didn't "know how to set up SDL in Windows". Then you were testing Doom Legacy on some win 98 machine if I remember correctly? To debug problems people were having on windows 7, heh!

 

Now you refer to K-Meleon as K-Melon and talk about dial-up internet in 2017, classic Wesley :D

 

I think the problem is that K-Meleon may not be properly tested/supported by some of the JavaScript libraries used by the forum software. For example, jQuery:

https://jquery.com/browser-support/

 

Edit: By time traveller, I mean from 1975 to today, not from the future!

Share this post


Link to post

I think the Firefox console is not adequate, you need a real Error logging console or an HTML editing tool.

K-Melon is the only browser I have tried yet that seems to have a real error logging console.  I think that Firefox only reports errors if it is serious to Firefox, a subset of the real errors.  I do not trust Firefox alone as being authoritative, without knowing for certain what their error logging intentions actually are.

 

I am mostly interested in the two syntax errors.  No matter how they enhanced the HTML, there should not be syntax errors

for anyone.

There are two possibilities

1.  The Doomworld scripts do have the syntax errors, and the writers never tested beyond a few popular browser and OS, and those syntax errors do not cause those particular browsers to fail.  This is a common situation in any released code.

2.  That the is some new construct that embeds mismatched syntax elements (a stupid thing to do) and it is fooling the error console into logging it as an error.

 

If there are such bugs in the DoomWorld scripts then I consider them to be a problem, no matter what browser you are running.  I was never one to leave latent bugs around. There always was a few of the marketing people who thought it was no skin off their noses, or it saved development money, to just require the users to use the one particular interface that did not break.

 

I am amused and disappointed at some people's reactions when they see someone working on old hardware or old software.

If this bothers them they should go to some other sites, where they are not trying to keep a 20 year game alive and working.

Share this post


Link to post

Please remember that there is one notable effect.

The reply editing boxes load intermittantly.  They sometimes work, they sometimes don't work.

That should not happen if this browser simply cannot handle some new construct.

It should then fail consistently.

 

One problem is that the servers do detect what browser is running and are capable of changing the javascript, and the HTML, to adapt.  I have seen many instances of this in the HTML from many sites, especially for Internet Explorer.

One of the tricks of non-standard browsers is that they have a control that lets them report themselves as another browser, so as to get pages that are less buggy, or to avoid browser discrimination (a problem during the Firefox, IE wars).

 

Share this post


Link to post

Since you seem to be the only person having this problems I think it's valid to assume a problem with the software you are using.

 

So:

 

What browser (precise version) are you using?

Which operating systems?

And just for completeness: What's the system specs.

 

Share this post


Link to post
44 minutes ago, wesleyjohnson said:

I am amused and disappointed at some people's reactions when they see someone working on old hardware or old software.

If this bothers them they should go to some other sites, where they are not trying to keep a 20 year game alive and working.

Hey, I'm OK with old hardware and software but not when we are talking about browsing the web, you need an up-to-date browser. For good error logging, you should try Firefox with the Firebug addon. Don't worry, their "error logging intentions" are great, it is a tool widely used by web designers.

 

Then again, if you use Firefox you won't have any problems with this site, so no debugging will be needed.

 

Also, this is the "source ports" section and K-Watermelon doesn't apply :D

Share this post


Link to post

Dang. I didn't realize that the forum software was a source port. Does it support UDMF?

Share this post


Link to post

Some results from my testing.  Please do not reply if you are not interested.

The syntax errors are not in the javascript source files.

They are being reported at places that are beyond 4096 bytes into a line.

Some of the javascript lines are over a 100K long and have been obfuscated.   It seems that some browsers have problems with such long lines in the javascript and for some reason or another truncate or otherwise do not see the rest of the line.

Some of my tools have a 4096 char limit to line length, but I found one editor that can handle the source files (JED).

I have not found a way to test this, such as putting in some line breaks, as it will not load from a saved copy.

 

Firefox 48 has stabilized and is somewhat reliable, at the moment, for reasons unknown.

 

Share this post


Link to post

I cannot register or post on  https://invisioncommunity.com/forums/    as they require reCaptcha, which only works on the latest two versions of Firefox or Chrome, neither which will work on this machine.

For those who offer me their tidbits of wisdom, I do not own this machine, and I have already brought up the subject of swapping it or getting a new one, and the owner is NOT INTERESTED.

 

Share this post


Link to post

What you are seeing is some JavaScript library (like JQuery for example) not being correctly handled by your web browser so it errors out. Doomworld uses the minified version obviously (which is the recommended one for public deployment)

 

It is one huge line because it is minified to minimise the size of the file and thus bandwidth usage. Variables are replaced with letters, there are no line breaks etc.

 

What OS are you using? You should try to find another browser that can run on it, maybe that will work better.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×