Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Parse error: syntax error, unexpected T_STRING in

    I'm New (very new like 1 day) to Zen-Cart and have come up against this error can anyone please help

    Dave

    Parse error: syntax error, unexpected T_STRING in
    /includes/templates/template_default/common/html_header.php on line 26

    PHP Code:
    <?php
    /**
     * Common Template
     *
     * outputs the html header. i,e, everything that comes before the \</head\> tag <br />
     * 
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license [url]http://www.zen-cart.com/license/2_0.txt[/url] GNU Public License V2.0
     * @version $Id: html_header.php 4368 2006-09-03 19:31:00Z drbyte $
     */
    /**
     * load the module for generating page meta-tags
     */
    require(DIR_WS_MODULES zen_get_module_directory('meta_tags.php'));
    /**
     * output main page HEAD tag and related headers/meta-tags, etc
     */
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS?>>
    <head>
    <title><?php echo META_TAG_TITLE;?>LinuxData Logo's</title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET?>" />
    <meta name="keywords" content="<?php logo linux echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php linuxdata echo META_TAG_DESCRIPTION?>" />
    <meta http-equiv="imagetoolbar" content="no" />
    <meta name="author" content="The Zen Cart&trade; Team and others" />
    <meta name="generator" content="shopping cart program by Zen Cart&trade;, [url]http://www.zen-cart.com[/url] eCommerce" />
    <?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?>
    <meta name="robots" content="noindex, nofollow" />
    <?php ?>
    <?php 
    if (defined('FAVICON')) { ?>
    <link rel="icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <link rel="shortcut icon" href="<?php echo FAVICON?>" type="image/x-icon" />
    <?php //endif FAVICON ?>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER DIR_WS_HTTPS_CATALOG HTTP_SERVER DIR_WS_CATALOG ); ?>" />

    <?php

    /**
    **snip** - shortened code for brevity, by moderator

  2. #2
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Parse error: syntax error, unexpected T_STRING in

    1. why are you editing that file?
    2. why do you have "logo linux" etc in there?
    PHP Code:
    <meta name="keywords" content="<?php logo linux echo META_TAG_KEYWORDS?>" />
    <meta name="description" content="<?php linuxdata echo META_TAG_DESCRIPTION?>" />
    .

    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
    Dec 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected T_STRING in

    Thanks DrByte,
    Resolved I have just looked again and found i had use incorrect file.

    Thanks for your fast response.
    Dave

  4. #4
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Parse error: syntax error, unexpected T_STRING in

    Have a similar query on T_string error on another thread, pity no responses so far to mine though.
    Some errors are not importatnt but this one stops all sales through the cart.
    http://www.zen-cart.com/forum/showthread.php?t=83625
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

 

 

Similar Threads

  1. PHP Parse error: syntax error, unexpected T_STRING
    By derek53 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2011, 08:09 PM
  2. Replies: 20
    Last Post: 21 Nov 2010, 02:48 AM
  3. Replies: 9
    Last Post: 5 Feb 2010, 01:12 AM
  4. Replies: 8
    Last Post: 5 Mar 2009, 06:40 PM
  5. Replies: 6
    Last Post: 21 Sep 2008, 04:48 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