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

Blank admin page

This is a discussion on Blank admin page within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I've installed OsCommerce 2.2ms2 on my web site, which was a "one click" deal. I'm now trying to get it ...

      
  1. #1
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    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?

    Cheers,
    Peter

  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

    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.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    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.

    Cheers,
    Peter

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


    Default

    Peter - please post your admin configure.php file (less the DB info).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  5. #5
    Lurker
    Join Date
    Jun 2004
    Posts
    3
    Rep Power
    0


    Default

    <?php
    /*
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    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_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
    define('DIR_WS_CATALOG', '/books/'); // absolute path required
    define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
    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/');


    Thanks,
    Peter

Similar Threads

  1. Blank Admin Pages
    By zemond in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 12-22-2006, 11:06 AM
  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, 08:08 PM
  5. Blank admin
    By webworks in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-23-2003, 06:36 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
  •