firstbankak
asked on
Invalid CFML Construct - setting a variable to equal two or more coldfusion variables
Here's what I'm trying to do:
In the Application.cfm, set variables as
<cfparam name='FolderLevelOne'defau lt='Corpor ate'>
<cfparam name='FolderLevelTwo'defau lt='AETIA' >
Then use that to create more variables...
<cfparam name='docs'default='#Folde rLevelOne# /#FolderLe velTwo/doc s/'>
Here is the full example and the error. I just noticed that it seems to pass by line 16 but error on line 18...??
<cfparam name='Level'default='2'><! --- Level off of root --->
<cfparam name='FolderLevelOne'defau lt='Corpor ate'><!--- Determined by value for Level. Corresponds to names of folder sublevels from wwwroot --->
<cfparam name='FolderLevelTwo'defau lt='AETIA' ><!--- Folder Level Two in the AETIA folder under Corporate --->
<cfparam name='sUrl'default='AKTitl eHome.cfm' ><!--- .CFM of Home Site --->
<cfparam name='sf1'default='#Folder LevelOne#\ '><!--- sf[n] where n=number of directory folder levels files are held off of the wwwroot folder --->
<cfparam name='sf2'default='#Folder LevelTwo#\ '><!--- sf[n] where n=number of directory folder levels files are held off of the wwwroot folder --->
<cfapplication name="CMS AETIA"sessionmanagement="y es"setclie ntcookies= "yes"sessi ontimeout= "#createti mespan(0,1 ,0,0)#"log instorage= "session"> <!--- Application Variables --->
<cfparam name="session.auth.islogge din"defaul t="no"><!- -- Sets the default value that a user is not logged in --->
<cfparam name="db"default='testemp' ><!--- Value of the database --->
<cfparam name='siteID'default='17'> <!--- Used to default a selected site. Value comes from the sID (Site ID) from the Sites table in the Employee Database (Emp.mdb) --->
<cfparam name="fail"default="none"> <!--- Variable used during the login process --->
<cfparam name='PageEditor'default=' 406'><!--- Default Page Editor for site. Should always be active WebMaster --->
<cfparam name="root"default="CMS.cf m"><!--- Root file of the CMS Application --->
<cfparam name="siteroot"default='AE TIA'><!--- Root of the site being Administered. All sites under this value appear on the page when navigating to the defined 'sUrl' --->
<cfparam name='domain'default='http://test-intranet.firstbankak.com/'><!- -- Variable to hold domain name in case value changes --->
<cfparam name='docs'default='#Folde rLevelOne# /#FolderLe velTwo/doc s/'><!--- Web Address after domain value to documents folder --->
<cfparam name="pre"default="../../. ./"><!--- Navigates back to wwwroot from CMS --->
<cfparam name='parent'default='#Fol derLevelOn e#/#Folder LevelTwo#/ #sUrl#'><! --- Path to Site Root of Site being administered. --->
<cfparam name="path"default='C:\Ine tPub\wwwro ot\#Folder LevelOne#\ #FolderLev elTwo#\doc s\'><!--- Path on server to document folder of the Site Root --->
<cfparam name="temppath"default='C: \InetPub\w wwroot\#Fo lderLevelO ne#\#Folde rLevelTwo# \docs\Temp \'><!--- Path on server to the temp folder used when uploading new files to check for existance --->
<cfparam name="delSiteLog"default=" C:\InetPub \wwwroot\# FolderLeve lOne#\#Fol derLevelTw o#\CMS\Log s\DeletedS ites.log"> <!--- Path to Deleted Sites log --->
<cfparam name="delHeadLog"default=" C:\InetPub \wwwroot\# FolderLeve lOne#\#Fol derLevelTw o#\CMS\Log s\DeletedH eadings.lo g"><!--- Path to Deleted Headings log --->
<cfparam name="delFileLog"default=" C:\InetPub \wwwroot\# FolderLeve lOne#\#Fol derLevelTw o#\CMS\Log s\DeletedF iles.log"> <!--- Path to Deleted Files log --->
<cfparam name="delLinkLog"default=" C:\InetPub \wwwroot\# FolderLeve lOne#\#Fol derLevelTw o#\CMS\Log s\DeletedL inks.log"> <!--- Path to Deleted Links log --->
<cfparam name='search'default='#pre #Search/Se archHome.c fm'><!--- Path to Shared Search Home page --->
Error:
Invalid CFML construct found on line 18 at column 16.
ColdFusion was looking at the following text:
parent
The CFML compiler was processing:
An expression that began on line 16, column 47.
Your expression might be missing an ending "#" (it might look like #expr ).
the tag attribute "default", on line 16, column 21.
a cfparam tag beginning on line 16, column 2.
The error occurred in C:\Inetpub\wwwroot\corpora te\AETIA\C MS\Applica tion.cfm: line 18
16 : <cfparam name='docs'default='#Folde rLevelOne# /#FolderLe velTwo/doc s/'><!--- Web Address after domain value to documents folder --->
17 : <cfparam name="pre"default="../../. ./"><!--- Navigates back to wwwroot from CMS --->
18 : <cfparam name='parent'default='#Fol derLevelOn e#/#Folder LevelTwo#/ #sUrl#'><! --- Path to Site Root of Site being administered. --->
19 : <cfparam name="path"default='C:\Ine tPub\wwwro ot\#Folder LevelOne#\ #FolderLev elTwo#\doc s\'><!--- Path on server to document folder of the Site Root --->
20 : <cfparam name="temppath"default='C: \InetPub\w wwroot\#Fo lderLevelO ne#\#Folde rLevelTwo# \docs\Temp \'><!--- Path on server to the temp folder used when uploading new files to check for existance --->
In the Application.cfm, set variables as
<cfparam name='FolderLevelOne'defau
<cfparam name='FolderLevelTwo'defau
Then use that to create more variables...
<cfparam name='docs'default='#Folde
Here is the full example and the error. I just noticed that it seems to pass by line 16 but error on line 18...??
<cfparam name='Level'default='2'><!
<cfparam name='FolderLevelOne'defau
<cfparam name='FolderLevelTwo'defau
<cfparam name='sUrl'default='AKTitl
<cfparam name='sf1'default='#Folder
<cfparam name='sf2'default='#Folder
<cfapplication name="CMS AETIA"sessionmanagement="y
<cfparam name="session.auth.islogge
<cfparam name="db"default='testemp'
<cfparam name='siteID'default='17'>
<cfparam name="fail"default="none">
<cfparam name='PageEditor'default='
<cfparam name="root"default="CMS.cf
<cfparam name="siteroot"default='AE
<cfparam name='domain'default='http://test-intranet.firstbankak.com/'><!-
<cfparam name='docs'default='#Folde
<cfparam name="pre"default="../../.
<cfparam name='parent'default='#Fol
<cfparam name="path"default='C:\Ine
<cfparam name="temppath"default='C:
<cfparam name="delSiteLog"default="
<cfparam name="delHeadLog"default="
<cfparam name="delFileLog"default="
<cfparam name="delLinkLog"default="
<cfparam name='search'default='#pre
Error:
Invalid CFML construct found on line 18 at column 16.
ColdFusion was looking at the following text:
parent
The CFML compiler was processing:
An expression that began on line 16, column 47.
Your expression might be missing an ending "#" (it might look like #expr ).
the tag attribute "default", on line 16, column 21.
a cfparam tag beginning on line 16, column 2.
The error occurred in C:\Inetpub\wwwroot\corpora
16 : <cfparam name='docs'default='#Folde
17 : <cfparam name="pre"default="../../.
18 : <cfparam name='parent'default='#Fol
19 : <cfparam name="path"default='C:\Ine
20 : <cfparam name="temppath"default='C:
firstbankak,
<cfparam name='domain'default='http://test-intranet.firstbankak.com/'>
Should be
<cfparam name="domain" default="http://test-intranet.firstbankak.com/" />
NOTE: Double quotes and a space between the paramater names.
Regards
Plucka
<cfparam name='domain'default='http://test-intranet.firstbankak.com/'>
Should be
<cfparam name="domain" default="http://test-intranet.firstbankak.com/" />
NOTE: Double quotes and a space between the paramater names.
Regards
Plucka
So,
<cfparam name='docs'default='#Folde rLevelOne# /#FolderLe velTwo/doc s/'>
Should be
<cfparam name="docs" default="#FolderLevelOne#/ #FolderLev elTwo/docs /" />
<cfparam name='docs'default='#Folde
Should be
<cfparam name="docs" default="#FolderLevelOne#/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks aseusainc, those things start disappearing when you've been staring at it forever! That fixed it perfectly.
Plucka, I don't think the single and double quotes matter; they can be used interchangeably. At least for me it has been working that way. Opening and closing marks just need to match....
Plucka, I don't think the single and double quotes matter; they can be used interchangeably. At least for me it has been working that way. Opening and closing marks just need to match....
ASKER