Cannot read property 'error' of null
See original GitHub issueHii 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:
- Create
config.js
on the Bukkit server in~/server/plugins/dynmap/web/standalone
- Restart the server (not reloading as said in #1816)
- copy the
web
directory over to the webserver - 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:
- Created 7 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Had the same issue. You need to enable PHP on your website to be able to use MySQL.
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.