alexA
Użytkownik
 Junior Boarder Posty: 6
  Oklaski: 0
|
Re:Fatal error: Cannot access empty property - 2007/07/21 17:14
Hi
I am not php specialist but I think that the problem is because of the different versions or configurations of php on local machine and on the hosting.
So if you find this bit of code in admin.sefservicemap.html.php:
| Code: |
$enabled = $this->component_params->get($integrator->element);
if ($enabled)
{ global $lang;
$cache_dir = $mosConfig_absolute_path.'/components/com_sefservicemap/cache/'.$submenu->id;
if (is_dir($cache_dir))
{
echo '<input type="submit" '.$enabled.' class="button" name="clear_'.$submenu->id.'" value ="'._SEF_CLEAR_CACHE.'">';
}
}
|
and replace it with:
| Code: |
if ( $integrator->element != '' )
{
$enabled = $this->component_params->get($integrator->element);
if ($enabled)
{ global $lang;
$cache_dir = $mosConfig_absolute_path.'/components/com_sefservicemap/cache/'.$submenu->id;
if (is_dir($cache_dir))
{
echo '<input type="submit" '.$enabled.' class="button" name="clear_'.$submenu->id.'" value ="'._SEF_CLEAR_CACHE.'">';
}
}
}
|
it should work!
|