Page 1 of 1

$mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Jan 23, 2009 1:48 pm
by Asdas
Hey all, i upgraded from Joomla 1.5.7 to 1.5.9 , the site works perfectly as localhost but i put it online and i have AEC extension installed also but now when i try to access the AEC Control Panel it gives me this error:

Fatal error: require_once() [function.require]: Failed opening required '' (include_path='.:') in /www/htdocs/creweven/administrator/components/com_acctexp/admin.acctexp.php on line 16

after doing some research and checking the codes i found out i have to put my my whole live site path on $mosConfig_absolute_path .

But $mosConfig_absolute_path is only on Joomla 1.0 not 1.5.x

How do i change my absolute path on Joomla 1.5.9 ?

Thank you.

Re: $mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Jan 23, 2009 2:19 pm
by dhuelsmann
In Joomla! v.1.5.x the absolute path is set in the index.php (line 17) file in the base directory to the constant JPATH_BASE.

Code: Select all

define('JPATH_BASE', dirname(__FILE__) );

Re: $mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Jan 23, 2009 6:52 pm
by Asdas
So if my path is /www/htdocs/creweven how do i edit it on define('JPATH_BASE', dirname(__FILE__) ); ??

where does the path go on that line ?

Re: $mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Jan 23, 2009 7:30 pm
by dhuelsmann
I think you need to edit your extension not Joomla to accept the path variable.

Re: $mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Aug 20, 2010 11:08 am
by ursitesion
Use JURI::base() to provide absolute path like "http://mywebsite.com/". Because Joomla 1.5 don't support $mosconfig_absolute_path. Its very useful to display image or access any file globally.
For details, please look on this page http://docs.joomla.org/JURI/base

Re: $mosConfig_absolute_path on Joomla 1.5.9 ??

Posted: Fri Aug 20, 2010 3:58 pm
by Tonie
This thread is a year and a half old, but better late than never :)