I did a lot of research and wound up getting this error via a different plugin... The purple scroll TinyMCE editor which uses phpthumb as well.
I skipped their plugin and looked for another which modified iBrowser (current TinyMCE uploader) and discovered some discussion about IIS and phpThumb...
In the case of my errors...
The CGI Error is cause by the w= and h= parameters... (i.e. '&w=48&h=48&far=1&bg=ffffff&f=jpg') For this to work in IIS I had to remove a lot of built - in functions that added this tag to the file. In some areas the results were not as desired - but the image displayed (which it never did before)
In the case of the empty thumbnail setting being passed to the phpThumb script for example here: $this->sourceFilename set to "" in file "phpthumb.class.php
this was fixed by following the below post and instructions:
And then calling it in respective areas: if ($this->sourceFilename=="" OR $this->sourceFilename==null) {$this->sourceFilename=$this->fixslashes($this-
>src); }
Thanks for the important info. However I'm still sure it's all about realpath/dirname functions issue. I'll investigate it further and contact the phpThumb author. Thanks again.
e107 Bulgaria | Corllete Lab