Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Etra Images Contribution


Micke

Recommended Posts

Hi All!

I've installed the Extra Images contribution. Instead of showing extra Images in my product_info.php it shows

Fehlende® oder ungültige® Größenparameter!

I've found this string in html_output.php:(scroll to bottom of codebox)

function thumbimage ($image, $x, $y, $aspectratio, $resize, $cachedir){
define(JPEGQUALITY, 95);	//define the quality of JPG thumbnails
       /*##############################################
      #          - Thumbnail-Script v1.3 -           #
      # Generating thumbnails 'on-the-fly' with PHP  #
      #                                              #
      #  © by Christian Lamine, FlashDreams OHG    #
      #          [url="http://www.flashdreams.de/"]http://www.flashdreams.de/[/url]          #
      #                                              #
      #      Modified by [url="http://www.team-noehring.de"]http://www.team-noehring.de[/url] #
      #      Modified by [url="http://www.tse.at"]http://www.tse.at[/url]           #
      #      Modified by [email protected]                #
      #                                              #
      # This script may be freely used, distributed  #
      # and modified without any charge as long as   #
      # this copyright information is included.      #
      #                                              #
      # Any commercial selling of this script is     #
      # forbidden.                                   #
      #                                              #
      # The author is not responsible for possible   #
      # damage which may result from the application #
      # of this script, neither direct nor indirect. #
      # Use at your own risk!                        #
   	  ##############################################*/

    error_reporting(0);

    $types = array (1 => "gif", "jpeg", "jpg", "png", "swf", "psd", "wbmp");
// Formats Not Supported - To use this feature uncomment the line below 
// (beginning with ($not_supported_formats) and add the files types you do not
// want thumbed.
// $not_supported_formats = array ("GIF"); // Write in capital Letters!!
    umask(0);
    !is_dir ($cachedir)
        ? mkdir ($cachedir, 0777)
        : system ("chmod 0777 ".$cachedir);

      (!isset ($x) || ereg ('^[0-9]{1,}$', $x, $regs)) &&
      (!isset ($y) || ereg ('^[0-9]{1,}$', $y, $regs)) &&
      (isset ($x) || isset ($y))
           ? true
         [b]: DIE ('Fehlende® oder ungültige® Größenparameter!');[/b]

    !isset ($resize) || !ereg ('^[0|1]$', $resize, $regs)
         ? $resize = 0
         : $resize;

Why am I getting this error?

//Micke

Link to comment
Share on other sites

  • 3 months later...
Hi All!

I've installed the Extra Images contribution. Instead of showing extra Images in my product_info.php it shows

Fehlende® oder ungültige® Größenparameter!

 

Why am I getting this error?

//Micke

 

 

Replace this in catalog/includes/functions/html_output.php....

(!isset ($x) || ereg ('^[0-9]{1,}$', $x, $regs)) &&
(!isset ($y) || ereg ('^[0-9]{1,}$', $y, $regs)) &&
(isset ($x) || isset ($y))
? true
: DIE ('Fehlende® oder ungültige® Größenparameter!');    

 

With this....

/**
(!isset ($x) || ereg ('^[0-9]{1,}$', $x, $regs)) &&
(!isset ($y) || ereg ('^[0-9]{1,}$', $y, $regs)) &&
(isset ($x) || isset ($y))
? true
: DIE ('Fehlende® oder ungültige® Größenparameter!');
**/

 

This worked for me.....

Edited by sparrz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...