Error in Template - Dont know what to do????

Elegant Joomla template designed especially for both professional and personal website presentation.
GK User
Thu Sep 02, 2010 9:42 pm
Notice: Undefined variable: inset2 in bla bla bla....templatesgk_postnotelayoutsblocksmain.php on line 17


This is Line 17
if($this->countModules($right1." + ".$right2." + ".$right_mass_top." + ".$right_mass_bottom) == 0 && $this->countModules($inset2) == 0) {

This Error is displayed top of the content in the Template.

Please can somebody help me to get rid of it...

thanks in advance
User avatar
Fresh Boarder

GK User
Sat Sep 04, 2010 2:30 am
ya i was having same error on mine too, in both quick start and template version.

i just wrote
Code: Select all
$inset2='';
before line 17 so now it dont show up the error but i am still curious whether it will have any problems in future.
User avatar
Fresh Boarder

teitbite
Sat Sep 04, 2010 4:59 pm
Hi

That's not an error. You can easily get rid of it by choosing Error display none in joomla panel glogal configuration for joomla. This setting is recomended by joomla developers on production sites.
User avatar
Moderator

GK User
Fri Sep 10, 2010 8:23 pm
I'm getting this error "Notice: Undefined variable: inset2 in C:Program Files (x86)wampwwwJoomla_1.5.20templatesgk_corporate2layoutsblocksmain.php on line 33"

Setting Error reporting in Global Configuration to None doesn't solve the error display but the fix suggested by previous poster to insert the line $inset2=''; before the error line does. But is this going to produce other problems?
User avatar
Fresh Boarder

GK User
Fri Sep 10, 2010 8:39 pm
This is not a bug.

Please disable php notice on php.ini file of your localserver.

Cheers ;)
User avatar
Platinum Boarder


cron