Zen Cart Logo
Forums / General Questions / config.php file displayed on site

config.php file displayed on site

Locked

Views: 1,283

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 Aug 2007, 7:42 AM
#1
paws4pets avatar

paws4pets

New Zenner

Join Date:
Aug 2007
Posts:
12
Plugin Contributions:
0

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\sessions.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\sessions.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?

5 Aug 2007, 9:00 AM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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

5 Aug 2007, 10:33 AM
#3
paws4pets avatar

paws4pets

New Zenner

Join Date:
Aug 2007
Posts:
12
Plugin Contributions:
0

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

5 Aug 2007, 11:31 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

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?

5 Aug 2007, 11:41 AM
#5
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

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.