Global variables after migration to Joomla 1.5

danzenie 28 Oct, 2008
Hello,

I have some forms I used in Joomla 1.0 that I'm trying to move to Joomla 1.5, but these referenced variables that are not valid in Joomla 1.5. I understand that this is not really a ChronoForm issue, but appreciate any assistance that can be provided.

Here is what Have to replace:
$mosConfig_absolute_path, $mosConfig_lang, and editorArea().

I got JPATH_ROOT for the absolute path, but haven't been able to get the others. I see that the templates use $this->language for getting the current default language, but I a

Fatal error: Using $this when not in object context in ...

when trying to use $this->

T.I.A.
GreyHead 28 Oct, 2008
Hi danzenie,

The quick answer it to turn on the Legacy Mode plugin while you sort out the nitty-gritty.

There is a useful migration guide here that will get you through some of this.

Bob

PS The mosConfig doesn't seem to be there - try $mainframe->getCfg( 'lang' );
danzenie 28 Oct, 2008
Bob,

Thanks for replying. The site is not live yet so I'm ok with native mode until I figure out whats the problem.
This topic is locked and no more replies can be posted.