Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 40
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,414
    Plugin Contributions
    94

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

  2. #12
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default 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

  3. #13
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default 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

  4. #14
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,414
    Plugin Contributions
    94

    Default Re: Which config file has info in it?

    Quote Originally Posted by motherwestwind View Post
    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/

  5. #15
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Which config file has info in it?

    Quote Originally Posted by lat9 View Post
    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?

  6. #16
    Join Date
    Apr 2014
    Posts
    154
    Plugin Contributions
    0

    Default Re: Which config file has info in it?

    Quote Originally Posted by motherwestwind View Post
    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.

  7. #17
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default Re: Which config file has info in it?

    Quote Originally Posted by yaritai View Post
    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

  8. #18
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default 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?

  9. #19
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,414
    Plugin Contributions
    94

    Default 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!

  10. #20
    Join Date
    Jan 2014
    Location
    USA
    Posts
    75
    Plugin Contributions
    0

    Default 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

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. v139a Which .php file has the homepage information?
    By hhalliburton in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 Mar 2012, 06:20 PM
  2. which file inserts customer info in DB?
    By g_force in forum Managing Customers and Orders
    Replies: 6
    Last Post: 12 Feb 2010, 08:11 PM
  3. Which file to edit site footer copyright text info ?
    By hara in forum General Questions
    Replies: 1
    Last Post: 9 Nov 2009, 05:48 PM
  4. my main page which file has...
    By ewalker3 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Sep 2007, 03:27 AM

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