Forums

This topic is locked

smart image processor 2 php

Posted 11 Apr 2008 18:27:53
1
has voted
11 Apr 2008 18:27:53 Greta Garberini posted:
Hi,
I keep getting the following errors in the file where SIPP2 is installed:

<b>Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'imageconvolution_replacement' was given in /daten/www/mypath/ScriptLibrary/lib/cImageEditor/cGD2ImageEditor.php on line 505</b>

My setting in the file is:
<b>&lt;?php require_once('../../ScriptLibrary/incPureUpload.php'); ?&gt;
&lt;?php require_once('../../ScriptLibrary/cGraphicMediator.php'); ?&gt;
&lt;?php
// Pure PHP Upload 2.1.3
if (isset($HTTP_GET_VARS['GP_upload'])) {
$ppu = new pureFileUpload();
$ppu-&gt;path = "../../dyn/komp";
$ppu-&gt;extensions = "";
$ppu-&gt;formName = "form1";
$ppu-&gt;storeType = "file";
$ppu-&gt;sizeLimit = "";
$ppu-&gt;nameConflict = "over";
$ppu-&gt;requireUpload = "false";
$ppu-&gt;minWidth = "";
$ppu-&gt;minHeight = "";
$ppu-&gt;maxWidth = "";
$ppu-&gt;maxHeight = "";
$ppu-&gt;saveWidth = "";
$ppu-&gt;saveHeight = "";
$ppu-&gt;timeout = "600";
$ppu-&gt;progressBar = "";
$ppu-&gt;progressWidth = "";
$ppu-&gt;progressHeight = "";
$ppu-&gt;checkVersion("2.1.3";
$ppu-&gt;doUpload();
//GP stuff
$GP_uploadAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $HTTP_SERVER_VARS['QUERY_STRING'])) {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING']."&GP_upload=true";
} else {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];
}
} else {
$GP_uploadAction .= "?"."GP_upload=true";
}
}
//lots of other php stuff
?&gt;
&lt;?php
// Smart Image Processor PHP 2.0.2
if (isset($HTTP_GET_VARS['GP_upload'])) {
$klein = new cGraphicMediator("upload", $ppu, "Bild";
$klein-&gt;setComponent("Auto";
$klein-&gt;resize(100, 250, true);
$klein-&gt;sharpen();
$klein-&gt;overwrite = false;
$klein-&gt;setMask("##path##thmb/##name##.jpg";
$klein-&gt;saveJPEG(80);
$klein-&gt;process();
}
?&gt;</b>

And so the resize option does not work at all. I tried it on 2 different servers, but still it does not work.
I use a LAMP server with mysql5 / php5 and DWCS3

Please reply asap!
thanks

Reply to this topic