Smart Image Processor PHP 2 Support Product Page

Second Sipp fails

Asked 06 Mar 2013 03:00:21
1
has this question
06 Mar 2013 03:00:21 Bart Garner posted:
My second file does not create. I get this error:

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'lgMountains2.jpg' for writing: Permission denied in C:\Inetpub\vhosts\domain.com\beta\ScriptLibrary\lib\cImageEditor\cGD2ImageEditor.php on line 1158

Order of operations.
PAU
SIPP
SIPP
Insert


<?php
// Pure PHP Upload 2.1.12
$ppu = new pureFileUpload();
$ppu->path = "../AdvHTML_Upload";
$ppu->extensions = "";
$ppu->formName = "Insert_Basic_Default";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "over";
$ppu->nameToLower = false;
$ppu->requireUpload = true;
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "blueFlashProgress.htm";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.12");
$ppu->doUpload();

if (isset($editFormAction)) {
  if (isset($_SERVER['QUERY_STRING'])) {
	  if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
  	  $editFormAction .= "&GP_upload=true";
		}
  } else {
    $editFormAction .= "?GP_upload=true";
  }
}
?>
<?php
// Smart Image Processor PHP 2.0.9
if (isset($_GET['GP_upload'])) {
$sipp2 = new cGraphicMediator("upload", $ppu, "sPhoto");
$sipp2->setComponent("Auto");
$sipp2->setMatteColor("#FFFFFF");
$sipp2->resizeEx(90, 120, true, false);
$sipp2->overwrite = true;
$sipp2->saveJPEG(80);
$sipp2->process();
}
?>
<?php
// Smart Image Processor PHP 2.0.9
if (isset($_GET['GP_upload'])) {
$sipp1 = new cGraphicMediator("upload", $ppu, "sPhoto");
$sipp1->setComponent("Auto");
$sipp1->setMatteColor("#FFFFFF");
$sipp1->resizeEx(180, 240, true, false);
$sipp1->overwrite = false;
$sipp1->setMask("lg##name##.jpg");
$sipp1->saveJPEG(80);
$sipp1->process();
}
?>

Replies

Replied 06 Mar 2013 03:00:42
06 Mar 2013 03:00:42 Bart Garner replied:
The first file is fine, so it is not a permissions issue.

also get this error:

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\domain.com\beta\ScriptLibrary\lib\cImageEditor\cGD2ImageEditor.php:1158) in C:\Inetpub\vhosts\concentriceng.com\beta\_admin\staff_insert.php on line 99
Replied 06 Mar 2013 08:33:56
06 Mar 2013 08:33:56 Vulcho Vulev replied:
Hello Bart.

Can you please send me your page on my e-mail:

Regards:Vulcho.

Reply to this topic