osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-27-2004, 07:43 AM
uff uff is offline
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
uff
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-27-2004, 05:47 PM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
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.
__________________
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-28-2004, 04:02 AM
uff uff is offline
Lurker
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
uff
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-28-2004, 10:27 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
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
__________________
Clifton Murphy CEO/CTO
Hyperactive Inc.
osCommerce hosting, OSCMAX hosting, osCommerce modification, and OSCMAX modification specialists!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-13-2005, 04:51 AM
Lurker
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
yar00
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
fatal error plz help uglyrain osCMax v2 Installation issues 1 11-30-2005 03:28 PM
Fatal error!! newtothis osCMax v2 Installation issues 1 07-13-2005 04:48 PM
Fatal Error Anonymous osCMax v1.7 Discussion 3 06-17-2004 06:28 AM
Fatal error...... depayva osCMax v1.7 Installation 2 12-05-2003 11:39 AM
Fatal error swisscheese osCommerce 2.2 Installation Help 2 01-11-2003 10:54 AM


All times are GMT -8. The time now is 10:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax