osCmax v2.5 User Manual
Results 1 to 3 of 3

Got a blank page on homepage but admin login works

This is a discussion on Got a blank page on homepage but admin login works within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hi everyone Thank you for help in advance. I just got Oscommerce installed. But it got a blank page on ...

      
  1. #1
    Lurker
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    0


    Default Got a blank page on homepage but admin is showing up

    Hi everyone
    Thank you for help in advance.
    I just got Oscommerce installed. But it got a blank page on the homepage, but it allows me to login admin panel. Any1 could help me out with it plz?

    Operation System: Windows server 2003
    Php:5.1

    the code on both configure files are shown below

    1. /include

    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    osCommerce, Open Source Online Shop E-Commerce Solutions
    Copyright (c) 2003 osCommerce
    Released under the GNU General Public License
    */
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.chinasup.com'); // eg, cPanel® - should not be empty for productive servers
    define('HTTPS_SERVER', 'http://www.chinasup.com'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', false); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'chinasup.com');
    define('HTTPS_COOKIE_DOMAIN', '');
    define('HTTP_COOKIE_PATH', 'e:\freehost\chinasupfzx\web\');
    define('HTTPS_COOKIE_PATH', '');
    define('DIR_WS_HTTP_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '');
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    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_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', 'e:\freehost\chinasupfzx\web\\');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'aaa');
    define('DB_SERVER_PASSWORD', 'bbb');
    define('DB_DATABASE', 'ccc');
    define('USE_PCONNECT', 'false'); // use persistent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>



    2./admin/include

    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    osCommerce, Open Source Online Shop E-Commerce Solutions
    Copyright (c) 2003 osCommerce
    Released under the GNU General Public License
    */
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.chinasup.com'); // eg, cPanel® - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.chinasup.com');
    define('HTTPS_CATALOG_SERVER', '');
    define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', 'e:\freehost\chinasupfzx\web\\'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/admin/'); // absolute path required
    define('DIR_FS_ADMIN', 'e:\freehost\chinasupfzx\web\\admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/'); // absolute path required
    define('DIR_FS_CATALOG', 'e:\freehost\chinasupfzx\web\\'); // absolute path required
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
    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', DIR_WS_CATALOG . 'includes/languages/');
    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_BACKUP', DIR_FS_ADMIN . 'backups/');
    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'aaa');
    define('DB_SERVER_PASSWORD', 'bbb');
    define('DB_DATABASE', 'ccc');
    define('USE_PCONNECT', 'false'); // use persisstent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    ?>

    THank you very much for your help!
    Last edited by ambitnfun; 06-14-2007 at 09:46 PM.

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Got a blank page on homepage but admin login works

    On ISS or Apache? Bet it is ISS....

    One thing I see is:
    e:\freehost\chinasupfzx\web\\admin/ - Works?
    e:\freehost\chinasupfzx\web\\ -Does not?
    I would guess the double \\ it may have problems with. OR try changing all window directory "\" to the universal "/"

    Where did you install it to? e:\freehost\chinasupfzx\web\catalog\ - or to root (moved everything from catalog directory up to root)?

    As far as I can see - nether the Catalog or Admin works. Try re-installing

  3. #3
    Lurker
    Join Date
    Jun 2007
    Posts
    2
    Rep Power
    0


    Smile Re: Got a blank page on homepage but admin login works

    Quote Originally Posted by jpf View Post
    On ISS or Apache? Bet it is ISS....

    One thing I see is:
    e:\freehost\chinasupfzx\web\\admin/ - Works?
    e:\freehost\chinasupfzx\web\\ -Does not?
    I would guess the double \\ it may have problems with. OR try changing all window directory "\" to the universal "/"

    Where did you install it to? e:\freehost\chinasupfzx\web\catalog\ - or to root (moved everything from catalog directory up to root)?

    As far as I can see - nether the Catalog or Admin works. Try re-installing
    Thank you! Its on ISS and I installed it to ROOT directory. I took your advice and changed those "\" to the universal "/" . You know what! I finally got it done! thank you so much for your help!

Similar Threads

  1. Help! Admin page is blank (but store is showing up...)
    By vonvonnie in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 08-04-2006, 08:44 AM
  2. Blank admin page & other wierd problems
    By BradWaite in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 03-20-2006, 08:08 PM
  3. Blank admin page
    By posword in forum osCommerce 2.2 Installation Help
    Replies: 4
    Last Post: 07-06-2004, 05:01 PM
  4. where do i set the admin login page?
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 07-02-2004, 12:12 AM
  5. Customer Login box on the Homepage
    By Serial in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-02-2003, 08:44 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
  •