Solved

cfclocation path being added to itself

Posted on 2011-03-02
4
369 Views
Last Modified: 2012-05-11
CF9 on Red Hat / Apache

I'm setting my orm settings in Application.cfc....


             THIS.ormsettings={logsql="true",cfclocation = "var/www/html/mysite/ORM/CFC/"};      

I have triple checked the case and paths.

When trying to load my index page I get this error:  


Message: Path /var/www/html/mysite/var/www/html/mysite/ORM/CFC specified in the cfclocation does not exist.

It's adding the cfclocation path to itself.
0
Comment
Question by:MFredin
  • 2
4 Comments
 
LVL 52

Expert Comment

by:_agx_
ID: 35023287
It looks like it's treating it as a relative path.  If it should be an absolute path, try adding a "/" in front

ie       /var/www/html/mysite/ORM/CFC/

0
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 250 total points
ID: 35023290
Your webroot is var/www/html/mysite/, so CF starts searching from there..

THIS.ormsettings={logsql="true",cfclocation = "ORM/CFC/"};       --- just use this.. should work
0
 

Author Comment

by:MFredin
ID: 35023292
thanks agx,

I tried that but same deal :(
0
 
LVL 52

Expert Comment

by:_agx_
ID: 35023319
@MFredin

I was just going to say then convert it to a relative path of course ;-) but someone beat me to it.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question