Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    122
    Plugin Contributions
    0

    Default Error when trying to select template

    Hi,

    When I go into admin to select a template, this is the error I receive:

    Parse error: syntax error, unexpected T_STRING in /home/websitename/public_html/store/includes/templates/custom/template_info.php on line 5

    I am unable to even choose a template.

    Can someone tell me what I need to do? This is the code:

    <?php
    $template_name = 'custom';
    $template_version = 'Version 1.0';
    $template_author = 'Marci Baun (c) 2006';
    $template_description = 'Dr. Lin Morel's store and products. Three images are required; logo.jpg, header_bg.jpg, and tile_back.jpg.';
    $template_screenshot = 'scr_template_default.jpg';
    ?>

    Currently, on the front end, I don't see any the graphics, colors, CSS.

    Thanks!

    Marci

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Error when trying to select template

    You have an extra ' in your $template_description line.

    Note the ' marks around the entire value:
    'Dr. Lin Morel's store and products. Three images are required; logo.jpg, header_bg.jpg, and tile_back.jpg.'

    Since you tossed another one in the middle, you created an imbalance.

    Options:
    1. remove your extra ' mark
    2. convert the ' to \' --- like this: Dr. Lin Morel\'s store
    3. change the beginning and ending ' marks to " (for that line only)
    .

    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.

  3. #3
    Join Date
    Mar 2006
    Posts
    122
    Plugin Contributions
    0

    Default Re: Error when trying to select template

    Thanks, Dr. Byte.

    I remember that now. It's just late and I'm too tired ot be working. LOL

    Marci

 

 

Similar Threads

  1. v153 Product Listing Page Navigation isn't working when trying to select the next page?
    By choochoo in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Dec 2014, 06:26 PM
  2. Replies: 0
    Last Post: 3 Jan 2010, 12:44 AM
  3. There was a security error when trying to login. - 1.36 Template, 1.38 Zen Cart
    By emptywalls in forum Upgrading from 1.3.x to 1.3.9
    Replies: 7
    Last Post: 14 Feb 2008, 11:26 PM
  4. Replies: 2
    Last Post: 31 Jul 2007, 02:40 AM
  5. Error message when trying to select a template
    By lollyloopp in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Nov 2006, 04:36 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