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

Fatal error

This is a discussion on Fatal error within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; When i try to install oscommers i get this message: New Installation Please customize the new installation with the following ...

      
  1. #1
    uff
    uff is offline
    Lurker
    Join Date
    Dec 2004
    Posts
    2
    Rep Power
    0


    Default Fatal error

    When i try to install oscommers i get this message:

    New Installation

    Please customize the new installation with the following options:

    Import Catalog Database:
    Fatal error: Call to undefined function: osc_draw_checkbox_field() in /free1go/d/h/www.dharmaimport.1go.dk/catalog/install/templates/pages/install.php on line 24

    can you help me?

  2. #2
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default RE: Fatal error

    line 24 looks like so:
    Code:
    <?php echo osc_draw_checkbox_field('install[]', 'database', true); ?>
    Now being that there are no function calls present in the templates/pages directory we must start looking at the source code which calls these pages, or /install/index.php since thats the page we load when we go to http://yourdomain.com/install

    The index.php page has 2 seperate require statements:
    1. require('includes/application.php');
    2. require('templates/main_page.php');

    If we open /templates/main_page.php and look at the source code we see that the only other pages this page calls are the header and the footer.php's which after a quick look, contain no function calls or require statements to speak of.

    So we are forced to look at
    1. require('includes/application.php');

    And if we open this page and look at the source code we notice that there is only a few require statements here, and they are as follows:

    require('includes/functions/general.php');
    require('includes/functions/database.php');
    require('includes/functions/html_output.php');


    We see that all functions used in the installation of max are called right from this file, /install/includes/application.php and if we do a quick grep or text search on the original source files we find this on line 45 of html_output.php

    Code:
    function osc_draw_checkbox_field($name, $value = '', $checked = false) {
        return osc_draw_selection_field($name, 'checkbox', $value, $checked);
      }
    This leaves us with but one conclusion, your /install/includes/html_output.php file is corrupt or missing from the directory and the function needed to make that check box on install.php work is never being defined.

  3. #3
    uff
    uff is offline
    Lurker
    Join Date
    Dec 2004
    Posts
    2
    Rep Power
    0


    Default

    Thanx red_fraggle. You have right!

    /install/includes/html_output.php file is missing from the directory (should it realy be there in the first place?). I have downloaded two vesions from oscommerce.com (2.2 and 2.2 without global reg) and I can't find this file on any of the downloaded directories...

    im confused... and a newbie...

  4. #4
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    9


    Default

    I just downloaded it from oscommerce.com to make sure i wasnt crazy. This problem might be from you unzipping the file and not using "preserve directory structure". make sure when you extract the files, you have a catalog/ directory with 6 different sup-directories in it, they are as follows

    admin
    download
    images
    includes
    install
    pub

  5. #5
    Lurker
    Join Date
    Jul 2005
    Posts
    1
    Rep Power
    0


    Default same trouble again

    I've the same problem. There IS (and is correct) html_output.php in my /catalog/install/includes/functions , but there is "
    Fatal error: Call to undefined function: osc_draw_checkbox_field() in /home/httpd/shop/catalog/install/templates/pages/install.php on line 24" too.
    Any ideas?
    Greetings

Similar Threads

  1. fatal error plz help
    By uglyrain in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 11-30-2005, 02:28 PM
  2. Fatal error!!
    By newtothis in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 07-13-2005, 04:48 PM
  3. Fatal Error
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 06-17-2004, 06:28 AM
  4. Fatal error......
    By depayva in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 12-05-2003, 10:39 AM
  5. Fatal error
    By swisscheese in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 01-11-2003, 09:54 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
  •