Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 5 of 5

Thread: Blank admin page

  1. #1

    Default Blank admin page

    I've installed OsCommerce 2.2ms2 on my web site, which was a "one click" deal.

    I'm now trying to get it working on my development machine, EasyPHP 1.7 under WinXP. I have the Catalog side working ok.

    However, when I go to Admin, all I get is a blank page. My error logs say, "[Thu Jul 01 12:00:15 2004] [error] PHP Fatal error: Call to undefined function: tep_get_languages() in d:\easyphp1-7\www\books\admin\index.php on line 58".

    I've tried to get help on OsCommerce forum, and since I've used a lot of your information, I'm trying here now. What do I have to do to eliminate this error.

    And by the way, what does "tep" stand for?


  2. #2


    First of all I would make 100% sure you got all files!

    TEP - The Exchange Project - both of which is refenced though out OSCommece site, documents and code. This was the orginal name of the project (about 2000 or 2001 ?). The old name did not convey what the project was really about.

    The problem with "ONE CLICK" hosting/control panel installs are that you don't know how old your source is and depending on the host/panel may man or may not be modified (like AABOX uses a "loaded" version of OSC - MS2 called MS2-MAX)

    Personally I would DOWNLOAD a fresh MS2 or MAX and work with that.

    However, if you want, I would look at how it was setup on your host and then inspect your hosted CONFIGURE.PHP (BOTH files) with your "localhost" version. Sub your URL (ie: "mysite.com") with "localhost".

    If you install MS2-MAX ontop of your exisitng site - you can keep your configure.php files (just add in any new info) and BLANK out your exiting DB or use a fresh database name.

  3. #3

    Default Blank admin page

    The "one click' install by my ISP works fine; its my local install from a fresh OSC2.2MS2 archive that's the problem.

    The only way I can get the Admin control panel to display is to comment out these lines from admin/index.php:

    /* $languages = tep_get_languages();
    $languages_array = array();
    $languages_selected = DEFAULT_LANGUAGE;
    for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
    $languages_array[] = array('id' => $languages[$i]['code'],
    'text' => $languages[$i]['name']);
    if ($languages[$i]['directory'] == $language) {
    $languages_selected = $languages[$i]['code'];

    At least the panel displays, and as it is a one-language site its probably not a problem, but I shouldn't have to do that.

    Now I cannot get the Catalogs/Products page to display in Admin... its complaining about not finding the catalog/images files but it is correctly nominated in configure.php in Admin/includes.


  4. #4


    Peter - please post your admin configure.php file (less the DB info).

  5. #5


    osCommerce, Open Source 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://localhost'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', '');
    define('HTTPS_CATALOG_SERVER', '');
    define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
    define('DIR_WS_ADMIN', '/books/admin/'); // absolute path required
    define('DIR_WS_CATALOG', '/books/'); // absolute path required
    define('DIR_WS_IMAGES', '/books/admin/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/');


Similar Threads

  1. Blank Admin Pages
    By zemond in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 12-22-2006, 12:06 PM
  2. i got blank page after install
    By johnkwok in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 08-04-2006, 08:46 AM
  3. 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
  4. Blank admin page & other wierd problems
    By BradWaite in forum osCmax v2 Installation issues
    Replies: 3
    Last Post: 03-20-2006, 09:08 PM
  5. Blank admin
    By webworks in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-23-2003, 07:36 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