-
Which config file has info in it?
ZC 1.51
I'm stuck in a big one.
I uploaded a new template, Dover responsive design to my existing site to see how everything looked and all hell broke loose. I lost my front door to both admin and store and I can't seem to get it back!
Right now I'm thinking it's the config file but I don't know if both are supposed to have info or just the one in the admin folder.
Please help.
Beth
www.smockingbooks.com/bookstore (supposed to be)
-
Re: Which config file has info in it?
Template installations, especially ones from a well-respected contributor like picaflor-azul, don't mess with your configuration.php files. Since accessing your store results in a whitepage, you should check your /logs folder for files named myDEBUG*.log; they'll have information about the source of the error and put you on the path to correcting your issue.
You could post the contents of one of those files here, using the code tags (the # symbol in the toolbar when you're adding the post). Make sure to xxx-out your admin-folder's name if the log was generated during the admin operation (it's name will include the characters -adm).
-
Re: Which config file has info in it?
Quote:
Originally Posted by
lat9
Template installations, especially ones from a well-respected contributor like picaflor-azul, don't mess with your configuration.php files. Since accessing your store results in a whitepage, you should check your /logs folder for files named myDEBUG*.log; they'll have information about the source of the error and put you on the path to correcting your issue.
You could post the contents of one of those files here, using the code tags (the # symbol in the toolbar when you're adding the post). Make sure to xxx-out your admin-folder's name if the log was generated during the admin operation (it's name will include the characters -adm).
I did all of that, which is why I saw that it was a flaw in the Dover template that caused the problem - split screen ... but after taking out the offending file I still have white screen and no access to the site nor do my customers. Nor am I getting and log files saying something is wrong.
-
Re: Which config file has info in it?
back to the initial question, which config file has the configuration info - both or only the one in the admin folder?
-
Re: Which config file has info in it?
Store-side: /includes/configure.php
Admin: /YOUR_ADMIN/includes/configure.php
-
Re: Which config file has info in it?
ok so both files should be identical?
Pardon my posting of the whole file but here is the first config file data
<?php
/**
* dist-configure.php
*
* @package Configuration Settings
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: DrByte Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
* @private
*/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
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/');
// * 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', '/');
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', ''); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
// 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', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
-
Re: Which config file has info in it?
and here is my admin config file - weird it's lost the info it had.
<?php
/**
* dist-configure.php
*
* @package Configuration Settings
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: DrByte Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
* @private
*/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
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/');
// * 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', '/');
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', ''); // prefix for database table names -- preferred to be left empty
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
// 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', '/enter/your/path/to/public_html_or_htdocs/and/zencart/here/zen/cache');
-
Re: Which config file has info in it?
Scratch the two previous posts - I tried to delete but couldn't.
Here's my store config file
<?php
/**
* @package Configuration Settings circa 1.5.1
* @copyright Copyright 2003-2012 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 2013-09-23 07:50:31
*/
/*************** 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://smockingbooks.com');
define('HTTPS_SERVER', 'https://smockingbooks.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', '/bookstore/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
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', '... public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '... /public_html/bookstore/logs');
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', 'zen_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisiscorrect');
define('DB_SERVER_PASSWORD', 'iwillnevertell');
define('DB_DATABASE', 'thisiscorrect');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
// EOF
-
Re: Which config file has info in it?
Here is my admin/includes config
<?php
/**
* @package Configuration Settings circa 1.5.1
* @copyright Copyright 2003-2012 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 2013-09-23 07:50:31
*/
/*************** 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. ***********/
/**
* WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
* To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
*/
define('HTTP_SERVER', 'http://smockingbooks.com');
define('HTTPS_SERVER', 'https://smockingbooks.com');
define('HTTP_CATALOG_SERVER', 'http://smockingbooks.com');
define('HTTPS_CATALOG_SERVER', 'https://smockingbooks.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'false');
// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', '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)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/bookstore/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
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)
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '.../public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '.../public_html/bookstore/logs');
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_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisisright');
define('DB_SERVER_PASSWORD', 'Iwillnevertell');
define('DB_DATABASE', 'thisisright');
// 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', '.../public_html/bookstore/cache');
// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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
*/
// EOF
-
Re: Which config file has info in it?
This section doesn't look correct:
Code:
// * 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', '... public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '... /public_html/bookstore/logs');
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', 'zen_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisiscorrect');
define('DB_SERVER_PASSWORD', 'iwillnevertell');
define('DB_DATABASE', 'thisiscorrect');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
Try making the changes in red and verifying the settings in yellow:
Code:
// * 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', '/home2/nickhyde/public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home2/nickhyde/public_html/bookstore/logs');
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', 'zen_');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisiscorrect');
define('DB_SERVER_PASSWORD', 'iwillnevertell');
define('DB_DATABASE', 'thisiscorrect');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
-
Re: Which config file has info in it?
This one, too, doesn't seem to have the correct file-system settings:
Code:
// * DIR_FS_* = Filesystem directories (local/physical)
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '.../public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '.../public_html/bookstore/logs');
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_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisisright');
define('DB_SERVER_PASSWORD', 'Iwillnevertell');
define('DB_DATABASE', 'thisisright');
// 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', '.../public_html/bookstore/cache');
Based on the posting for your store-side file, try making the changes highlighted in red:
Code:
// * DIR_FS_* = Filesystem directories (local/physical)
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home2/nickhyde/public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home2/nickhyde/public_html/bookstore/logs');
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_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'thisisright');
define('DB_SERVER_PASSWORD', 'Iwillnevertell');
define('DB_DATABASE', 'thisisright');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
-
Re: Which config file has info in it?
All of the changes suggested have been made. I took all the pieces of Dover out of my system and reviewed the base cart to what I had in FTP land and added in some necessary parts (not sure why they got lost). I now have lost the white page to be replaced with the following statement on my admin login:
WARNING: An Error occurred, please refresh the page and try again.
Now on the store page I get the nddbc.html page which states a problem connecting to the database.
so it's now a database connection problem. I think I will try to switch a user ploy
-
Re: Which config file has info in it?
Now the log message states:
[29-Jun-2014 17:09:26 America/Denver] PHP Warning: require_once(includes/languages/english/header.php): failed to open stream: No such file or directory in /home2/nickhyde/public_html/bookstore/hardwork/includes/languages/english.php on line 635
[29-Jun-2014 17:09:26 America/Denver] PHP Fatal error: require_once(): Failed opening required 'includes/languages/english/header.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home2/nickhyde/public_html/bookstore/hardwork/includes/languages/english.php on line 635
but I checked and it's there
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
Now the log message states:
[29-Jun-2014 17:09:26 America/Denver] PHP Warning: require_once(includes/languages/english/header.php): failed to open stream: No such file or directory in /home2/nickhyde/public_html/bookstore/hardwork/includes/languages/english.php on line 635
[29-Jun-2014 17:09:26 America/Denver] PHP Fatal error: require_once(): Failed opening required 'includes/languages/english/header.php' (include_path='.:/usr/php/54/usr/lib64:/usr/php/54/usr/share/pear') in /home2/nickhyde/public_html/bookstore/hardwork/includes/languages/english.php on line 635
but I checked and it's there
Have you specified your DIR_FS_CATALOG directory to be
/home2/nickhyde/public_html/bookstore/hardwork/
or
/home2/nickhyde/public_html/bookstore/
-
Re: Which config file has info in it?
Quote:
Originally Posted by
lat9
Have you specified your DIR_FS_CATALOG directory to be
/home2/nickhyde/public_html/bookstore/hardwork/
or
/home2/nickhyde/public_html/bookstore/
define(DIR_WS_CATALOG', '/bookstore/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
is this wrong?
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
define(DIR_WS_CATALOG', '/bookstore/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
is this wrong?
Pay close attention to what is being recommended to look at. Its the "FS" part you want NOT the "WS" defines. I think better yet, repost the config files that you have changed with the previous recommendations. This way part of the variables can be eliminated that may be causing the issues.
-
Re: Which config file has info in it?
Quote:
Originally Posted by
yaritai
Pay close attention to what is being recommended to look at. Its the "FS" part you want NOT the "WS" defines. I think better yet, repost the config files that you have changed with the previous recommendations. This way part of the variables can be eliminated that may be causing the issues.
Ok. Everything is all skewy again with database access now with PHP MyAdmin. I was checking to see if my files were still and now I can't get in to review. Geez luize what's happening?
Panic over, determination setting in. Here are the two config files:
Store:
<?php
/**
* dist-configure.php
*
* @package Configuration Settings
* @copyright Copyright 2003-2012 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version GIT: $Id: Author: DrByte Tue Jul 31 17:24:25 2012 -0400 Modified in v1.5.1 $
* @private
*/
// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg-http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.yourdomain.com
define('HTTP_SERVER', 'http://smockingbooks.com');
define('HTTPS_SERVER', 'https://smockingbooks.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', '/bookstore/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
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/');
// * 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', '/home2/nickhyde/public_html/bookstore/');
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', '_zen');
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'same');
define('DB_SERVER_PASSWORD', 'correct');
define('DB_DATABASE', 'Iknow');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
Admin/Includes:
<?php
/**
* @package Configuration Settings circa 1.5.1
* @copyright Copyright 2003-2012 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 2013-09-23 07:50:31
*/
/*************** 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. ***********/
/**
* WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
* To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
*/
define('HTTP_SERVER', 'http://smockingbooks.com');
define('HTTPS_SERVER', 'https://smockingbooks.com');
define('HTTP_CATALOG_SERVER', 'http://smockingbooks.com');
define('HTTPS_CATALOG_SERVER', 'https://smockingbooks.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_ADMIN', 'false');
// secure webserver for storefront? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL_CATALOG', '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)
$t1 = parse_url(HTTP_SERVER);$p1 = $t1['path'];$t2 = parse_url(HTTPS_SERVER);$p2 = $t2['path'];
define('DIR_WS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p1) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_CATALOG', '/bookstore/');
define('DIR_WS_HTTPS_ADMIN', preg_replace('#^' . str_replace('-', '\-', $p2) . '#', '', dirname($_SERVER['SCRIPT_NAME'])) . '/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
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)
define('DIR_FS_ADMIN', realpath(dirname(__FILE__) . '/../') . '/');
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/home2/nickhyde/public_html/bookstore/');
//the following path is a COMPLETE path to the /logs/ folder eg: /var/www/vhost/accountname/public_html/store/logs ... and no trailing slash
define('DIR_FS_LOGS', '/home2/nickhyde/public_html/bookstore/logs');
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'); (this was zen_ and so I thought that might be the problem
define('DB_CHARSET', 'utf8');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'same');
define('DB_SERVER_PASSWORD', 'correct');
define('DB_DATABASE', 'Iknow');
// 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', '/home2/nickhyde/public_html/bookstore/cache');
// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.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
*/
// EOF
-
Re: Which config file has info in it?
I changed the password and almost can connect to my admin panel as I got this message instead of a white screen WARNING: An Error occurred, please refresh the page and try again. At least it's a start, change is good right?
-
Re: Which config file has info in it?
Yes, it's a start. Now, look in your /logs directory for myDEBUG*.log files that will identify the details of the error. When posting the contents of a file that includes -adm in its name, make sure that you obfuscate the admin-folder name!
-
Re: Which config file has info in it?
[01-Jul-2014 07:07:30 America/Denver] PHP Fatal error: 1146:Table 'nickhyde_zen1._zendb_cache' doesn't exist :: delete from _zendb_cache in /home2/nickhyde/public_html/bookstore/includes/classes/db/mysql/query_factory.php on line 120
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
[01-Jul-2014 07:07:30 America/Denver] PHP Fatal error: 1146:Table 'nickhyde_zen1._zendb_cache' doesn't exist :: delete from _zendb_cache in /home2/nickhyde/public_html/bookstore/includes/classes/db/mysql/query_factory.php on line 120
There is something amiss with your DB settings.
In a previous post you stated
"define('DB_PREFIX', '_zen'); (this was zen_ and so I thought that might be the problem)"
I can't tell you with absolute certainty what your DB_PREFIX should be, but I can tell you that it *shouldn't* be "_zen"
Furthermore, this current error log is suggesting that you now have the DB_PREFIX set to "nickhyde_zen1._zendb", which is probably also incorrect.
What I'd suggest is that you log into your cPanel (not Zencart) and click on the 'MySQL databases' icon. This will show you the names of your database(s), they'll look something like
zendb_zencart
zen1_zencart
zen_zencart or perhaps even
zencart (no prefix).
Once you've determined this,d you'll need to set the DB_PREFIX setting (in both configure.php fileds) to
define('DB_PREFIX', 'zendb_')
define('DB_PREFIX', 'zen1_')
define('DB_PREFIX', 'zen_') or
define('DB_PREFIX', '')
Cheers
RodG
ps. make sure the configure files are writable before making the changes.
-
Re: Which config file has info in it?
I can't tell what the prefix of the database is. All I see is my user name and the names of the DB's. Where do I look on the control panel?
-
Re: Which config file has info in it?
my host said the correct prefix is zen_ but the same problem occurred. Could it be that the template that broke the form is still in control in the admin panel and everything is searching for the folders?
-
Re: Which config file has info in it?
My host brought me back to my admin screen through some magic trick. Now I'm working on everything again. Thank you so much for your help.
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
My host brought me back to my admin screen through some magic trick. Now I'm working on everything again. Thank you so much for your help.
I spoke too soon. While my admin login is there I can't log in. Still there's a problem connecting to the database. Is there anything else besides the configure files that affects the connection?
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
ok so both files should be identical?
No. They say right inside them that while they're very similar, they are NOT identical.
Quote:
Originally Posted by
motherwestwind
I spoke too soon. While my admin login is there I can't log in. Still there's a problem connecting to the database. Is there anything else besides the configure files that affects the connection?
The ONLY place where original Zen Cart code deals with database connection settings is the two configure.php files.
What about your daily and weekly backups of your site? Can you restore those 2 files from backup?
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
/ * 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', '/bookstore/');
define('DIR_WS_HTTPS_CATALOG', '/bookstore/');
define('DIR_WS_IMAGES', 'images/');
Well, I guess this counts as a message worthy to be my 2000th. After all the others have reviewed what is and is not in the configure.php files, did no one catch the missing apostrophe? (') It was posted in a message on it's own before, then included in a "copy" of the entire file. I'll be honest, I stopped looking through the file once I saw this and checked the rest of the messages to see if it was reported. Nope...
So in your store's includes/configure.php the line that includes
Code:
define(DIR_WS_CATALOG', '/bookstore/');
should read:
Code:
define('DIR_WS_CATALOG', '/bookstore/');
in my mobile phone I don't know how to force it to be highlighted, sorry.
Hopefully this helps.
-
Re: Which config file has info in it?
Quote:
Originally Posted by
mc12345678
did no one catch the missing apostrophe? (')
Yeah, but that's only one character out of several thousand. What harm could it do. :-) :-) :-)
Cheers
RodG
-
Re: Which config file has info in it?
Quote:
Originally Posted by
RodG
Yeah, but that's only one character out of several thousand. What harm could it do. :-) :-) :-)
Cheers
RodG
Famous last words, right? :)
Hey Mom, watch this!
Sorrycame on a little strong with the statement. And yeah it could be juat one missing character of an unknown number of them, too. Like I said I stopped my review when I got to that missing character. Have to wait to hear the result. :)
-
Re: Which config file has info in it?
Quote:
Originally Posted by
mc12345678
Well, I guess this counts as a message worthy to be my 2000th. After all the others have reviewed what is and is not in the configure.php files, did no one catch the missing apostrophe? (') It was posted in a message on it's own before, then included in a "copy" of the entire file. I'll be honest, I stopped looking through the file once I saw this and checked the rest of the messages to see if it was reported. Nope...
So in your store's includes/configure.php the line that includes
Code:
define(DIR_WS_CATALOG', '/bookstore/');
should read:
Code:
define('DIR_WS_CATALOG', '/bookstore/');
in my mobile phone I don't know how to force it to be highlighted, sorry.
Hopefully this helps.
I changed it but it didn't help but thanks it got me to look once again at the files to determine the differences and I found that through everything back and forth yadiyadiyada that the pathway of the admin config was different than the store config so joyously I changed it but that didn't fix the problem. However I am becoming more familiar with the files so I guess this is the whole purpose of errors.
Beth
-
Re: Which config file has info in it?
Thank you for jumping in here Dr. Byte, perhaps you are the only one who can help me figure this conumdrum out (oh Sensei).
My site is a fresh install of an old website built in 1.38a that worked beautifully for years until the php upgrade on my server (bad server: went from wonderful French Canadians to the Ukraine and lost the incredibly customer service in the process). That ruined my business and the the Paypal stuff and well oh my oy vey and all that. Meanwhile I realized that the mismash of my old site could have been fixed with a good company but saw the writing on the wall and created a brand new site with 1.51 on a different server and added in products one by one. (Yes, yes, yes the hard way but this former Mac veteran girl has been struggling learning the workings of a PC without proper educational resources on hand, but that's changing with Lynda.com.)
On this new 1.51 version of my site, on the right server with the correct php in place I brought it back to beauty and near functionality when I thought to experiment with responsive design. I added the template Dover (lovely look) flipped the switch to see and then all hell broke loose. I lost my connection to my database and spent a week or 3 trying to get it back. It's almost there but now I've losing confidence in the security of the whole thing.
Where I am at now is stuck. I seem to have access to only half of my database as I can only go a certain level down into specific categories and then nothing.
The site is www.smockingbooks.com/bookstore
If you could point me in the right direction to understand the way the command paths are controlled I might be able to see how this cart works.
Also are there any php code valdiator programs you would recommend?
Beth, a grateful follower of your wisdom
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
I changed it but it didn't help but thanks it got me to look once again at the files to determine the differences and I found that through everything back and forth yadiyadiyada that the pathway of the admin config was different than the store config so joyously I changed it but that didn't fix the problem. However I am becoming more familiar with the files so I guess this is the whole purpose of errors.
Beth
When you said the pathways were different and you made a change, could you elaborate? Two things come to mind withe that statement. One is that you changed the way paths are auto-created based on the location of the configure.php file. The other is that the file paths that are hard coded did not in agreement with the same listing(s) in the store's configure.php.
As for php validation and other such programs. I know Dr. Byte has posted some macintosh applicable programs. I personally use netbeans on a pc which will catch things like a missing semi-colon, unmatched quotes, incomplete tags (if not hidden in echo like statements), etc... There are other programs out there. Netbeans is free which is one reason I use it and it covers more than just php.
-
Re: Which config file has info in it?
Quote:
Originally Posted by
mc12345678
When you said the pathways were different and you made a change, could you elaborate? Two things come to mind withe that statement. One is that you changed the way paths are auto-created based on the location of the configure.php file. The other is that the file paths that are hard coded did not in agreement with the same listing(s) in the store's configure.php.
Not sure what you mean by hard coded. Each config file was pointing to a different user and password, that's what I changed unless they are meant to be different. After the change to make them identical I checked and still no connection to the 2nd layer of categories.
-
Re: Which config file has info in it?
I'm not sure what you meant by "2nd level" stuff. But, when I navigate Appliques to Ellen to Fall/Halloween I get a partial blank page. That means PHP is encountering an error, and you need to look at the /logs/myDebug-xxxxxxxx.log files to see what the actual recorded errors are.
(PHP errors are not displayed to the screen, because hackers abuse that information to gain unauthorized information about your site.)
Also, the same blank page problem happens when visiting index.php?main_page=products_new
More on the blank page thing: http://www.zen-cart.com/content.php?124-blank-page
-
Re: Which config file has info in it?
Ok understood about the hackers but still us novice php coders need some assistance.
I found this error
[06-Jul-2014 16:20:07] PHP Fatal error: Class 'splitPageResults' not found in /home2/nickhyde/public_html/bookstore/includes/modules/bristol_lace/product_listing.php on line 30
splitpageresults is NOT part of Bristol Lace package but rather it's part of the Dover Template I have been trying to purge out of my coding. I know that the designer keeps saying nit's something I did but I didn't TOUCH any page other than the configure files.
How do i get rid of this call for split page results?
-
Re: Which config file has info in it?
Ok I see the warning about ftp programs. I have been using Firefox's fireftp to upload but it could be there's a problem with the browser as Paypal has trouble signing in with it. I've downloaded filezilla and will heed the warning about the passwords.
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
Ok understood about the hackers but still us novice php coders need some assistance.
I found this error
[06-Jul-2014 16:20:07] PHP Fatal error: Class 'splitPageResults' not found in /home2/nickhyde/public_html/bookstore/includes/modules/bristol_lace/product_listing.php on line 30
splitpageresults is NOT part of Bristol Lace package but rather it's part of the Dover Template I have been trying to purge out of my coding. I know that the designer keeps saying nit's something I did but I didn't TOUCH any page other than the configure files.
How do i get rid of this call for split page results?
May I suggest you try to do one thing at a time.
If you are trying to remove a template, just because it had a file associated with it, does not mean that the file needs to be removed, nor does it mean it should stay. Sometimes a file that was already part of the core gets modified, or perhaps the file was needed for something else.
It also sounds like since you had two different databases being referenced (one from the store side and one from the admin side) that there could be errors in categories/products that have been updated on one database or the other. As Dr. Byte suggested, you may have to clarify what it is that you are seeing. Please remember we can not see all that you can. This is also why I asked about the change in pathways. The response was completely different than expected and what seemed to be described. Thank you for clarifying that issue.
Again, please try to address one thing at a time, they are often unrelated issues but may have a common starting point. You've identified a change in ftp programs, that may fix a lot of your issues, though that remains to be seen. If you are still in the process of removing a template or other code, then finish that before trying to see what else is not working.
Worst case you could rebuild the files of your cart and continue using your database as is. Also, if you haven't considered it yet, should create a development site where you can make all the changes you want without recourse or lost operations time. Basically it is a copy of all your files and as necessary some data to allow display of desired data.
-
Re: Which config file has info in it?
I tried to install a 2nd cart in a different folder but the site wouldn't let me do it.
Only one database. What needed correcting was the user name and password, that is what I changed to match. Still no fix.
I wrote to the designer of Bristol Lace regarding the error log which shows that the Dover file split page is still functioning even though I deleted EVERY Dover file. I was told to read the readme file to fix the problem. The read me file just stated the following:
<<Remove all files in the template package.
Restore your back ups of the core overwrite files.>>
I took out all of the files but now I'm stuck again. What are the core overwrite files?
-
Re: Which config file has info in it?
Quote:
Originally Posted by
motherwestwind
I tried to install a 2nd cart in a different folder but the site wouldn't let me do it.
Only one database. What needed correcting was the user name and password, that is what I changed to match. Still no fix.
I wrote to the designer of Bristol Lace regarding the error log which shows that the Dover file split page is still functioning even though I deleted EVERY Dover file. I was told to read the readme file to fix the problem. The read me file just stated the following:
<<Remove all files in the template package.
Restore your back ups of the core overwrite files.>>
I took out all of the files but now I'm stuck again. What are the core overwrite files?
Lets focus on 1 thing only the split page function that is being called. I know that in picaflors templates she has 2 things that modify the calls to the split page results:
1) In the product_listing.php the call to split page class is modified to work with Columns. So the call in that file is changed from NORMAL zencart files.
2) In the classes/split_page_results.php it is modified to show an extra page navigation to view all and view less.
So to get rid of it completely, check to make sure that you are not running the modified versions of the template. So check those 2 files above to make sure you reverted back to the files BEFORE the template was installed. If you do not have a backup then just use the stock ZC version files, assuming that you had never touched those before.
-
Re: Which config file has info in it?
Thank you all for your assistance, everything is ok now. I wrote to the designer of my template to question certain things and was chastised for not reading the installation and uninstallation instructions for her template. I thought I had caught all the files but the tri-focals aren't working as they should ... now everything is back to normal and I'm changing my name from Sisyphus back to Beth.