close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error on uploading thumbnail

Thread began 6/20/2011 1:14 pm by bill173836 | Last modified 6/22/2011 10:29 am by Jason Byrnes | 2248 views | 7 replies |

bill173836

Error on uploading thumbnail

First I'm using Digital File Pro 2 and I always get a using prior version warning but I change <?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?> to the webassist folder and it works fine.

The original file is uploading fine but it errors on the upload of the thumbnail file here is the code DFP2 creates.

<?php require_once("webassist/file_manipulation/helperphp.php"); ?>

<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "galleryimages/",
'FileName' => "".((isset($_POST["AddUserShortPID"]))?$_POST["AddUserShortPID"]:"") ."[FileName]",
'DefaultFileName' => "NoPicture.jpg",
'ResizeType' => "1",
'ResizeWidth' => "500",
'ResizeHeight' => "500",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1_2 Start
$WA_UploadResult1_Params["WA_UploadResult1_2"] = array(
'UploadFolder' => "galleryimages/",
'FileName' => "".((isset($_POST["AddUserShortPID"]))?$_POST["AddUserShortPID"]:"") ."_thumb[FileName]",
'DefaultFileName' => "NoThumbnail.jpg",
'ResizeType' => "1",
'ResizeWidth' => "",
'ResizeHeight' => "100",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_2 End
// WA_UploadResult1 Params End
?>
<?php?>
<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["AddPhotoSubmit_x"])){
WA_DFP_UploadFiles("WA_UploadResult1", "AddPhoto", "0", "", "JPG:80", $WA_UploadResult1_Params);
}
?>

Sign in to reply to this post

Jason ByrnesWebAssist

you say:

  The original file is uploading fine but it errors on the upload of the thumbnail file  



but do not include the error text. What is the error message you receive?

Sign in to reply to this post

bill173836

Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 894

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 896

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 1014

Warning: filesize() [function.filesize]: stat failed for /home/content/w/d/h/wdhobbs/html/homeschoollife/galleryimages/9940947244dffab30260a86.19214552.jpg in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 1024

Warning: getimagesize(/home/content/w/d/h/wdhobbs/html/homeschoollife/galleryimages/9940947244dffab30260a86.19214552.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 1025

Warning: rename(/home/content/w/d/h/wdhobbs/html/homeschoollife/galleryimages/9940947244dffab30260a86.19214552.jpg,/home/content/w/d/h/wdhobbs/html/homeschoollife/galleryimages/_thumb1HEJ4UpdatePhotographButton.jpg) [function.rename]: No such file or directory in /home/content/w/d/h/wdhobbs/html/homeschoollife/webassist/file_manipulation/helperphp.php on line 192

Sign in to reply to this post

Jason ByrnesWebAssist

there is no resize width supplied for the thumbnail:

'ResizeType' => "1",
'ResizeWidth' => "",
'ResizeHeight' => "100",

change that to :
'ResizeType' => "1",
'ResizeWidth' => "100",
'ResizeHeight' => "100",

Sign in to reply to this post

bill173836

Why does it always revert back to saying I'm using a prior version whenever I add a new upload?

It always adds:
<?php require_once("webassist/file_manipulation/helperphp.php"); ?>

I have to add:
<?php require_once("WA_DigitalFilePro/HelperPHP.php"); ?>

I am using version 2.03

Sign in to reply to this post

Jason ByrnesWebAssist

do you have either form builder 2 or Universal Email 4 installed?

both of these have the Digital File Pro integrated, if one of these is installed, you should not install DFP 2 as well.

Sign in to reply to this post

bill173836

I have both installed.

Sign in to reply to this post

Jason ByrnesWebAssist

then you do not need DFP 2 installed as well.

to add file upload, go to Webassist -> File Manipulation -> Upload

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...