Guest Posted February 4, 2008 Posted February 4, 2008 This contri looks familiair with image magic, so i want to use this one instead...But: Fatal error: Call to undefined function tep_image() in C:\program_files\wamp\www\catalog\includes\header.php on line 67 So, that where the first tep_image() is used. this function is in htm_output.php original.... // 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; } changed.... // The HTML image wrapper function function tep_image_original($src, $alt = '', $width = '', $height = '', $parameters = '') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // START oscThumb // If you want to call the original function, you can call tep_image_original or call this one with $original=true. function tep_image($src, $alt = '', $width = '', $height = '', $params = '', $original=true, $thumbnail_type = 0) { global $oscthumb; // We are asked to return the result of the original function if ($original || $oscthumb->enabled==false) { return tep_image_original($src, $alt, $width, $height, $params); } Well it is not working, is the "original" function still used, why can't the program see the new tep_image function? please advice. Regards Bas Quote
Guest Posted February 4, 2008 Posted February 4, 2008 Solved! Wrong cut and past sequence.... :blush: 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.