Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Can't access Admin site

    I get the following error message when I open the login page of the Admin site:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /services/webpages/t/h/thehomebrewcompany.ie/public/admin/includes/configure.php on line 77


    What do I need to do to fix this?

  2. #2
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    Here is the contents of the file in which the error has occured:



    <?php
    //
    /**
    *
    * @package Configuration Settings
    * @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
    */


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

    // Define the webserver and path parameters
    // Main webserver: eg, http://localhost - should not be empty for productive servers
    // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    // HTTP_CATALOG_SERVER is your Main webserver: eg, http://www.yourdomain.com
    // HTTPS_CATALOG_SERVER is your Secure webserver: eg, https://www.yourdomain.com
    /*
    * URLs for your site will be built via:
    * HTTP_SERVER plus DIR_WS_ADMIN or
    * HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or
    * HTTP_SERVER plus DIR_WS_CATALOG or
    * HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    * ...depending on your system configuration settings
    */
    define('HTTP_SERVER', 'http://xxxxxxxxxxxxxxxxxxxxxx');
    define('HTTPS_SERVER', 'https://xxxxxxxxxxxxxxxxxxxxxxxx);
    define('HTTP_CATALOG_SERVER', 'http://xxxxxxxxxxxxxxxxxxxxx);
    define('HTTPS_CATALOG_SERVER', 'https://xxxxxxxxxxxxxxx);

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'false');
    define('ENABLE_SSL_ADMIN', '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_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/');

    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
    define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

    // * 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/store/
    define('DIR_FS_ADMIN', '/home/thehome/public_html/admin/');
    define('DIR_FS_CATALOG', '/home/thehome/public_html/');

    define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
    define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
    define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
    define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
    define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
    define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    // define('DB_SERVER', 'localhost');
    define('DB_SERVER','sqlc25b.carrierzone.com');
    // define('DB_SERVER
    define('DB_SERVER','sqlc25b.carrierzone.com');_USERNAME', 'zc1_xxxxxxxxxxx);
    // define('DB_SERVER
    define('DB_SERVER','sqlc25b.carrierzone.com');_PASSWORD', 'xxxxxxxxxx');
    define('DB_DATABASE', 'zc1_xxxxxxxxxxxxxxxxxx);
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // 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', 'database');
    define('DIR_FS_SQL_CACHE', '/home/thehome/public_html/cache');

    ?>

  3. #3
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    Anyone got any ideas what the problem may be?

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Can't access Admin site

    A quick glance shows you are missing what's in red.

    define('DB_SERVER','sqlc25b.carrierzone.com');_USE RNAME', 'zc1_xxxxxxxxxxx');

    Hard to see but it's this part at the very end: ');

  5. #5
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    Not that unfortunately ... I must have deleted the (') when I blanked out the username and passwords.

    The zen cart admin page has been down now for 4 days and there is something wrong with this file.

  6. #6
    Join Date
    Oct 2007
    Posts
    25
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    This problem happened when the website hosts "migrated to a new platform" as they put it and they have been of no help up to this point in trying to fix it.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Can't access Admin site

    "unexpected T_CONSTANT_ENCAPSED_STRING"

    That msg. usually refers to PHP coding not being properly closed, such as missing a quote.

    It's a shame your Hoster is no help. Did they provide you with the new 'script' paths for the Server you are on now?

  8. #8
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    The problem is at the end of the file. The section starting //define our database connection should be more like this

    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', 'zen_');
    define('DB_SERVER', sqlc25b.carrierzone.com);
    define('DB_SERVER_USERNAME', 'YOURSERVERLOGINNAME');
    define('DB_SERVER_PASSWORD', 'YOURPASSWORD');
    define('DB_DATABASE', 'YOURDATABASENAME');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    Hope this helps

  9. #9
    Join Date
    Feb 2008
    Posts
    2
    Plugin Contributions
    0

    Default Re: Can't access Admin site

    I cant log in to the admin i have the user and pass correct just keeps on loading the login area
    i have read the FAQ on the zencart web site and done everything that it says to do can anyone help me please ?

 

 

Similar Threads

  1. Site down after upgrade attemp, can't access admin section
    By tomzo in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 15 Apr 2012, 05:12 PM
  2. uploaded database now I can't access site or admin
    By Pike Promo in forum Installing on a Linux/Unix Server
    Replies: 0
    Last Post: 14 Dec 2011, 07:30 AM
  3. Can't access my site's admin section
    By Tamuren in forum General Questions
    Replies: 2
    Last Post: 22 Aug 2011, 11:34 PM
  4. Can't Access to Admin Area or login in my site ?!
    By gonebdg in forum Installing on a Windows Server
    Replies: 5
    Last Post: 22 Jul 2009, 08:01 AM
  5. Can't Access Admin Site or my zen cart store front
    By anuskin in forum General Questions
    Replies: 7
    Last Post: 8 Feb 2007, 04:07 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