Undefined variable showleft...

More
14 years 10 months ago #5120 by Airjie
Hello,

I have load "boutique template 16" on joomla 1.6 but when I choose "preview" I have some notice errors like "Notice: Undefined variable: showleft1 in C:\Program Files\(...)\templates\hot_boutique\index.php on line 63" (same for "show left2", "showleft3") and Notice: "Undefined variable: showright1 in C:\Program Files\(...)templates\hot_boutique\index.php on line 70". After this notices, the website appears.

Like I don't know computer language I don't know what to do. Someone could help me please?

I have load other templates and they seems to work well, these error messages appear only in boutique template.

Thank you for your help !

Please Log in to join the conversation.

More
14 years 10 months ago #5121 by ivan.milic
Can you give us link to inspect that?

Please Log in to join the conversation.

More
14 years 10 months ago #5122 by Airjie
Link? Sorry, link of my site? I'm only on localhost so I can't give you the link. Maybe I don't get it...

Here is a copy of what I see when i preview:

Accueil.png



I don't know if it's help but this is the line php whose seems trouble:

// template layout
$templateWidth = $this->params->get("templateWidth");
if ($showleft || $showleft1 ||$showleft2 || $showleft3) {
$columnLeftWidth = $this->params->get("columnLeftWidth");
$columnLeftPad = 22;
}else{
$columnLeftWidth = 0;
$columnLeftPad = 0;
}
if ($showright || $showright1 ||$showright2 || $showright3) {
$columnRightWidth = $this->params->get("columnRightWidth");
$columnRightPad = 22;
}else{
$columnRightWidth = 0;
$columnRightPad = 0;
}
$contentWidth = $templateWidth - $columnLeftWidth - $columnLeftPad - $columnRightWidth - $columnRightPad;
$overallWidth = $templateWidth;

Please Log in to join the conversation.

More
14 years 10 months ago #5124 by milos
Are you sure that you installed Joomla 1.6 template version on Joomla 1.6 site? Also, did you try HotStart installation?

Please Log in to join the conversation.

More
14 years 10 months ago #5125 by Airjie
Yes I installed joomla template 1.6 on joomla 1.6. And I didn't try hotstar yet.

But, if it can help, I tried to add the line in bold (on php index line 34) :

$showleft = $this->countModules('left');
$showright = $this->countModules('right');
$showleft1 = $this->countModules('left1');
$showright1 = $this->countModules('right1');
$showleft2 = $this->countModules('left2');
$showright2 = $this->countModules('right2');
$showleft3 = $this->countModules('left3');
$showright3 = $this->countModules('right3');

$showuser1 = $this->countModules('user1');
$showuser3 = $this->countModules('user3');

Then, the error notice disapeared but I'm not sure the probleme is resolved just whith that!

Please Log in to join the conversation.

Time to create page: 0.342 seconds
Powered by Kunena Forum