Thread: T_string??????

Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default T_string??????

    Now i have move my site on true server and i have to put some changes in configure.php(include and admin). Because i am an amater it does not work, of course !!!!!

    On my web page I got this message:

    Parse error: syntax error, unexpected T_STRING in /domains/my web page/public_html/includes/configure.php on line 18.

    Can somebody help me , because I don know were I have made mistake???

    Sorry on my english, I am from Slovenia.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: T_string??????

    Please post your configure.php file contents here, without the password.
    .
    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
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: T_string??????

    Quote Originally Posted by DrByte View Post
    Please post your configure.php file contents here, without the password.
    OK DrByte!
    PHP Code:
    <?php
    /**
     *
     * @package Configuration Settings
     * @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
     */


    /*************** 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, [url]http://www.yourdomain.com[/url]
      // HTTPS_SERVER is your Secure webserver: eg, [url]https://www.yourdomain.com[/url]
      
    define('HTTP_SERVER''http://localhost');
      
    define('HTTPS_SERVER''https://localhost');

      
    // 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/store/
      
    define('DIR_FS_CATALOG''C:/Program Files/xampp/htdocs/');

      
    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''localhost');
      
    define('DB_SERVER_USERNAME''xxxx');
      
    define('DB_SERVER_PASSWORD''xxxxxxxx');
      
    define('DB_DATABASE''xxxxxx');
      
    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''none'); 
      
    define('DIR_FS_SQL_CACHE''C:/Program Files/xampp/htdocs/cache');

    ?>
    I hope I have post it well.

    Thanks DrByte

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: T_string??????

    The file you posted is not the one that was generating the error message.

    You said your error message came from a file at /domains/my web page/public_html/includes/configure.php on line 18.

    But the file you posted appears to be from your C: drive in a xampp folder.
    .
    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.

  5. #5
    Join Date
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: T_string??????

    Quote Originally Posted by DrByte View Post
    The file you posted is not the one that was generating the error message.

    You said your error message came from a file at /domains/my web page/public_html/includes/configure.php on line 18.

    But the file you posted appears to be from your C: drive in a xampp folder.
    Sorry DrByte my mistake, I hope this is the right one:



    <?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 "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.sport-danilo.si
    // HTTPS_SERVER is your Secure webserver: eg, https://www.sport-danilo.si
    define('HTTP_SERVER', 'http://www.sport-danilo.si'/');
    define('HTTPS_SERVER', 'https://'/');

    // 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', 'domains/sport-danilo.si/public_html/includes'/');
    define('DIR_WS_HTTPS_CATALOG', 'domains/sport-danilo.si/public_html/includes'/');

    define('DIR_WS_IMAGES', '/home/olinla01/domains/sport-danilo.si/public_html/images'/');
    define('DIR_WS_INCLUDES', '/home/olinla01/domains/sport-danilo.si/public_html/includes'/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'domains/sport-danilo.si/public_html/includes/functions'/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/classes'/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/modules'/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/languages'/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . '/home/olinla01/domains/sport-danilo.si/public_html/pub'/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/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/store/
    define('DIR_FS_CATALOG', '/var/www/vhost/home/olinla01/domains/sport-danilo.si/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', 'localhost');
    define('DB_SERVER_USERNAME', 'xxx');
    define('DB_SERVER_PASSWORD', 'xxxxxx');
    define('DB_DATABASE', 'xxxxxx');
    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', 'none');
    define('DIR_FS_SQL_CACHE', '/home/olinla01/domains/sport-danilo.si/public_html/cache');

    ?>


    I hope you are still prepare to help me.

    Thanks again
    Aljosa

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: T_string??????

    Quote Originally Posted by aljosa View Post
    define('HTTP_SERVER', 'http://www.sport-danilo.si'/');
    define('HTTPS_SERVER', 'https://'/');

    define('DIR_WS_CATALOG', 'domains/sport-danilo.si/public_html/includes'/');
    define('DIR_WS_HTTPS_CATALOG', 'domains/sport-danilo.si/public_html/includes'/');

    define('DIR_WS_IMAGES', '/home/olinla01/domains/sport-danilo.si/public_html/images'/');
    define('DIR_WS_INCLUDES', '/home/olinla01/domains/sport-danilo.si/public_html/includes'/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'domains/sport-danilo.si/public_html/includes/functions'/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/classes'/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/modules'/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/languages'/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . '/home/olinla01/domains/sport-danilo.si/public_html/pub'/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . '/home/olinla01/domains/sport-danilo.si/public_html/includes/templates'/');
    You've added ' marks before the end of most of your paths.
    In fact, you've put bad information in most of those values. Why did you add the /home/olinla01/domains/sport-danilo.si/public_html/ part into all of those paths? You didn't need to.

    You'd be better off starting with a fresh install to build the correct configure.php files for your live server. So, do a database backup. Then run http://sport-danilo.si/zc_install to rebuild your configure.php files correctly, and then do a database restore again.

    Related FAQs: https://www.zen-cart.com/tutorials/i...hp?article=100
    or https://www.zen-cart.com/tutorials/index.php?article=99
    .
    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.

  7. #7
    Join Date
    Nov 2007
    Posts
    30
    Plugin Contributions
    0

    Default Re: T_string??????

    DrByte thanks for your help, It works, but I have still a lot of work to do. As I have sad, I am an amater and the things I have larned I have learned from you and other Zen Cart forum members. Your instructions was very helpful.

    Thanks again
    Aljosa

    This is the link from my webshop: www.sport-danilo.si

 

 

Similar Threads

  1. unexpected T_STRING in class.zcConfigureFileReader.php
    By Julian Oliva CB in forum Installing on a Windows Server
    Replies: 19
    Last Post: 13 Jul 2016, 04:57 PM
  2. unexpected T_STRING error in create_account.php
    By LadyHLG in forum General Questions
    Replies: 0
    Last Post: 13 Mar 2007, 05:05 AM
  3. Unexpected T_STRING
    By Brenda in forum General Questions
    Replies: 3
    Last Post: 9 Oct 2006, 05:28 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