Bug 374

Summary: [Chameleon]Sym link to /path/to/chameleon/samples/htdocs causes an error
Product: Chameleon Reporter: Normand Savard <nsavard@mapgears.com>
Component: CoreAssignee: chameleon-dev <chameleon-dev@lists.maptools.org>
Status: CLOSED INVALID    
Severity: critical    
Priority: P2    
Version: 1.99   
Target Milestone: 1.99 beta 2   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2004-05-07 16:14:09
Sym link to /path/to/chameleon/samples/htdocs causes an error

When setting up the samples, the symbolic link must not point out to the
"htdocs" directory because the code lines in "sample_basic.phtml" makes the
browser to point out to an invalid directory.

Also a fatal error is generated.

Fedora Core 1
Mozilla 1.6
Chameleon 2004-05-06

------------
"sample_basic.phtml" code snippet:
...

include( "../../htdocs/chameleon.php" );
 
 
$szTemplate = "./sample_basic.html";
$szMapFile = "../map/chameleon.map";
 
...


---------------------
Error:

ERROR: Invalid map file file (/var/www/html/nsavard/map/chameleon.map).

---------------
PHP error:

[07-May-2004 16:04:08] PHP Fatal error:  Call to a member function on a
non-object in
/home/nsavard/proj/chameleon_cvs/htdocs/widgets/KeyMap/KeyMap.widget.php on line 190
------- Comment #1 From 2004-05-13 16:47:40 -------
this does not appear to be a problem for me on xcalibur.  I have the following
configuration:

~/chameleon
~/public_html/chameleon -> ~/chameleon/htdocs
~/public_html/samples -> ~/chameleon/samples/htdocs

cwc2.xml

web_server_path and cwc2_url : http://www2.dmsolutions.ca/~pspencer/chameleon
------- Comment #2 From 2004-05-14 08:37:55 -------
I verified it and I'm no more able to reproduce it.  Probably a wrong setting on
my side.
------- Comment #3 From 2004-06-24 14:43:23 -------
closing bug works fine.