Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

    Default Help Parse Error

    I was in the Specials.php file changing things from false to true and when i saved i got this error and lost the left border that was on the site before...it says

    Parse Error: syntax error, unexpected T_STRING in home/shieldsd/public_html/includes/modules/sideboxes/specials.php on line 22

    The site address is www.shieldsdates.com

    Please help me fix this because i was working on my clients site and they will be very upset if they see this in the morning!

    You can email me at the360company AT aol DOT com

    debbie
    Last edited by sitesandtours; 27 Nov 2006 at 06:36 AM. Reason: Forgot to put the web address where my problem is

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help Parse Error

    What do you have in that file from lines 18 to 25?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Help Parse Error

    Quote Originally Posted by Ajeh View Post
    What do you have in that file from lines 18 to 25?
    I am not sure I am counting correctly so here is the code for the page

    <?php
    /**
    * specials sidebox - displays a random product "on special"
    *
    * @package templateSystem
    * @copyright Copyright 2003-2005 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: specials.php 2718 2005-12-28 06:42:39Z drbyte $
    */
    // test if box should display
    $show_specials= false;
    if (isset($_GET['products_id'])) {
    $show_specials= false;
    } else {
    $show_specials= true;
    }
    if ($show_specials == true) {
    $random_specials_sidebox_product_query = "select p.products_id, pd.products_name, p.products_price,
    p.products_tax_class_id, p.products_image,
    s.specials_new_products_price
    from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, "
    . TABLE_SPECIALS . " s
    where p.products_status = 1
    and p.products_id = s.products_id
    and pd.products_id = s.products_id
    and pd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    and s.status = 1
    limit " . MAX_RANDOM_SELECT_SPECIALS;
    $random_specials_sidebox_product = zen_random_select($random_specials_sidebox_product_query);
    if ($random_specials_sidebox_product->RecordCount() > 0) {
    $specials_box_price = zen_get_products_display_price($random_specials_sidebox_product->fields['products_id']);
    require($template->get_template_dir('tpl_specials.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_specials.php');
    $title = BOX_HEADING_SPECIALS;
    $title_link = FILENAME_SPECIALS;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    }
    }
    ?>

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Help Parse Error

    I am not seeing the error on your site nor anything off in the code ...

    Did you fix this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Help Parse Error

    Yes....that night i remembered i had the back up of the entire cart on my hard drive and found the file and renamed the old one and uploaded the backed up one I had and voila it went back to normal! Thank you for asking!

    debbie

 

 

Similar Threads

  1. PHP Parse error: parse error, unexpected T_STRING
    By awesomo in forum General Questions
    Replies: 9
    Last Post: 6 Sep 2008, 01:38 AM
  2. PLEASE HELP, I did something DUMB -- Parse error: syntax error, unexpected ')'
    By mfsuchta in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Aug 2008, 02:16 AM
  3. Parse error PLEASE HELP!!
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Nov 2007, 09:40 PM
  4. Help! Parse Error problems!
    By eternalstudios in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 13 Sep 2006, 03:50 PM

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