Mango



Thread: install error - An error occured while Parsing an XML document

Created on: 06/26/12 02:14 PM

New topic Reply    Page: 1  

Replies: 6
billm


billm's Gravatar
Joined: 06/26/12
Posts: 4

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):
<code>
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() />

</code>


best wishes
bill
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

06/26/12 2:33 PM

Do any of your settings contain "--"?
What do you see if you open the file config.cfm?
Link | Top | Bottom
billm


billm's Gravatar
Joined: 06/26/12
Posts: 4

06/26/12 2:40 PM

Dear Laura

1. No settings contain "--"

2. The config.cfm (which is writeable) is currently as follows:

<code>
<cfsilent><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preferences SYSTEM "http://java.sun.com/dtd/preferences.dtd">;
<preferences EXTERNAL_XML_VERSION="1.0">
<root type="system">
<map/>
<node name="generalSettings">
<map/>
<node name="dataSource">
<map>
<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"/>
</map>
</node>
<!---<node name="facade">
<map>
<entry key="component" value=""/>
</map>

<node name="settings">
<map>
<entry key="someCustomSettingForFacade" value="settingValue"/>
</map>
</node>
</node>--->
</node>
</root>
</preferences></cfsilent>

</code>

best wishes
bill
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

06/26/12 2:43 PM

I think that is not config.cfm but config_sample.cfm.
Link | Top | Bottom
billm


billm's Gravatar
Joined: 06/26/12
Posts: 4

06/26/12 3:22 PM

Dear Laura

That is true. When I initially ran the setup script the following error was generated:

<code>
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).
</code>

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.

best wishes
bill
Link | Top | Bottom
Laura

Wizard
Laura's Gravatar
Joined: 01/29/05
Posts: 1521

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.
Link | Top | Bottom
billm


billm's Gravatar
Joined: 06/26/12
Posts: 4

06/26/12 3:36 PM

Dear Laura

That worked.

Thanks very much for your help. Much appreciated.

best wishes
bill
Link | Top | Bottom

New Post

Please login to post a response.