Guest Posted December 24, 2004 Posted December 24, 2004 (edited) Hi guys, I've just attempted to install the Options as Images contribution but I get the following error in the main Catalog page - thus preventing me from editing my products. Fatal error: Call to undefined function: tep_output_string() in /homepages/27/d111074939/htdocs/admin/includes/functions/html_output.php on line 156 I also get an error on the Product Attributes page: Fatal error: Call to undefined function: tep_output_string() in /homepages/27/d111074939/htdocs/admin/includes/functions/html_output.php on line 91 I really hope you can help me fix this...many thanks. Rob Edited December 24, 2004 by PaulSymondsGolf Quote
Guest Posted December 24, 2004 Posted December 24, 2004 Other errors I've spotted... Fatal error: Call to undefined function: tep_output_string() in /homepages/27/d111074939/htdocs/admin/includes/functions/html_output.php on line 156 on the main page of the Admin panel Fatal error: Call to undefined function: tep_call_function() in /homepages/27/d111074939/htdocs/admin/configuration.php on line 88 on the My Store page... The relevant lines are: 85 - 100: //// // The HTML form submit button wrapper function // Outputs a button in the selected language function tep_image_submit($image, $alt = '', $parameters = '') { global $language; $image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "'; if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters; $image_submit .= '>'; return $image_submit; } 154 - 169: // Output a form function tep_draw_form($name, $action, $parameters = '', $method = 'post', $params = '') { $form = '<form name="' . tep_output_string($name) . '" action="'; if (tep_not_null($parameters)) { $form .= tep_href_link($action, $parameters); } else { $form .= tep_href_link($action); } $form .= '" method="' . tep_output_string($method) . '"'; if (tep_not_null($params)) { $form .= ' ' . $params; } $form .= '>'; return $form; } Configuration: 76 - 92: $configuration_query = tep_db_query("select configuration_id, configuration_title, configuration_value, use_function from " . TABLE_CONFIGURATION . " where configuration_group_id = '" . (int)$gID . "' order by sort_order"); while ($configuration = tep_db_fetch_array($configuration_query)) { if (tep_not_null($configuration['use_function'])) { $use_function = $configuration['use_function']; if (ereg('->', $use_function)) { $class_method = explode('->', $use_function); if (!is_object(${$class_method[0]})) { include(DIR_WS_CLASSES . $class_method[0] . '.php'); ${$class_method[0]} = new $class_method[0](); } $cfgValue = tep_call_function($class_method[1], $configuration['configuration_value'], ${$class_method[0]}); } else { $cfgValue = tep_call_function($use_function, $configuration['configuration_value']); } } else { $cfgValue = $configuration['configuration_value']; } Please help me to fix this as I cannot do anything at the moment... Quote
Guest Posted December 28, 2004 Posted December 28, 2004 Sorry to bump the topic but does anyone know how these can be fixed? It is vital that they are fixed. Many thanks Rob Quote
Guest Posted December 29, 2004 Posted December 29, 2004 Right - a quick update. I've eradicated most of the errors in Admin, as far as I can see. The only error that is now left is : "Fatal error: Call to undefined function: tep_get_products_model_name() in /homepages/27/d111074939/htdocs/admin/products_attributes.php on line 757" Hopefully, this can now be resolved pretty quickly. Many Thanks. Rob Quote
Guest Posted December 29, 2004 Posted December 29, 2004 At the following URL is a screenshot of how the error is positioned on the page. http://www.no1golfpro.co.uk/prodatt.gif Below is line 757 - obviously I need to define products_model_name somehow. Any suggestions? $products_name_only = tep_get_products_model_name($attributes_values['products_id']); Many Thanks Quote
Guest Posted December 29, 2004 Posted December 29, 2004 Paul, I see you have been working on this for a bit. I have options as images installed and running on my site. If I can help let me know. If you can email me your problem php file (attributes_products.php i think it is) I'll take a look at it and compare it to mine and see if I can find your problem. email: [email protected] Doug (aka RavenWulf) At the following URL is a screenshot of how the error is positioned on the page. http://www.no1golfpro.co.uk/prodatt.gif Below is line 757 - obviously I need to define products_model_name somehow. Any suggestions? ? ?$products_name_only = tep_get_products_model_name($attributes_values['products_id']); Many Thanks <{POST_SNAPBACK}> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.