I'm not really familiar with the webDip JS, but I can tell you where the error is:
Code:
CGs=new Array();
Units.values().map(function(f) {
if( f.type == 'Fleet' && f.Territory.type=='Sea' ) // <--- this is where the error is being generated
{
var CG=new ConvoyGroupClass();
I found this by going in to the Chrome Debugger, and putting a JavaScript break point in board.php on line 327. For some reason there's a "catch(e) { alert(e); }" there, which is why you weren't getting a line number before before.
The problem is that the Units object contains some objects that look like this:
Code:
{id: "1108", terrID: "108", countryID: "3", type: "Army"}
They don't have a territory property, which produces the error - you can't ask for the value of f.Territory.type if f.Territory is undefined.