Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Location
    Tulsa OK
    Posts
    11
    Plugin Contributions
    0

    Default parse error on index page after editing language file

    HELP A NEWBE

    I installed zencart and all was well but when I edited the index to remove the congratulations line now i get the error:

    Parse error: syntax error, unexpected '/'

    I have tried all kinds of editing and still get the same error.

    here is the code:

    // This section deals with the "home" page at the top level with no options/products selected
    'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! .');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    define('HEADING_TITLE', 'Congratulations! .');
    }

    can anyone help? can i just get a copy of the original file somewhere??

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,026
    Plugin Contributions
    61

    Default Re: parse error on index page after editing language file

    Code:
    // This section deals with the "home" page at the top level with no options/products selected
    'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! .');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    define('HEADING_TITLE', 'Congratulations! .');
    }
    Remove the red slash & *

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #3
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,026
    Plugin Contributions
    61

    Default Re: parse error on index page after editing language file

    Code:
    // This section deals with the "home" page at the top level with no options/products selected
    'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! .');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    define('HEADING_TITLE', 'Congratulations! .');
    }

    Matter of fact, you seem to have edited the wrong line.. the editable section is now bold... replace the original file and start over =-)

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,173
    Plugin Contributions
    11

    Default Re: parse error on index page after editing language file


    Should look like
    // This section deals with the "home" page at the top level with no options/products selected
    /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
    } elseif ($category_depth == 'nested') {
    // This section deals with displaying a subcategory
    /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
    define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart™ E-Commerce Solution.');
    }
    The text in red (and only the text in red) is changed to match your preference.

    You appear to have a really messed up languages/english/index.php file. If using a custom template, it would be in the languages/english/custom/index.php file.

  5. #5
    Join Date
    Jun 2009
    Location
    Tulsa OK
    Posts
    11
    Plugin Contributions
    0

    Default Re: parse error on index page after editing language file

    Thanks so much, I don't know what happened but I copied your original code and it fixed it. Do I edit both Congrats lines to get the one to be right on my site?
    What if I want it to just go away?
    I appreciate the help.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,374
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: parse error on index page after editing language file

    See the "causes" paragraph in this FAQ article: https://www.zen-cart.com/tutorials/index.php?article=95
    .

    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.

 

 

Similar Threads

  1. Encoding problem editing portuguese language file
    By letslv in forum Addon Payment Modules
    Replies: 3
    Last Post: 18 Jun 2013, 08:14 PM
  2. Editing text in template file instead of language file
    By cochlear in forum General Questions
    Replies: 2
    Last Post: 4 Jun 2008, 01:47 AM
  3. Parse error after making title change in index.php
    By teamzr1 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Jun 2007, 09:28 PM

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