Lỗi: Joomla 2.5 Fatal error: Class 'JParameter' not found in

Khắc phục:

Put the following in:

jimport( 'joomla.html.parameter' );


Lỗi: Joomla 2.5 Notice: Undefined property: JDocumentHTML::$baseUrl in

Khắc phục: Thay $doc->baseUrl bằng JURI::base( true );


Lỗi: Joomla 2.5 Undefined variable: mainframe in

Khắc phục:

To fix your problem add in line 4:


$app = JFactory::getApplication();

and then replace line 23 with the following:


<a href="/index.php" class="logo"><?php echo $app->getCfg('sitename') ;?></a>

Also I noticed your template has a potential java script injection. To fix this, replace line 13


<link rel="stylesheet" href="/<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />


Lỗi: Joomla 2.5 Strict Standards : Only variables should be assigned by reference in $database=& JFactory::getDBO();

Khắc phục: Thay $database=& JFactory::getDBO(); bằng $database= JFactory::getDBO();


Error: Strict Standards: Only variables should be assigned by reference

This issue is not caused by the component, but by the error_reporting variable from the php.ini file, in your PHP installation. Depending on how it is set, the variable may cause the given errors to be returned. You can try contacting your hosting provider and set the variable, from:

error_reporting = E_ALL & ~E_NOTICE | E_STRICT

to something like this:

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

This way the errors will no longer be returned on your site.


Before contacting your hosting provider you can try setting the Error Reporting option from Global Configuration >> Server to None.