enphared Posted March 24, 2008 Posted March 24, 2008 I'm working on a website where the customer's information is the product, and no it is NOT spam. I want to take the admin file in osCommerce that adds a product, and make it a public file as a sign-up form. The problem I am having is this: Fatal error: Cannot instantiate non-existent class: objectinfo in /home/content/l/a/s/lasermoney8/html/accredited_investors_David-Test.php on line 392 I am using the class like this: require('/admin/includes/classes/object_info.php'); } } else { $parameters = array('products_name' => '', 'products_description' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_price' => '', 'qualification' => '', 'office_info' => '', 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => '', 'manufacturers_id' => '', 'referred_by' => '', 'referred_by_2' => ''); $pInfo = new objectInfo($parameters); $pInfo->objectInfo($HTTP_POST_VARS); $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); } and the file /admin/includes/classes/object_info.php looks like this: <?php /* $Id: object_info.php,v 1.6 2003/06/20 16:23:08 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class objectInfo { // class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } } ?> Doesnt "Fatal error: Cannot instantiate non-existent class: objectinfo in /home/content/l/a/s/lasermoney8/html/accredited_investors_David-Test.php on line 392" mean that the class being referred to does not exist? It looks like it does to me. The files access rights are set to read for the public. Anyone have any idea to of whats going on? Im sure it is something simple that I am mising.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.