Forums / Bug Reports / *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

*[Done 1.6.0] reviewsContent already defined error from reviews sidebox

Locked

Started by discoverytdi on 8 Feb 2013, 4:55 PM · Views: 1,572

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 Feb 2013, 4:55 PM
#1
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

*[Done 1.6.0] reviewsContent already defined error from reviews sidebox

Hi I originally posted here regarding a problem I was having with my website when I have multiple reviews in the reviews side box
http://www.zen-cart.com/showthread.php?205661-Reviews-sidebox-Comstock-template
I originally thought it was a issue with the template I was using but on further investigation the validation error also occurs with stock zencart template. Though it dose not cause the display problems that get with my template due I think the fact that the borders etc are created via css statements and my template uses image files. is there a work round to solve this
282 910 ID "reviewsContent" already defined 141
282 1815 ID "reviewsContent" already defined 141
282 2769 ID "reviewsContent" already defined 141
Thank you in anticipation of your help

What ever your doing remember to KISS ( Keep It Simple Stupid )

9 Feb 2013, 6:53 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

And how is this a ZenCart code bug??

Zen-Venom Get Bitten

9 Feb 2013, 11:39 AM
#3
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

kobra:

And how is this a ZenCart code bug??

Because I get the same error when I switch to the stock zencart Classic template, like said I thought it was the comstock temple that was the cause till I switched.

What ever your doing remember to KISS ( Keep It Simple Stupid )

9 Feb 2013, 4:07 PM
#4
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

Kobra been doing a bit of digging and found this thread http://www.zen-cart.com/showthread.php?155946-ID-quot-reviewsContent-quot-already-defined&highlight=reviewsContent Seems they where having the same issue if you have more than 1 review you get the error

What ever your doing remember to KISS ( Keep It Simple Stupid )

9 Feb 2013, 6:39 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

Simple change to /includes/YOUR_TEMPLATE_NAME_HERE/sideboxes/tpl_reviews_random.php, line 15:$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';can be changed to:```
$content .= '<div [B]class="' . str_replace('_', '-', $box_id . 'Content') . ' [/B]sideBoxContent centeredContent">';

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Feb 2013, 7:10 PM
#6
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: *[Done 1.6.0] reviewsContent already defined error from reviews sidebox

DrByte:

Simple change to /includes/YOUR_TEMPLATE_NAME_HERE/sideboxes/tpl_reviews_random.php, line 15:$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';can be changed to:```
$content .= '<div [B]class="' . str_replace('_', '-', $box_id . 'Content') . ' [/B]sideBoxContent centeredContent">';

:clap: That solved it.

What ever your doing remember to KISS ( Keep It Simple Stupid )