I've just migrated a Joomla 1.0 site to Joomla 1.5.22.
When I attempt to install Admin Tools Pro, I receive the following error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/yyyyy/administrator/components/com_admintools/install.admintools.php on line 239
Looks like the following code might be causing the problem:
// Modules & plugins installation
jimport('joomla.installer.installer');
$db = & JFactory::getDBO();
$status = new JObject();
$status->modules = array();
$status->plugins = array();
if( version_compare( JVERSION, '1.6.0', 'ge' ) ) {
if(!isset($parent))
{
$parent = $this->parent;
}
$src = $parent->getParent()->getPath('source');
} else {
$src = $this->parent->getPath('source');
}
As mentioned, this site is running in Legacy Mode. I've tried installing with Legacy Mode turned off, and have tried following the Manual Installation steps.
I've tried downloading an older version of Admin Tools (1.1.1 instead of 1.1.2) and installing the current alpha version but that didn't fix the problem either.
Any ideas?