Catchable fatal error: Object of class SimpleImage could not be converted to string
Im getting an error I have never seen before...

    Catchable fatal error: Object of class SimpleImage could not be converted to string in /home/content/44/8713044/html/admin/classes/SimpleImage.php on line 10

I am using this plugin called SimpleImage

http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/

I dont know why I am getting this error, what this plugin does is that it takes and image, resizes it and uploads it to the server, does any know why I am getting this error and how to fix it?

Thanks,
J


This is where the error is happening.....

       function load($filename) {
     
          $image_info = getimagesize($filename);
          $this->image_type = $image_info[2];
          if( $this->image_type == IMAGETYPE_JPEG ) {
     
             $this->image = imagecreatefromjpeg($filename);
          } elseif( $this->image_type == IMAGETYPE_GIF ) {
     
             $this->image = imagecreatefromgif($filename);
          } elseif( $this->image_type == IMAGETYPE_PNG ) {
     
             $this->image = imagecreatefrompng($filename);
          }
       }
Catchable fatal error: Object of class SimpleImage could not be converted to string
===

Im getting an error I have never seen before...

    Catchable fatal error: Object of class SimpleImage could not be converted to string in /home/content/44/8713044/html/admin/classes/SimpleImage.php on line 10

I am using this plugin called SimpleImage

http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/

I dont know why I am getting this error, what this plugin does is that it takes and image, resizes it and uploads it to the server, does any know why I am getting this error and how to fix it?

Thanks,
J


This is where the error is happening.....

       function load($filename) {
     
          $image_info = getimagesize($filename);
          $this->image_type = $image_info[2];
          if( $this->image_type == IMAGETYPE_JPEG ) {
     
             $this->image = imagecreatefromjpeg($filename);
          } elseif( $this->image_type == IMAGETYPE_GIF ) {
     
             $this->image = imagecreatefromgif($filename);
          } elseif( $this->image_type == IMAGETYPE_PNG ) {
     
             $this->image = imagecreatefrompng($filename);
          }
       }