|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Chameleon and Joomla!hi,
i'm trying chameleon with Joomla!. i put this code in Joomla! : <?phpbut i get these errors : Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time. in C:\ms4w\apps\chameleon\htdocs\common\session\session.php on line 446 Notice: A session had already been started - ignoring session_start() in C:\ms4w\apps\chameleon\htdocs\common\session\session.php on line 509 Notice: Trying to get property of non-object in C:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php on line 188 Fatal error: Call to a member function set() on a non-object in C:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php on line 198 I am frustrated. Do you have some ideas? Thank you. -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Chameleon and Joomla!Bendaoud med wrote:
> hi, > > i'm trying chameleon with Joomla!. i put this code in Joomla! : > > <?php > include("C:/ms4w/apps/chameleon/htdocs/chameleon.php"); > $szTemplate = "./mytemplate.html"; > $szMapFile = "../map/mymap.map"; > > class MyApp extends Chameleon > { > function MyApp() > { > parent::Chameleon(); > $this->moMapSession = new MapSession_RW; > $this->moMapSession->setTempDir( getSessionSavePath()); > } > } > > $oApp = new MyApp(); > $oApp->CWCInitialize($szTemplate,$szMapFile); > $oApp->mnMinimumMaturityLevel = MATURITY_UNKNOWN; > $oApp->CWCExecute(); > ?> > > but i get these errors : > > *Warning*: ini_set() > [function.ini-set<http://localhost/spatialmining/function.ini-set>]: > A session is active. You cannot change the session module's ini settings at > this time. in *C:\ms4w\apps\chameleon\htdocs\common\session\session.php* on > line *446* > *Notice*: A session had already been started - ignoring session_start() in * > C:\ms4w\apps\chameleon\htdocs\common\session\session.php* on line *509* > *Notice*: Trying to get property of non-object in * > C:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php* on line > *188* > *Fatal error*: Call to a member function set() on a non-object in * > C:\ms4w\apps\chameleon\htdocs\widgets\MapDHTML\MapDHTML.widget.php* on line > *198* > > I am frustrated. Do you have some ideas? Thank you. > > I tested your code and I was able to display your page without error. What I did: -I made a directory called "bug" on the same level as Chameleon -I created a page called "index.phtml" with your code above within it -I set $szTemplate to /path/to/chameleon/samples/sample_basic.html -I set $szMapFile to /path/to/chameleon/samples/map/chameleon.map -I opened your page in a browser and got no error Norm _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Chameleon and Joomla!Hi,
thank you Norm. but, i didn't create an index.phtml. i put my code in article inside Joomla!. my problem is to mix Joomla! with chameleon. i you know a CMS able to include chameleon, please give me some help. -- Bendaoud _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Chameleon and Joomla!Bendaoud med wrote:
> Hi, > > thank you Norm. but, i didn't create an index.phtml. i put my code in > article inside Joomla!. my problem is to mix Joomla! with chameleon. > > i you know a CMS able to include chameleon, please give me some help. > > Bendaoud, Sorry but I didn't what was Joomla at first. I do not know any example of Chameleon integration with a CMS. Maybe someone else know ... Norm _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
|
|
Re: Chameleon and Joomla!Hi,
Looking at your original message, it seems that Chameleon and Joomla session handler are conflicting. One option would be to change the Chameleon session handler (chameleon/htdocs/common/session/session.php) to be compatible with Joomla session (or vice-versa). This is probably the cleaner way to do it, but *not* a trivial task at all. Another option would be to include your Chameleon application inside a frame in Joomla so they don't share session and other resources. Note that I don't know about Joomla at all, but I know that both Drupal and GeoDjango already support OpenLayers. Julien Normand Savard wrote: > Bendaoud med wrote: >> Hi, >> >> thank you Norm. but, i didn't create an index.phtml. i put my code in >> article inside Joomla!. my problem is to mix Joomla! with chameleon. >> >> i you know a CMS able to include chameleon, please give me some help. >> >> > Bendaoud, > > Sorry but I didn't what was Joomla at first. I do not know any example > of Chameleon integration with a CMS. > > Maybe someone else know ... > > Norm > _______________________________________________ > Chameleon mailing list > Chameleon@... > http://lists.maptools.org/mailman/listinfo/chameleon > -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ _______________________________________________ Chameleon mailing list Chameleon@... http://lists.maptools.org/mailman/listinfo/chameleon |
| Free embeddable forum powered by Nabble | Forum Help |