- Posts: 45
- Thank you received: 0
Undefined variable error changing template style
-
wvq
Inactive member - Topic Author
- Member
Less
More
13 years 1 month ago #12572
by wvq
Undefined variable error changing template style was created by wvq
I'm editing the templates style and when I select any of the tabs to change the colors I get the following error:
"Undefined variable: value in C:\...\elements\hotcolor.php on line 53
How can I solve this?
"Undefined variable: value in C:\...\elements\hotcolor.php on line 53
How can I solve this?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12597
by ivan.milic
Replied by ivan.milic on topic Re: Undefined variable error changing template style
open that file and replace $value with $this->value
Please Log in to join the conversation.
-
flyingfinn64
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 1 month ago #12795
by flyingfinn64
Replied by flyingfinn64 on topic Re: Undefined variable error changing template style
Hello can u help me also?
have the same problem in the hot joomla photo module in your virtuemart template hotfurniture with the hotcolor.php error in line 53
can u help me?
here the line 53 until the end
$value = htmlspecialchars(html_entity_decode($value, ENT_QUOTES), ENT_QUOTES);
$background = ' style="background-color: '.$value.'"';
return '<input type="text" name="'.$this->name.'" id="'.$this->id.'" '.$background.' class="'.$class.'" value="'.htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8').'">';
thank u very much
have the same problem in the hot joomla photo module in your virtuemart template hotfurniture with the hotcolor.php error in line 53
can u help me?
here the line 53 until the end
$value = htmlspecialchars(html_entity_decode($value, ENT_QUOTES), ENT_QUOTES);
$background = ' style="background-color: '.$value.'"';
return '<input type="text" name="'.$this->name.'" id="'.$this->id.'" '.$background.' class="'.$class.'" value="'.htmlspecialchars($this->value, ENT_COMPAT, 'UTF-8').'">';
thank u very much
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 1 month ago #12813
by ivan.milic
Replied by ivan.milic on topic Re: Undefined variable error changing template style
That is warning , not error and solution is same for j1.6/j1.7
$value replace with $this->value
$value replace with $this->value
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6754
- Thank you received: 718
13 years 1 month ago #12823
by milos
Replied by milos on topic Re: Undefined variable error changing template style
We have fixed this, please download, unzip and upload the attached file to /templates/hot_templatename/elements (overwrite existing file).
Please Log in to join the conversation.
-
flyingfinn64
Inactive member - New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 1 month ago - 13 years 1 month ago #12827
by flyingfinn64
Replied by flyingfinn64 on topic Re: Undefined variable error changing template style
Ty u for ur quick responses. im out of office for weekend ill fix it monday morning and ill let u know.
Thanks in advance
Thanks in advance
Last edit: 13 years 1 month ago by flyingfinn64.
Please Log in to join the conversation.
Time to create page: 0.175 seconds