Joomla Templates, WordPress Themes - HotThemes
Welcome, Guest
Username: Password: Remember me
Discussion about "Boutique" Joomla template.
  • Page:
  • 1

TOPIC: Undefined variable showleft...

Undefined variable showleft... 2 years 3 months ago #5120

  • Airjie
  • Airjie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
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 !
The administrator has disabled public write access.

Re: Undefined variable showleft... 2 years 3 months ago #5121

  • ivan.milic
  • ivan.milic's Avatar
  • OFFLINE
  • Support Staff
  • Posts: 8248
  • Thank you received: 893
Can you give us link to inspect that?
The administrator has disabled public write access.

Re: Undefined variable showleft... 2 years 3 months ago #5122

  • Airjie
  • Airjie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
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

Accueilgrosplan.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;
The administrator has disabled public write access.

Re: Undefined variable showleft... 2 years 3 months ago #5124

  • milos
  • milos's Avatar
  • OFFLINE
  • Support Staff
  • Posts: 4035
  • Thank you received: 293
Are you sure that you installed Joomla 1.6 template version on Joomla 1.6 site? Also, did you try HotStart installation?
The administrator has disabled public write access.

Re: Undefined variable showleft... 2 years 3 months ago #5125

  • Airjie
  • Airjie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
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!
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 0.122 seconds
Powered by Kunena Forum

Forum Rules

Allow our support staff to help you:

  • Average response time is 12-24h. Please don't ask the same question twice.
  • Always post your site link so we can check your problem.
  • If you prefer, you can send link and site login details privately if you click "Report to moderator" link.

You are welcome to post if you have fair Joomla/WordPress knowledge and your question is related to:

  • Finding and resolving errors in our products
  • Problems with installation of our products on your server
  • Instructions how to use our products - please read documentation and search this Forum before posting!
  • General questions about our products

In the following cases, support staff may not reply your question or may delete your post without prior notice:

  • Total Joomla/WordPress beginners - Please find some literature for Joomla or literature for WordPress.
  • Modifications of our products: Beside Joomla/WordPress knowledge, you must also understand CSS and HTML, and/or have some PHP experience. Purpose of this Forum is not teaching HTML, CSS or PHP.

 

Promo code?
Newsletter
Sign up!
FacebookTwitter
Google+Youtube
PinterestRSS
Follow us!