Thread: <base> tag

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default <base> tag

    Hey guys


    just installed zen cart and im having issues getting it to display with IE7, initially i thought this was a problem with the CSS, but on further investigation by the kind people in the #web IRC channel that the problem was infact due to a <base> tag present in the top few lines of code. However my problem is that i now cant find where this tag is in the code, could someone assist me with this?


    Thanks


    -Lenswipe

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: <base> tag

    link to your site please.
    zencart out of box , will display correctly with all major browser including IE 6, 7, 8 . Base tag represent path to the shop. chances are that you have miss configured something during installation ?

  3. #3
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: <base> tag

    Quote Originally Posted by tony_sar View Post
    link to your site please.
    zencart out of box , will display correctly with all major browser including IE 6, 7, 8 . Base tag represent path to the shop. chances are that you have miss configured something during installation ?
    http://freshupforums.servebbs.com/pdpatch/store

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: <base> tag

    it looks like something wrong with your Configure.php file . please post the content of your configure.php . before posting remove Database USER NAME and PASS

  5. #5
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: <base> tag

    Quote Originally Posted by tony_sar View Post
    it looks like something wrong with your Configure.php file . please post the content of your configure.php . before posting remove Database USER NAME and PASS
    Code:
    <?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 "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', '');
      define('HTTPS_SERVER', 'https://freshupforums.servebbs.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', '../store/');
      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/');
    
      define('DIR_WS_PHPBB', '/var/www/forum/');
    
    // * 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', '/var/www/pdpatch/store/');
    
      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_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'username');
      define('DB_SERVER_PASSWORD', 'somepass');
      define('DB_DATABASE', 'pdpatch');
      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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/var/www/pdpatch/store/cache');
    
    // EOF

    Ive been to #web (i think it was #web IRC) and they told me that the issue was with the <base> tag present in the HTML (which i cant by the way find..)
    Last edited by lenswipe; 21 Jun 2009 at 09:26 PM.

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: <base> tag

    You can't leave the HTTP_SERVER definition blank. It should contain the URL to your site i.e. http://freshupforums.servebbs.com

    And the DIR_WS_CATALOG should be /store/

    The base tag is picking up <blank> + ../store/ which is invalid and is what is causing you problems, instead of http://freshupforums.servebbs.com/store/ which would be fine and would happen if those defines were set correctly.

    You'll need to correct your DIR_WS_HTTPS_CATALOG setting too.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Jun 2009
    Posts
    21
    Plugin Contributions
    0

    Default Re: <base> tag

    Quote Originally Posted by kuroi View Post
    You can't leave the HTTP_SERVER definition blank. It should contain the URL to your site i.e. http://freshupforums.servebbs.com

    And the DIR_WS_CATALOG should be /store/

    The base tag is picking up <blank> + ../store/ which is invalid and is what is causing you problems, instead of http://freshupforums.servebbs.com/store/ which would be fine and would happen if those defines were set correctly.

    You'll need to correct your DIR_WS_HTTPS_CATALOG setting too.
    Right, ive affected the required changes and heres the config file:
    Code:
    <?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 "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://freshupforums.servebbs.com';
      define('HTTPS_SERVER', 'https://freshupforums.servebbs.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', '../store/');
      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/');
    
      define('DIR_WS_PHPBB', '/var/www/forum/');
    
    // * 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', '/var/www/pdpatch/store/');
    
      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_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'username');
      define('DB_SERVER_PASSWORD', 'somepass');
      define('DB_DATABASE', 'pdpatch');
      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', 'database'); 
      define('DIR_FS_SQL_CACHE', '/var/www/pdpatch/store/cache');
    
    // EOF
    and now when i access my store, i get a blank page....

    any ideas?

    Also i dont have a https:// server as the server this is running on is a development server and as such does not posess any SSL certificates..
    Last edited by lenswipe; 21 Jun 2009 at 10:28 PM.

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: <base> tag

    You didn't correct your DIR_WS_CATALOG define.

    And yes you can use $_SERVER["SERVER_NAME"] though it would have to be concatonated with http:// rather than listed with it. I've done this under very specific circumstances, but unless you have a good reason, I'd recommend keeping it simple, at least until you have the hard-coded version working.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: <base> tag

    in you configure.php look for this

    define('HTTP_SERVER', 'http://freshupforums.servebbs.com';


    your are missing )

  10. #10
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: <base> tag

    Quote Originally Posted by tony_sar View Post
    your are missing )
    Yep. That too!
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v154 Is <base href tag necessary?
    By s_mack in forum General Questions
    Replies: 20
    Last Post: 9 Nov 2015, 03:43 AM
  2. Need to add code below </head> tag and above <body> tag in product page
    By Danielle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Apr 2010, 07:53 PM
  3. Replies: 3
    Last Post: 3 Aug 2009, 06:13 AM
  4. IE pngfix issues with <base> tag?
    By fostergross in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Apr 2007, 04:34 PM

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