Home Forums WC Vendors Pro Support Invalid API License Key Reply To: Invalid API License Key

#64971
Anna
Member

Hello,
Ok- you are all updated & the license is active.

I had to disable this code in your functions.php (I re-enabled it after I was finished) in order to update WC Vendors Pro. This may cause you issues in the future if you try to update or install plugins. It would not allow me to upload the WC Vendors Pro plugin and kept throwing the error about the image size:

/* WP Curve #157994 (MJ) - Start*/ 
add_filter('wp_handle_upload_prefilter','wpc_upload_filter');
function wpc_upload_filter($file)
{
    $minimum = array('width' => '178', 'height' => '175');
    $img=getimagesize($file['tmp_name']);
    $width= $img[0];
    $height =$img[1];
    if ($width < $minimum['width'] )
         return array("error"=>"Image dimensions are too small. Minimum width is {$minimum['width']}px. Uploaded image width is $width px");
    elseif ($height <  $minimum['height'])
         return array("error"=>"Image dimensions are too small. Minimum height is {$minimum['height']}px. Uploaded image height is $height px");
    else
        return $file;
}