Thread: I messed up

Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default I messed up

    I downloaded my includes\languages\english\index.php, tinkered with it and caused "Fatal error: Cannot redeclare class queryfactory in D:\inetpub\smokymountainangler\ZenCart\includes\classes\db\mysql\query_factory.p hp on line 22" I brought it back to undo the lines I had inserted, put it back up and got the same message, except it cited line 24. Can anyone get me back to where I was before I messed up?

  2. #2
    Join Date
    Mar 2006
    Location
    Los Angeles
    Posts
    287
    Plugin Contributions
    3

    Default Re: I messed up

    You should be using the Template Override system to ensure that you don't mess up the original files.

    Anyways, I'm running 3.0.1

    This is the code my file has.

    <?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2006 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: index.php 3027 2006-02-13 17:15:51Z drbyte $
    */

    define('TEXT_MAIN','This is the main define statement for the page for english when no template defined file exists. It is located in: <strong>/includes/languages/english/index.php</strong>');

    // Showcase vs Store
    if (STORE_STATUS == '0') {
    define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
    } else {
    define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
    }

    define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');

    define('TEXT_INFORMATION', 'Define your main Index page copy here.');

    //moved to english
    //define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

    //define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
    //define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
    //define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

    if ( ($category_depth == 'products') || (zen_check_url_get_terms()) ) {
    // This section deals with product-listing page contents
    define('HEADING_TITLE', 'Available Products');
    define('TABLE_HEADING_IMAGE', 'Product Image');
    define('TABLE_HEADING_MODEL', 'Model');
    define('TABLE_HEADING_PRODUCTS', 'Product Name');
    define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');
    define('TABLE_HEADING_QUANTITY', 'Quantity');
    define('TABLE_HEADING_PRICE', 'Price');
    define('TABLE_HEADING_WEIGHT', 'Weight');
    define('TABLE_HEADING_BUY_NOW', 'Buy Now');
    define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');
    define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');
    define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');
    define('TEXT_SHOW', 'Filter Results by:');
    define('TEXT_BUY', 'Buy 1 \'');
    define('TEXT_NOW', '\' now');
    define('TEXT_ALL_CATEGORIES', 'All Categories');
    define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');
    } elseif ($category_depth == 'top') {
    // 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&trade; 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&trade; E-Commerce Solution.');
    }
    ?>

  3. #3
    Join Date
    May 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: I messed up

    Well put and taken. Thanks for the file - it's fixed and my BP is closer to normal.

 

 

Similar Threads

  1. v139h I Messed Up
    By traytray in forum General Questions
    Replies: 14
    Last Post: 7 Oct 2012, 12:59 AM
  2. v150 Ok i messed it up
    By brentpit in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 May 2012, 12:58 PM
  3. I messed up
    By greatlooks4you in forum General Questions
    Replies: 3
    Last Post: 31 Dec 2010, 08:11 AM
  4. I messed up
    By ChristyA in forum General Questions
    Replies: 1
    Last Post: 20 Apr 2010, 07:44 PM
  5. I messed up
    By Rob905 in forum General Questions
    Replies: 2
    Last Post: 3 Jan 2009, 02:03 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