Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default problems with header.php

    I foolishly didn't back up the header.php files to edit the front page and now receive the following error Parse error: syntax error, unexpected T_STRING in /home/sites/northenergysystems.com/public_html/zencart/includes/languages/english/classic/header.php on line 22

    any ideas on how I might be able to get this sorted?

    Many thanks

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

    Default Re: problems with header.php

    To see the "original" esp when you didn't make a backup, you would copy the original version of that file from the folder above it, since if you're using overrides, the master copy is in the english folder itself.

    Or, you could edit the file that's got the error, and sort out the PHP syntax error that's in there. Make sure you didn't delete any quote marks or brackets or semicolons etc. And try to word things in such a way that you don't have to use any quotation marks in the language content you're using. If you must, use \' instead of just '

    There's an FAQ on the topic: https://www.zen-cart.com/tutorials/index.php?article=93
    .

    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. Problems with changing header
    By motofool in forum Basic Configuration
    Replies: 1
    Last Post: 20 Nov 2011, 02:47 AM
  2. Problems with Header
    By JennH in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 18 Apr 2010, 03:16 AM
  3. Problems after modifying header.php
    By eazy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2010, 07:17 AM
  4. require(DIR_WS_INCLUDES . 'header.php'); problems
    By confused_aswell in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 29 Oct 2008, 12:17 AM
  5. Problems with Header
    By bradlawson in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 3 Jul 2006, 08:24 AM

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