error Undefined variable

Premium, Furniture Joomla Design Shop Template with K2Store support
GK User
Fri Nov 16, 2012 8:20 pm
Hello I downloaded the package installed on 2.5 and after a few pages the following message appears:

Notice: Undefined variable: gkContent in... \ templates \ gk_black_and_white \ layouts \ blocks \ main.php on line 42 style = width:>

How do I fix this error?
User avatar
Fresh Boarder

teitbite
Sun Nov 18, 2012 11:51 am
Hi

Please go to template configuration and in Layout set the widths for all sections.
User avatar
Moderator

GK User
Sun Nov 18, 2012 11:58 am
Hi,

In the layouts/blocks/main.php file please add before the following line:
Code: Select all
if($this->getParam("cwidth_position", '') == 'style') {


line:
Code: Select all
$gkContent = '100%';


additionally please replace line:
Code: Select all
<div id="gkContent" class="gkMain gkCol <?php echo $this->generatePadding('gkContentColumn'); ?>" <?php if($this->getParam("cwidth_position", '') == 'style') echo "style=width:".$gkContent;  ?>>


with:
Code: Select all
<div id="gkContent" class="gkMain gkCol <?php echo $this->generatePadding('gkContentColumn'); ?>" <?php if($this->getParam("cwidth_position", '') == 'style') echo "style="width:".$gkContent.'"';  ?>>
User avatar
Administrator


cron