- Posts: 18
- Thank you received: 0
Undefined variable showleft...
-
Airjie
Inactive member -
Topic Author
- New Member
-
Less
More
14 years 1 month ago #5120
by Airjie
Undefined variable showleft... was created 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 !
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.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
14 years 1 month ago #5121
by ivan.milic
Replied by ivan.milic on topic Re: Undefined variable showleft...
Can you give us link to inspect that?
Please Log in to join the conversation.
-
Airjie
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
14 years 1 month ago #5122
by Airjie
Replied by Airjie on topic Re: Undefined variable showleft...
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;
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.
-
milos
Support Staff -
- Moderator
-
Less
More
- Posts: 6784
- Thank you received: 720
14 years 1 month ago #5124
by milos
Replied by milos on topic Re: Undefined variable showleft...
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.
-
Airjie
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
14 years 1 month ago #5125
by Airjie
Replied by Airjie on topic Re: Undefined variable showleft...
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!
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.202 seconds