[Skip to main content](#vessel-content)

#   Navigation on votes / comments is causing errors

##

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#75146](#75146) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#75146 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")* was created by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")*

I am having errors when I try to use the navigation links at the bottom
of the votes/comments display.

When I go to...
HikaShop &gt; System &gt; Configuration &gt; Vote

under "Vote &amp; Comment" I have
Display vote in products page --Yes
Choose which module you want to enable --Vote &amp; Comment connected

The votes/comments seem at first to be fine, but when I try to see the
rest of the votes using the navigation at the bottom (1,2,Next,End, etc.)
I get a bunch of error messages like:

Notice: Undefined property: stdClass::$product_page_title
in (my joomla site)/components/com_hikashop/views/product/view.html.php on line 941

Notice: Undefined property: stdClass::$product_meta_description
in (my joomla site)/components/com_hikashop/views/product/view.html.php on line 942

Notice: Undefined property: stdClass::$product_keywords
in (my joomla site)/components/com_hikashop/views/product/view.html.php on line 943

Here are those lines of code in that file:

if(!empty($this-&gt;element-&gt;main)){
$product_name = $this-&gt;element-&gt;main-&gt;product_name;
$product_page_title = $this-&gt;element-&gt;main-&gt;product_page_title; // line 941
$product_description = $this-&gt;element-&gt;main-&gt;product_meta_description; // line 942
$product_keywords = $this-&gt;element-&gt;main-&gt;product_keywords; // line 943
}

I only see these error messages when I'm trying to navigate through these comments/votes.

Anyone have an idea on how to solve the problem?

Thanks.

Last edit: 13 years 11 months ago by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#75233](#75233) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#75233 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hi,

Try to replace the code: Code:

if(!empty($this-&gt;element-&gt;main)){ $product_name = $this-&gt;element-&gt;main-&gt;product_name; $product_page_title = $this-&gt;element-&gt;main-&gt;product_page_title; // line 941 $product_description = $this-&gt;element-&gt;main-&gt;product_meta_description; // line 942 $product_keywords = $this-&gt;element-&gt;main-&gt;product_keywords; // line 943 }

By: Code:

if(!empty($this-&gt;element-&gt;main)){ $product_name = $this-&gt;element-&gt;main-&gt;product_name; $product_page_title = @$this-&gt;element-&gt;main-&gt;product_page_title; // line 941 $product_description = @$this-&gt;element-&gt;main-&gt;product_meta_description; // line 942 $product_keywords = @$this-&gt;element-&gt;main-&gt;product_keywords; // line 943 }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#75319](#75319) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Re: Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#75319 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Thanks for the reply Xavier...

I made the changes you mentioned... those errors went away,
but there are more beside these. I went ahead and applied
your "swallow the error" approach until I could finally use
the navigation and not receive any errors.

The problem is that this didn't really solve my problem. These
errors (although now hidden) are keeping other things from working.
As long as you don't try to page through the comments, the site
seems to work fine.

As an example, earlier you helped me to place content next to a
select box. Here's [ that thread](http://www.hikashop.com/forum/4-how-to/72900-how-to-add-content-beside-a-dropdown.html?lang=en#72900) if you want to refer to it.

The error that I am now getting is...

Notice: Undefined offset: 10
in (my joomla site)/templates/yoo_tasty/html/com_hikashop/product/show_block_characteristic.php on line 15

I've place an '@' in there as well to avoid the error message.
Here is that portion of code:
Code:

&lt;?php if (!empty ($this-&gt;element-&gt;characteristics)) { ?&gt;&lt;div id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;?php echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params); if (@$this-&gt;element-&gt;characteristics[10]) {

The last line showing is the line 10 that it mentions.

That line allows me to know when the select box for 'Please Select Size' appears
on the page. I placed additional content to the right of this select box.

With the '@' applied, my additional content is displayed unless you try to see the
rest of the comments and votes)

Anyway, what I'm saying is that everything seems to work with the site UNTIL you try
to page through the comments... As soon as you try to see more of the comments/votes,
that is when problems come up.

Last edit: 13 years 11 months ago by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#75821](#75821) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#75821 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hi,

That's because the characteristic id change from on page to another page, try to replace the code in the view "show_block_characteristic" to: Code:

&lt;?php JHTML::_('behavior.tooltip'); if (!empty ($this-&gt;element-&gt;characteristics)) { ?&gt;&lt;div id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;?php echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params); foreach($this-&gt;element-&gt;characteristics as $characteristic){ if($characteristic-&gt;characteristic_parent_id == 10){ echo "&lt;span style='position:relative;top:-18px; left: 100px;'&gt;"; echo JHTML::tooltip('This is the tooltip text', 'Tooltip title', 'tooltip.png', '', 'http://www.joomla.org'); echo "&lt;/span&gt;"; } } ?&gt;&lt;/div&gt;&lt;?php } ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago [\#75901](#75901) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#75901 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

I applied the change you mentioned (although now I am using just a link instead of a tooltip),
and at least that part is solved now. Thank you.

Applying the change that you mentioned is keeping the link present along side of the SELECT
dropdown box all the time. This is great.

Now, back to the topic of this thread...

I still need to find out why navigating the reviews/comments is causing problems.

Here is my current problem:

If I go straight to the product page and choose size and color, the 'add to cart' button
appears. This seems fine.

However, if I page through the comments/reviews of this product, the 'add to cart' button
goes away and stays away even with the size and color selected. Once I click on any of the
navigation links at the bottom of the comments, I am no longer able to see the add to cart
button, no matter what I try.

After I navigate through the reviews, I must start the product selection fresh with a new
page request before the color and size selections will cause the 'add to cart' button to
appear again.

I was getting errors displayed to me earlier after clicking on the comments navigation
links. I applied the '@' to specific variables in files that were specified in the errors.
Now I don't see any of the errors, but I am pretty sure they are still being generated.

Do you have any ideas why navigating the reviews/comments might be causing problems?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#76143](#76143) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76143 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hi,

I have reproduce the problem on my end, indeed the quantity is affected when we change the page of the comments listing.

I am looking for a solution.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#76150](#76150) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76150 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hi again,

I find a solution, edit the view "product / show" in HikaShop &gt; Display &gt; Views and add the code: Code:

&lt;form action="&lt;?php echo hikashop_currentURL() ?&gt;" method="post" name="hikashop_comment_form"&gt; &lt;div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing"&gt; &lt;?php if($this-&gt;params-&gt;get('show_vote_product')){ //LAYOUT listing of the comments for this product $js = ''; if(isset($this-&gt;element-&gt;main)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; }else{ $product_id = $this-&gt;element-&gt;product_id; } $this-&gt;params-&gt;set('product_id',$product_id); echo hikashop_getLayout('vote', 'listing', $this-&gt;params, $js); ?&gt; &lt;/div&gt; &lt;div id="hikashop_product_vote_form" class="hikashop_product_vote_form"&gt; &lt;?php //LAYOUT form to send a comment &amp; vote $js = ''; if(isset($this-&gt;element-&gt;main)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; }else{ $product_id = $this-&gt;element-&gt;product_id; } $this-&gt;params-&gt;set('product_id',$product_id); echo hikashop_getLayout('vote', 'form', $this-&gt;params, $js); } ?&gt; &lt;/div&gt; &lt;input type="hidden" name="add" value="1"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="task" value="show"/&gt; &lt;input type="hidden" name="return_url" value="&lt;?php echo urlencode(base64_encode(urldecode($this-&gt;redirect_url)));?&gt;"/&gt; &lt;/form&gt;

Just after the code: "&lt;/form&gt;"

Then edit the view "product / show_default" and remove the code: Code:

&lt;div id="hikashop_product_vote_listing" class="hikashop_product_vote_listing"&gt; &lt;?php if($this-&gt;params-&gt;get('show_vote_product')){ //LAYOUT listing of the comments for this product $js = ''; if(isset($this-&gt;element-&gt;main)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; }else{ $product_id = $this-&gt;element-&gt;product_id; } $this-&gt;params-&gt;set('product_id',$product_id); echo hikashop_getLayout('vote', 'listing', $this-&gt;params, $js); ?&gt; &lt;/div&gt; &lt;div id="hikashop_product_vote_form" class="hikashop_product_vote_form"&gt; &lt;?php //LAYOUT form to send a comment &amp; vote $js = ''; if(isset($this-&gt;element-&gt;main)){ $product_id = $this-&gt;element-&gt;main-&gt;product_id; }else{ $product_id = $this-&gt;element-&gt;product_id; } $this-&gt;params-&gt;set('product_id',$product_id); echo hikashop_getLayout('vote', 'form', $this-&gt;params, $js); } ?&gt; &lt;/div&gt;

And the last modification is in the file "vote / listing", replace: Code:

$this-&gt;pagination-&gt;form = '; document.hikashop_product_form.task.value=\'show\'; document.hikashop_product_form.action=\''.hikashop_currentURL().'\'; document.hikashop_product_form';

By: Code:

$this-&gt;pagination-&gt;form = '; document.hikashop_comment_form';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#76275](#76275) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76275 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hello,

When I made the change to product/show it added more stars.

[ ![comparison.jpg](/forum/attachment/6910) ](/forum/attachment/6910 "comparison.jpg")

My product/show_default doesn't seem to match what you gave me.

Let me attach my versions of the 3 views that you mentioned,
and see if that helps.

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

- [ ![comparison.jpg](/forum/attachment/6910) ](/forum/attachment/6910 "comparison.jpg") [ ](/forum/attachment/6910?download=1 "comparison.jpg")

Last edit: 13 years 11 months ago by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#76324](#76324) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76324 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hi,

I don't see why more stars appears, because the modifications just moves some code from one view to another one.
Could you do the modifications again, and give me a link to your website ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago [\#76377](#76377) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76377 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

I sent you a PM.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#76391](#76391) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76391 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Could you try to replace the content of your views by the content of the following files ?

Don't forget to save your files before, we never know.

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")**
- [![tumbleweed's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9977-tumbleweed "View tumbleweed's Profile") Topic Author
- [ Offline](/forum/user/9977-tumbleweed)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#76424](#76424) by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")  Replied by *[tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile")* on topic *[Navigation on votes / comments is causing errors](/forum/4-how-to/75146-navigation-on-votes-comments-is-causing-errors#76424 "I am having errors when I try to use the navigation links at the bottom of the votes/comments display.  When I go to... HikaShop &gt; System &gt; Configuration &gt; Vote  under &quot;Vote &amp; Comment&quot; I have Display vote in products page --Yes Choose which module you want to enable --Vote &amp; Comment connected  The votes/comments seem at first to be fine, but when I try to see the rest of the votes using the navigation at the bottom (1,2,Next,End, etc.) I get a bunch of error messages like:  Notice: Undefined property: stdClass::$product&#95;page&#95;title in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 941  Notice: Undefined property: stdClass::$product&#95;meta&#95;description in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 942  Notice: Undefined property: stdClass::$product&#95;keywords in (my joomla site)/components/com&#95;hikashop/views/product/view.html.php on line 943  Here are those lines of code in that file:  if(!empty($this-&gt;element-&gt;main)){ $product&#95;name = $this-&gt;element-&gt;main-&gt;product&#95;name; $product&#95;page&#95;title = $this-&gt;element-&gt;main-&gt;product&#95;page&#95;title; // line 941 $product&#95;description = $this-&gt;element-&gt;main-&gt;product&#95;meta&#95;description; // line 942 $product&#95;keywords = $this-&gt;element-&gt;main-&gt;product&#95;keywords; // line 943 }  I only see these error messages when I'm trying to navigate through these comments/votes.  Anyone have an idea on how to solve the problem?  Thanks.")*

Hey Xavier,

I think that fixed it!

I can make the selections, and the add to cart button will appear.

If I then navigate through the comments, the add to cart button
disappears and the selections are reset.

I can then go and make my selections again and the add to cart
button appears again.

I think it is working correctly now.

Thank you.

Last edit: 13 years 11 months ago by [tumbleweed](/forum/user/9977-tumbleweed "View tumbleweed's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1MTQ2LW5hdmlnYXRpb24tb24tdm90ZXMtY29tbWVudHMtaXMtY2F1c2luZy1lcnJvcnM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.181 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
