DMXzone Server Connect Support Product Page

Under investigation

JavaScript error when creating database connection

Reported 15 May 2016 15:38:17
1
has this problem
15 May 2016 15:38:17 Jack McNeely posted:
When I try to create a database connection, I get only as far as hitting the "Connection Options" button in the Server Connect panel, at the bottom under Properties > Connection Properties. The Database Connection window pops up but barfs a JavaScript error:

While executing onLoad in dmxDatabaseConnection.htm, the following JavaScript error(s) occurred:
"At line 68 of file "C:\<path_to_dmxDataBaseConnector>\UIKit\dmxUIKit.js":
getDocumentDOM: Argument number 1 is invalid"

I tried exiting Dreamweaver and deleting the WinFileCache-<blahblah>.dat file, then rebuilding the site cache, but I get the same JavaScript error every time. Reinstalling the Server Connect extension didn't fix it. Anyone know how to fix it?

A screen grab of the error message is at bit.ly/1Tfm1Hu

Replies

Replied 16 May 2016 11:06:04
16 May 2016 11:06:04 Teodor Kuduschiev replied:
Hello Jack,
What version of DW are you using and what is your OS?
Also - do you have all of the required extensions installed in DW (Server Connect, HTML5 Data Bindings, DMXzone Database Connector) and did you install them using DMXzone EM?
Replied 17 May 2016 16:27:09
17 May 2016 16:27:09 Jack McNeely replied:
Dreamweaver is CS6 and the OS is Windows 8.1 Pro. I have all the DMXzone extensions installed, including Data Bindings and Database Connector, all of them installed with DMXzone Extension Manager. The serving environment is Apache 2.4, MySQL latest version and php 5.4.13.

By the way, I don't think anything is wrong with the Server Connect extension, because DMXzone extensions always just work. I think it is a Dreamweaver problem, because everyone who uses Dreamweaver has seen these nasty JavaScript errors from time to time. Deleting the WinFileCache<blahblah>.dat file and restarting Dreamweaver usually fixes it, but not for me this time.

I do have a connection file left over in /dmxDatabaseSources/<filename>.php that was created by Database Connector. If I tell Server Connect to use that file, the magic works and all the rest of the Server Connect features become available. It bombs only when I try to use Server Connect to create a new connection file.

The old Database Connector also can use the old connection file to get to the Source Query Builder, from Site > DMXzone Database Connector > Manage Database Sources. But if I try to create a new connection file by selecting Site > DMXzone Database Connector > Manage Database Connections, I get the same JavaScript error that Server Connect produces.

I don't even think this is a fatal problem, because the source code in /dmxDatabaseSources/<filename>.php would be easy to replicate, so that is something to try, just create a new file manually and see whether Server Connect will use it.

Another thing that I haven't tried yet is to create a new, empty site and let Server Connect feast on that. If there is a conflict because I already had been using the Database Connector extension, which I doubt, maybe giving Server Connect an empty site to work on will allow it to do its thing.

Reply to this topic