When I updated our admin side version of the tep_image function to make use of the Calculate Image Size configuration variable as is done on the catalog side I suddenly discovered a problem with the PHP getimagesize function not being able to get the size of the image which creates a problem if you have the Image Required configuration variable set to false like we do. The extra field images suddenly did not display on the admin side.
If you are currently using version 2.0-2.2 the fix is simple, replace your current admin/extra_values.php with the corrected file here and then open your admin side general.php file and find where you have defined the function tep_get_extra_field_list_value. In both places inside the function where you see:
tep_image(DIR_WS_CATALOG_IMAGES
change it to:
tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES
Adding the name of the web server where the image is found allows the PHP getimagesize function to find the file and calculate the image size.
The complete install with instructions updated to counter this problem is included here.
More...





LinkBack URL
About LinkBacks









Bookmarks