cyndijohnson Posted June 1, 2009 Posted June 1, 2009 Attempted replacing generic information with my own and totally screwed it up. Receiveing the following error message: "Fatal error: Call to undefined function: tep_image() in /homepages/39/d285634596/htdocs/oscommerce-2.2rc2a/catalog/admin/index.php on line 13". Although I copied the original data in note book and extracted it fromt the zip drive, replacing the entire page... I continue to receive an error message. Now I am even unable to bypass the error page to get to the Administration page. PLEASE HELP!
steve_s Posted June 1, 2009 Posted June 1, 2009 Attempted replacing generic information with my own and totally screwed it up. Receiveing the following error message: "Fatal error: Call to undefined function: tep_image() in /homepages/39/d285634596/htdocs/oscommerce-2.2rc2a/catalog/admin/index.php on line 13". Although I copied the original data in note book and extracted it fromt the zip drive, replacing the entire page... I continue to receive an error message. Now I am even unable to bypass the error page to get to the Administration page. PLEASE HELP! Hi in catalog/includes/finctions/html_output.php search for tep_image and replace it with code below if its not there add the code after Released under the GNU General Public License */ //// // The HTML image wrapper function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') && (empty($width) || empty($height)) ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { $ratio = $height / $image_size[1]; $width = intval($image_size[0] * $ratio); } elseif (tep_not_null($width) && empty($height)) { $ratio = $width / $image_size[0]; $height = intval($image_size[1] * $ratio); } elseif (empty($width) && empty($height)) { $width = $image_size[0]; $height = $image_size[1]; } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; }
steve_s Posted June 2, 2009 Posted June 2, 2009 catalog/admin/includes/funtion/html_output.php i meant in above
Recommended Posts
Archived
This topic is now archived and is closed to further replies.