Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2007
    Posts
    12
    Plugin Contributions
    0

    help question config.php file displayed on site

    hi,

    just installed, tweaking settings on site and found that when I visit the site i get this at the top:

    ); 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', '213.171.219.90'); define('DB_SERVER_USERNAME', 'm*****'); define('DB_SERVER_PASSWORD', 'm*******'); define('DB_DATABASE', 'P*******'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // 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', '//nas30ent/domains/p/paws4pets.co.uk/user/htdocs/zencart/cache'); ?>
    Warning: session_start(): Cannot send session cookie - headers already sent by (output started at \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\configure.php: 77) in \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\functions\sess ions.php on line 108

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\configure.php: 77) in \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\functions\sess ions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\configure.php: 77) in \\nas30ent\domains\p\paws4pets.co.uk\user\htdocs\zencart\includes\init_includes\ init_templates.php on line 78

    Can anybody help me?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: config.php file displayed on site

    This suggests a typo in your admin/includes/configure.php file. Can you post the lines that you have equivalent to the following
    // * 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', '/admin/');
    define('DIR_FS_CATALOG', '/');

    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/');
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Aug 2007
    Posts
    12
    Plugin Contributions
    0

    Default Re: config.php file displayed on site

    yes this is it

    // * 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', '//nas30ent/domains/p/paws4pets.co.uk/user/htdocs/zencart/admin/');
    define('DIR_FS_CATALOG', '//nas30ent/domains/p/paws4pets.co.uk/user/htdocs/zencart/');

    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/');

  4. #4
    Join Date
    Feb 2006
    Location
    Chicago
    Posts
    1,162
    Plugin Contributions
    0

    Default Re: config.php file displayed on site

    It looks fine

    Can you post the entire admin/includes/configure.php (plz remove the passwords)here enclosing it in [CODE] tags?
    Tutorials on Zen Cart
    http://tutorials.zen-cart.com/index.php
    ---------------
    advanced.programmer at gmail dot com
    In love with Zen Cart!!

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: config.php file displayed on site

    OK. We're heading down a blind alley.

    If I go to your site (not currently a Zen Cart) and highlight the text hidden in the big black space at the top, I see that your existing site has a similar problem, i.e. dumps a load of code in another programming language (possibly ASP).

    This is a problem with how your hosting account is working and treating applications, and would best be tackled with your web host.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Where to Change the config.php file to point to new downloads folder?
    By jackibar in forum Templates, Stylesheets, Page Layout
    Replies: 73
    Last Post: 22 Dec 2011, 07:17 AM
  2. editing config.php file
    By pqhancock in forum Installing on a Windows Server
    Replies: 1
    Last Post: 22 Apr 2011, 11:27 PM
  3. no config.php included in latest zip file?
    By hostinz in forum Installing on a Windows Server
    Replies: 2
    Last Post: 12 Mar 2007, 09:47 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