question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'error' of null

See original GitHub issue

Hii there,

I’m trying to setup Dynmap with an external web server. However, all I get when doing the stuff below is a black screen with an error in the Javascript Console. the error is:

Uncaught TypeError: Cannot read property 'error' of null
    at map.js?_=2.3-2074:29
    at success (jquery.json.js?_=2.3-2074:82)
    at Object.obj.success (jquery.json.js?_=2.3-2074:19)
    at fire (jquery-1.11.0.js?_=2.3-2074:3099)
    at Object.fireWith [as resolveWith] (jquery-1.11.0.js?_=2.3-2074:3211)
    at done (jquery-1.11.0.js?_=2.3-2074:9310)
    at XMLHttpRequest.callback (jquery-1.11.0.js?_=2.3-2074:9720)
    (anonymous) @ map.js?_=2.3-2074:29
    success @ jquery.json.js?_=2.3-2074:82
    obj.success @ jquery.json.js?_=2.3-2074:19
    fire @ jquery-1.11.0.js?_=2.3-2074:3099
    fireWith @ jquery-1.11.0.js?_=2.3-2074:3211
    done @ jquery-1.11.0.js?_=2.3-2074:9310
    callback @ jquery-1.11.0.js?_=2.3-2074:9720

This is what I’ve done:

  1. Create config.js on the Bukkit server in ~/server/plugins/dynmap/web/standalone
  2. Restart the server (not reloading as said in #1816)
  3. copy the web directory over to the webserver
  4. Profit??

However, this didn’t work as I get an error thrown at my face. This is my config.js:

var config = {
 url : {
  configuration: 'standalone/MySQL_configuration.php',
  update: 'standalone/MySQL_update.php?world={world}&ts={timestamp}',
  sendmessage: 'standalone/MySQL_sendmessage.php',
  login: 'standalone/MySQL_login.php',
  register: 'standalone/MySQL_register.php',
  tiles: 'standalone/MySQL_tiles.php?tile=',
  markers: 'standalone/MySQL_markers.php?marker='
 }
};

I hope somebody can help me 😃

Cheers

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
samuelbertrandcommented, Feb 24, 2017

Had the same issue. You need to enable PHP on your website to be able to use MySQL.

0reactions
FinlayDaG33kcommented, Jan 21, 2017

No? the webserver and the VPS can see each other. But the webserver can NOT access the files on the VPS. But, the webserver CAN access a MySQL database that is hosted on my VPS. Which is why I use MySQL for the communication. It’s not WAN, just LAN.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >
Uncaught TypeError: Cannot read property 'value' of null
It has no problem when I execute this codes, but when I'm on other part of my codes this error occurs. Uncaught TypeError:...
Read more >
How to deal with TypeError: cannot read properties of null
While coding in Javascript, you must have at least once received a Type Error which has the message “cannot read properties of null”....
Read more >
TypeError: Cannot read property 'value' of Null in JS
To solve the "Cannot read property 'value' of null" error, make sure that the JS script tag is placed at the bottom of...
Read more >
"Cannot read properties of null" errors - ServiceNow Community
was null. But it could be any construct. The moment we try to pick a property off of something that does not exist...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found