Thread: install error - An error occured while Parsing an XML document
|New topic Reply||Page: 1|
06/26/12 2:14 PM
I searched the forum for similar problem but no reports.
New install on a new VM running Scientific Linux 6 and Coldfusion 9.
All Mango files were uploaded without error.
Database setup and connected (MySQL 5.)
No other issues with Coldfusion templates in other applications seem to be present (so I am concluding the CF install is fine).
Wordpress installs and works fine.
Can anyone help?
Here is the debugging output (top lines):
An error occured while Parsing an XML document.
The string "--" is not permitted within comments.
The error occurred in /var/www/html/coffee/blog/components/utilities/Preferences.cfc: line 48
Called from /var/www/html/coffee/blog/components/utilities/PreferencesFile.cfc: line 52
Called from /var/www/html/coffee/blog/admin/setup/Setup.cfc: line 263
Called from /var/www/html/coffee/blog/admin/setup/setup.cfm: line 115
Called from /var/www/html/coffee/blog/admin/setup/setup.cfm: line 108
Called from /var/www/html/coffee/blog/admin/setup/setup.cfm: line 73
Called from /var/www/html/coffee/blog/admin/setup/setup.cfm: line 1
46 : <!--- remove cfsilent just in case --->
47 : <cfset arguments.initialData = trim(replacenocase(replacenocase(arguments.initialData,"<cfsilent>",""),"</cfsilent>","")) />
48 : <cfset importPreferences(XmlParse(arguments.initialData)) />
49 : <cfelse>
50 : <cfset createNew() />
06/26/12 2:33 PM
Do any of your settings contain "--"?
What do you see if you open the file config.cfm?
06/26/12 2:40 PM
1. No settings contain "--"
2. The config.cfm (which is writeable) is currently as follows:
<cfsilent><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd">
<entry key="name" value="your_dsn"/>
<entry key="username" value="if_your_connection_needs_username"/>
<entry key="password" value="if_your_connection_needs_password"/>
<entry key="type" value="mssql_or_mysql"/>
<entry key="tablePrefix" value="some_prefix"/>
<entry key="component" value=""/>
<entry key="someCustomSettingForFacade" value="settingValue"/>
06/26/12 2:43 PM
I think that is not config.cfm but config_sample.cfm.
06/26/12 3:22 PM
That is true. When I initially ran the setup script the following error was generated:
An error occurred when performing a file operation write on file /var/www/html/coffee/blog/config.cfm.
The cause of this exception was: java.io.FileNotFoundException: /var/www/html/coffee/blog/config.cfm (Permission denied).
So in the same way that Wordpress requires you to alter the config file (from the sample provided) I did the same (cp config_sample.cfm config.cfm). There were no instructions otherwise.
I gave the new file the correct permissions.
And then when I re-ran the install (after clearing out the tables in the database) the setup generated the error that I am asking about.
Your help is appreciated.
06/26/12 3:24 PM
That's not going to work. You need to let Mango create the file. The permissions error you got in the beginning were due to CF not being able to create the file. Make sure the whole folder is writeable by CF.
06/26/12 3:36 PM
Thanks very much for your help. Much appreciated.