Solved

cfclocation path being added to itself

Posted on 2011-03-02
4
367 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now