Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Double Path Problem with BlueHost

    Hello,

    I'm having a problem with a double path issue with my Zen Cart installation and it affects the admin console. My hosting company is BlueHost and they installed Zen Cart and I restored the database with a backup, everything was perfect with no issues until I purchased an SSL certificate with them. Bluehost installed the SSL and when I tried to access my admin console the url looked like this: http://www.invitasport.com/onlinesto...inestore/admin I checked the config.php in the admin/includes directory and it looked fine so I called support. After trying several things they finally got rid of the double path so i could access the admin console but now I've noticed certain images like icon.gif are not displaying and when I look at the properties for the missing image it still has the double path.

    I spent over a hour and half on hold while the scripting team looked for answers to the problem in both the admin/includes config.php and the includes/config.php and they came up blank.

    Has anyone got any idea as to what may be causing this issue? It seems to me it should be a simple fix but if a scripting team can't find it....well I'm at a loss.

    Any help would be appreciated. Thanks!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Double Path Problem with BlueHost

    It sounds like you do not have your configure.php file correctly setup ...

    If you could post your file:
    /admin/includes/configure.php

    from the server ... without your username and password ... we could peek and see if you have a setting or three incorrect ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    Sure, thanks for the quick reply.

    <?php
    /**
    * @package Configuration Settings circa 1.3.8
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */


    /*************** 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. ***********/

    // 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
    *
    * If you desire your *entire* admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.invitasport.com/onlinestore');
    define('HTTPS_SERVER', 'https://www.invitasport.com/onlinestore');
    define('HTTP_CATALOG_SERVER', 'http://www.invitasport.com/onlinestore');
    define('HTTPS_CATALOG_SERVER', 'https://www.invitasport.com/onlinestore');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    // 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_ADMIN', '/admin/');
    define('DIR_WS_CATALOG', '/onlinestore/');
    define('DIR_WS_HTTPS_ADMIN', '/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/onlinestore/');

    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)
    //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
    define('DIR_FS_ADMIN', '/home2/invitasp/public_html/onlinestore/admin/');
    define('DIR_FS_CATALOG', '/home2/invitasp/public_html/onlinestore/');

    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_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', '');
    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'db');
    // for STORE_SESSIONS, 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', '/home2/invitasp/public_html/onlinestore/cache');

    // EOF

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Double Path Problem with BlueHost

    These should not include the directory:
    Code:
    define('HTTP_SERVER', 'http://www.invitasport.com/onlinestore');
    define('HTTPS_SERVER', 'https://www.invitasport.com/onlinestore');
    define('HTTP_CATALOG_SERVER', 'http://www.invitasport.com/onlinestore');
    define('HTTPS_CATALOG_SERVER', 'https://www.invitasport.com/onlinestore');
    try them this way instead ...
    Code:
    define('HTTP_SERVER', 'http://www.invitasport.com');
    define('HTTPS_SERVER', 'https://www.invitasport.com');
    define('HTTP_CATALOG_SERVER', 'http://www.invitasport.com');
    define('HTTPS_CATALOG_SERVER', 'https://www.invitasport.com');
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    I've actually tried that and I get the 404 error page not found. It's weird because it worked before the SSL was installed but now in order for it to work I have to add the onlinestore to the path to get the store to show.

    Any other ideas?

  6. #6
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    Got it! I changed the config.php back to your settings above and still got the 404 error but then I went to the section that reads:

    // 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_ADMIN', '/onlinestore/admin/');
    define('DIR_WS_CATALOG', '/onlinestore/');
    define('DIR_WS_HTTPS_ADMIN', '/onlinestore/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/onlinestore/');

    and added back the onlinestore to 'DIR_WS_ADMIN' and 'DIR_WS_HTTPS_ADMIN' I guess BlueHost support had removed it and that was causing the error.

    Thanks Linda for putting me on the right track!!! It's been making me crazy.

    Cheers,
    Cynthia.

  7. #7
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    Oops, still one more problem, when I was testing out the checkout system I got this error:

    https://www.invitasport.comonlinesto...ckout_shipping

    You will notice there is a missing / between .com and onlinestore.
    Can you tell me where this would be found so I can fix it. I've looked in the admin/includes/config.php but it looks ok.

    Thanks!

  8. #8
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    Just an extra FYI my checkout has always worked until now so it must be something in the config.php or another path/file that support has modified.

    I went back into the config.php file and added the forward slash after invitasport.com/ but it didn't help see below:

    define('HTTP_SERVER', 'http://www.invitasport.com/');
    define('HTTPS_SERVER', 'https://www.invitasport.com/');
    define('HTTP_CATALOG_SERVER', 'http://www.invitasport.com/');
    define('HTTPS_CATALOG_SERVER', 'https://www.invitasport.com/');

    I also checked and added the / slash to the following but it didnt make any difference the slash is still missing:

    define('DIR_WS_ADMIN', '/onlinestore/admin/');
    define('DIR_WS_CATALOG', '/onlinestore/');
    define('DIR_WS_HTTPS_ADMIN', '/onlinestore/admin/');
    define('DIR_WS_HTTPS_CATALOG', '/onlinestore/');

  9. #9
    Join Date
    Jan 2010
    Posts
    28
    Plugin Contributions
    0

    Default Re: Double Path Problem with BlueHost

    I also just found another error with no page displayed when I clicked on the Check for Updates button in the Admin console and it looks like the path is wrong again. See URL below

    http://onlinestore/admin/configurati...=12&vcheck=yes

    I think www.invitasport.com/ should be prior to onlinestore etc.

    HELP!! This is getting worse. I'm not sure what else has been changed.

  10. #10
    Join Date
    Dec 2009
    Location
    Pinner
    Posts
    230
    Plugin Contributions
    1

    Default Re: Double Path Problem with BlueHost

    I just want to try and understand something because there's a website at http://www.invitasport.com/ and yet there's a broken website (11am UK time) at http://www.invitasport.com/onlinestore/ now is the test shop sitting in the directory structure of an existing shop ? for some kind of eventually replacement ? what I'm trying to understand is what the site on the top is doing, are there any rewrite rules for that site in a .htaccess file that could be redirecting requests to the underlying shop.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Odd double slashes in path to Sidebox Title Image
    By Hell Guapo in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 3 Jan 2012, 07:37 PM
  2. shared ssl setup problem with bluehost for .com
    By spawnie69 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 14 Feb 2009, 04:47 AM
  3. Problem with double email entry addon
    By r1formetoo in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 4 Feb 2009, 07:34 PM
  4. RE: Double login problem with wordpress
    By maryy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 Jan 2008, 05:04 PM

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