Results 1 to 6 of 6
  1. #1
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    help question *[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.p...stock-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 )

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: reviewsContent already defined error from reviews sidebox

    And how is this a ZenCart code bug??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: reviewsContent already defined error from reviews sidebox

    Quote Originally Posted by kobra View Post
    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 )

  4. #4
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: reviewsContent already defined error from reviews sidebox

    Kobra been doing a bit of digging and found this thread http://www.zen-cart.com/showthread.p...reviewsContent Seems they where having the same issue if you have more than 1 review you get the error
    Last edited by discoverytdi; 9 Feb 2013 at 05:10 PM.
    What ever your doing remember to KISS ( Keep It Simple Stupid )

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: reviewsContent already defined error from reviews sidebox

    Simple change to /includes/YOUR_TEMPLATE_NAME_HERE/sideboxes/tpl_reviews_random.php, line 15:
    Code:
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    can be changed to:
    Code:
        $content .= '<div class="' . str_replace('_', '-', $box_id . 'Content') . ' 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.

  6. #6
    Join Date
    May 2011
    Location
    Sunny Rossendale (not)
    Posts
    556
    Plugin Contributions
    2

    Default Re: reviewsContent already defined error from reviews sidebox

    Quote Originally Posted by DrByte View Post
    Simple change to /includes/YOUR_TEMPLATE_NAME_HERE/sideboxes/tpl_reviews_random.php, line 15:
    Code:
        $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
    can be changed to:
    Code:
        $content .= '<div class="' . str_replace('_', '-', $box_id . 'Content') . ' sideBoxContent centeredContent">';
    That solved it.
    What ever your doing remember to KISS ( Keep It Simple Stupid )

 

 

Similar Threads

  1. Replies: 0
    Last Post: 10 May 2013, 04:11 PM
  2. Replies: 1
    Last Post: 10 Dec 2010, 09:48 PM
  3. Replies: 2
    Last Post: 31 Aug 2010, 01:32 AM
  4. ID "reviewsContent" already defined
    By Royal in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 28 May 2010, 01:34 AM
  5. Constant already defined
    By David Allen in forum General Questions
    Replies: 3
    Last Post: 16 Apr 2008, 03:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR