Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Syntax error after editing configure.php

    Hi. I recently tried to change my store from mysite.com/store to mysite.com and I've run into some speed bumps. I moved all the contents of the /store folder into public_html, and then changed the configure.php files of admin and includes. It worked, but when I clicked the categories or links on the main page it was giving me the error that mysite.comindex.php didn't exist. I tried to figure out why the slash was omitted after .com on mysite.comindex.php. It must have been something I did but I couldn't figure it out. After a little toggling I got a syntax error 1064 on my homepage and I have no idea what to do now.

    Please help.

    -Domenic

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Syntax error after editing configure.php

    Post your includes/configure without your password and ***out your admin directory name.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Syntax error after editing configure.php

    <?php
    /**
    * @package Configuration Settings circa 1.3.9
    * @copyright Copyright 2003-2010 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * File Built by zc_install on 2011-02-06 09:51:20
    */


    /*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/
    /*************** The 2 files should be kept separate and not used to overwrite each other. ***********/

    // Define the webserver and path parameters
    // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
    // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
    define('HTTP_SERVER', 'http://ironsidecomputers.com');
    define('HTTPS_SERVER', 'https://ironsidecomputers.com');

    // Use secure webserver for checkout procedure?
    define('ENABLE_SSL', 'false');

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    define('DIR_WS_PHPBB', '/');

    // * DIR_FS_* = Filesystem directories (local/physical)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/
    define('DIR_FS_CATALOG', '/home/REMOVED/public_html/');

    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
    define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', '/');
    define('DB_SERVER', 'REMOVED');
    define('DB_SERVER_USERNAME', 'REMOVED');
    define('DB_SERVER_PASSWORD', 'REMOVED');
    define('DB_DATABASE', 'REMOVED');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

    // The next 2 "defines" are for SQL cache support.
    // For SQL_CACHE_METHOD, you can select from: none, database, or file
    // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
    // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
    // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/REMOVED/public_html/cache/');

    // EOF

    ######################################################################___

    If I failed to remove anything private please notify me immediately.
    Last edited by domenic; 4 Mar 2011 at 05:25 AM.

  4. #4
    Join Date
    Oct 2010
    Posts
    27
    Plugin Contributions
    0

    Default Re: Syntax error after editing configure.php

    the define('DB_PREFIX', '/'); can not be like this must be zen_ or anything ele.

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Syntax error after editing configure.php

    Or.........if your database doesn't have a prefix, then leave it blank like:

    define('DB_PREFIX', '');

    Also,

    / ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
    define('SQL_CACHE_METHOD', 'none');
    define('DIR_FS_SQL_CACHE', '/home/REMOVED/public_html/cache/');
    Last edited by Get Em Fast; 4 Mar 2011 at 12:29 PM.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  6. #6
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Syntax error after editing configure.php

    I changed both things and the syntax error is now gone but I am getting a System Setup is Required page now. What is that usually a sign of?

  7. #7
    Join Date
    Mar 2011
    Posts
    4
    Plugin Contributions
    0

    Default Re: Syntax error after editing configure.php

    Nevermind I figured it out thankyou.

 

 

Similar Threads

  1. 0 DB_ERROR_NOT_CONNECTED after editing configure.php
    By michaelchu in forum Basic Configuration
    Replies: 7
    Last Post: 21 Nov 2014, 08:02 PM
  2. HTTP500 error after editing meta_tags.php
    By mi16chap in forum General Questions
    Replies: 1
    Last Post: 18 Oct 2011, 12:19 PM
  3. blank page after editing the 2 configure.php files
    By jpmill1953 in forum General Questions
    Replies: 4
    Last Post: 12 Apr 2010, 08:03 PM
  4. Urgent help required.. Website all blank after editing configure.php to add SSL
    By hamid84 in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 24 Mar 2010, 12:02 AM
  5. Editing configure.php after install
    By msmith1111 in forum General Questions
    Replies: 2
    Last Post: 14 Nov 2006, 11:30 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