Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    6
    Plugin Contributions
    0

    Default change in c panel password causing all these problems

    I'm of course having issues.

    I had problems setting up free templates via the PicAFlor-Azul website. Anne was gracious enough to set it up for a small fee. I gave her username/password info to c panel to set up. Was ready to go yesterday. Saw it looked great as advertised.

    Then I change my c panel password and all h... goes loose. My page will not come up and I can't get into my admin area. Main Page url showed this:



    I re-do password for my sql database (to old password, don't know why or if it changed) and now my admin is working, but now the Main Page is blank http://patioworldonline.com/catalog/

    Now Anne looked again and emailed me fatal error:

    [09-Sep-2012 03:27:55] PHP Fatal error: require() [<a
    href='function.require'>function.require</a>]: Failed opening required
    'DIR_WS_TEMPLATEStemplate_default/common/html_header.php'
    (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in
    /home1/patiowor/public_html/catalog/index.php on line 43

    This means that your missing the html_header.php file in the
    template_default/common directory. It looks like you have accidentally
    deleted some files? I would start by replacing this file with the one
    from the zen cart download zip file.
    Well I looked in template_default/common directory and the html_header.php is still there. Just for the heck of it I uploaded it again with the zen cart download zip file...nothing.

    So could it be that a c panel password change from my host could of caused all these problems. All my other pages are ok, just my "store" that I'm trying to create. The template worked fine until I changed my password. I did not even touch or delete any files. Serious headache. Thanks for any input....

  2. #2
    Join Date
    Apr 2012
    Location
    beijing
    Posts
    258
    Plugin Contributions
    1

    Default Re: change in c panel password causing all these problems

    first ,if you changed your host's database's password,you should also change the password at "includes/configure.php" and "admin/includes/configure.php"
    second,"Failed opening required
    'DIR_WS_TEMPLATEStemplate_default/common/html_header.php" it seems that,your "DIR_WS_TEMPLATES" 's value was set wrong at "includes/configure.php" ,not because of missing file html_header.php.
    focus on the open source for online shoping website.
    my site: best shop 24h.com

  3. #3
    Join Date
    Aug 2012
    Posts
    6
    Plugin Contributions
    0

    Default Re: change in c panel password causing all these problems

    I think I found the problem. Both my includes/configure.php file and admin/includes/configure.php were exactly the same. The php code for both was for the admin. Any way to get the "store" php for my site without having to start over. I found the "store" php script but leads me to believe that I have to define ALL the pathways where there is /n. Correct? I started, but not sure I'm doing correctly. See below:
    <?php
    /**
    * @package Installer
    * @access private
    * @copyright Copyright 2003-2011 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 $Id: store_configure.php 18695 2011-05-04 05:24:19Z drbyte $
    */

    $file_contents =
    '<'.'?php' . "\n" .
    '/**' . "\n" .
    ' * @package Configuration Settings circa 1.5.0' . "\n" .
    ' * @copyright Copyright 2003-2011 Zen Cart Development Team' . "\n" .
    ' * @copyright Portions Copyright 2003 osCommerce' . "\n" .
    ' * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0' . "\n" .
    ' * File Built by zc_install on ' . date('Y-m-d h:i:s') . "\n" .
    ' */' . "\n" .
    '' . "\n" .
    '' . "\n" .
    '' . '/*************** NOTE: This file is similar, but DIFFERENT from the "admin" version of configure.php. ***********/' . "\n" .
    '' . '/*************** The 2 files should be kept separate and not used to overwrite each other. ***********/' . "\n" .
    '' . "\n" .
    '// Define the webserver and path parameters' . "\n" .
    ' // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com' . "http://patioworldonline.com" .
    ' // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com' . "http://patioworldonline.com" .
    ' define(\'HTTP_SERVER\', \'' . $http_server . '\');' . "http://patioworldonline.com" .
    ' define(\'HTTPS_SERVER\', \'' . $https_server . '\');' . "http://patioworldonline.com" .
    ' // Use secure webserver for checkout procedure?' . "\n" .
    ' define(\'ENABLE_SSL\', \'' . $this->getConfigKey('ENABLE_SSL') . '\');' . "\n\n" .
    '// NOTE: be sure to leave the trailing \'/\' at the end of these lines if you make changes!' . "\n" .
    '// * DIR_WS_* = Webserver directories (virtual/URL)' . "\n" .
    ' // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)' . "\n" .
    ' define(\'DIR_WS_CATALOG\', \'' . $http_catalog . '\');' . "\n" .
    ' define(\'DIR_WS_HTTPS_CATALOG\', \'' . $https_catalog . '\');' . "\n\n" .
    ' define(\'DIR_WS_IMAGES\', \'images/\');' . "\n" .
    ' define(\'DIR_WS_INCLUDES\', \'includes/\');' . "\n" .
    ' define(\'DIR_WS_FUNCTIONS\', DIR_WS_INCLUDES . \'functions/\');' . "\n" .
    ' define(\'DIR_WS_CLASSES\', DIR_WS_INCLUDES . \'classes/\');' . "\n" .
    ' define(\'DIR_WS_MODULES\', DIR_WS_INCLUDES . \'modules/\');' . "\n" .
    ' define(\'DIR_WS_LANGUAGES\', DIR_WS_INCLUDES . \'languages/\');' . "\n" .
    ' define(\'DIR_WS_DOWNLOAD_PUBLIC\', DIR_WS_CATALOG . \'pub/\');' . "\n" .
    ' define(\'DIR_WS_TEMPLATES\', DIR_WS_INCLUDES . \'templates/\');' . "\n\n" .
    ' define(\'DIR_WS_PHPBB\', \'' . $this->getConfigKey('DIR_FS_PHPBB') . '/\');' . "\n\n" .
    '// * DIR_FS_* = Filesystem directories (local/physical)' . "\n" .
    ' //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/' . "\n" .
    ' define(\'DIR_FS_CATALOG\', \'/catalog/' . $this->getConfigKey('DIR_FS_CATALOG') . '/\');' . "\n\n" .
    ' define(\'DIR_FS_DOWNLOAD\', DIR_FS_CATALOG . \'download/\');' . "\n" .
    ' define(\'DIR_FS_DOWNLOAD_PUBLIC\', DIR_FS_CATALOG . \'pub/\');' . "\n" .
    ' define(\'DIR_WS_UPLOADS\', DIR_WS_IMAGES . \'uploads/\');' . "\n" .
    ' define(\'DIR_FS_UPLOADS\', DIR_FS_CATALOG . DIR_WS_UPLOADS);' . "\n" .
    ' define(\'DIR_FS_EMAIL_TEMPLATES\', DIR_FS_CATALOG . \'email/\');' . "\n\n" .
    '// define our database connection' . "\n" .
    ' define(\'DB_TYPE\', \'' . $this->getConfigKey('DB_TYPE'). '\');' . "\n" .
    ' define(\'DB_PREFIX\', \'' . $this->getConfigKey('DB_PREFIX'). '\');' . "\n" .
    ' define(\'DB_CHARSET\', \'' . $this->getConfigKey('DB_CHARSET'). '\');' . "\n" .
    ' define(\'DB_SERVER\', \'' . $this->getConfigKey('DB_SERVER') . '\');' . "\n" .
    ' define(\'DB_SERVER_USERNAME\', \'' . $this->getConfigKey('DB_SERVER_USERNAME') . '\');' . "\n" .
    ' define(\'DB_SERVER_PASSWORD\', \'' . $this->getConfigKey('DB_SERVER_PASSWORD') . '\');' . "\n" .
    ' define(\'DB_DATABASE\', \'' . $this->getConfigKey('DB_DATABASE') . '\');' . "\n\n" .
    ' // The next 2 "defines" are for SQL cache support.' . "\n" .
    ' // For SQL_CACHE_METHOD, you can select from: none, database, or file' . "\n" .
    ' // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache ' . "\n" .
    ' // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder' . "\n" .
    ' // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash ' . "\n" .
    ' define(\'SQL_CACHE_METHOD\', \'' . $this->getConfigKey('SQL_CACHE_METHOD') . '\'); ' . "\n" .
    ' define(\'DIR_FS_SQL_CACHE\', \'' . $this->getConfigKey('DIR_FS_SQL_CACHE') . '\');' . "\n\n" .
    //'?'.'>' .
    '// EOF';
    Is there an easier way to go about it or do I erase everything and start from scratch or should I try to fill in all these pathways where there is "\n"? I have no idea how this happened?

    Thanks,
    Wayne

  4. #4
    Join Date
    Apr 2012
    Location
    beijing
    Posts
    258
    Plugin Contributions
    1

    Default Re: change in c panel password causing all these problems

    you can get these two files from other zencart website as they are the same,and modify them,
    or use the following two to modify.
    includes/dist-configure.php and admin/includes/dist-configure.php
    focus on the open source for online shoping website.
    my site: best shop 24h.com

 

 

Similar Threads

  1. What is causing these extra images?
    By meljen in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 16 Jul 2012, 06:53 PM
  2. required password still causing problems
    By gsdcypher in forum General Questions
    Replies: 3
    Last Post: 23 Jan 2008, 04:34 PM
  3. V1.3.7.1 causing these Server errors ?
    By teamzr1 in forum Bug Reports
    Replies: 24
    Last Post: 27 Aug 2007, 10:45 PM
  4. SSL change to configure files causing problems
    By Bryony in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 12 Jul 2006, 11:49 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