close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ImageFile Resize Error

Thread began 5/26/2011 5:17 am by cherry8723424721 | Last modified 5/27/2011 6:49 am by Jason Byrnes | 2523 views | 12 replies |

cherry8723424721

ImageFile Resize Error

Hi Jason:

I'm uploading and displaying image files perfectly well in DW5 using Data Assist. However, now that I'm trying to resize the images to fit a box (200 x 200 px) I get the following error message:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\LovingPanda.com\EnterProfile(2).php on line 38

Why is that? When I upload image files without resizing them DW works well, but when trying to resize them, it gives an error message. Any suggestions on how to solve this?

Thank you for your attention.

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of the EnterProfile(2).php page in a zip archive so I can examine the code.

Sign in to reply to this post

cherry8723424721

Jason:

Attached please find the page in question.

Attached Files
EnterProfile(2).zip
Sign in to reply to this post

Jason ByrnesWebAssist

the problem is caused by the rename new file value you entered.

For the rename to, click the lightning bolt and reselect the email2 form element.

Sign in to reply to this post

cherry8723424721

Jason:

Sorry, this is the right page.

Attached Files
EnterProfile(2).zip
Sign in to reply to this post

cherry8723424721

Jason:

I reselected the email2 value, but it still gives me the error message. In looking at the code I see many "\" backslashes between line 38 and 39. Is that supposed to be OK?

Sign in to reply to this post

Jason ByrnesWebAssist

still the same problem, see my previous reply:
showpost.php?p=99870&postcount=4

Sign in to reply to this post

cherry8723424721

Jason:

I have reentered the filename email2 by clicking on the lightening bolt and selecting it, but I still get the same error message:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\LovingPanda.com\EnterProfile.php on line 37

The code around line 37 is this one;

<?php
WA_DFP_SetupUploadStatusStruct("WA_UploadResult1");
if(isset($_POST["Submit"])){
WA_DFP_UploadFiles("WA_UploadResult1", "UploadPhoto", "2", "".((isset($_POST["email2"]))?$_POST["email2"]:"") ."?$_POST[\\\"email2\\\"]:\\\"\\\") .\\\"", "true", $WA_UploadResult1_Params);
}
?>
<?php

Line 37 is the indented one (WA_DFP_UploadFiles...)

Sign in to reply to this post

Jason ByrnesWebAssist

this line:

php:
WA_DFP_UploadFiles("WA_UploadResult1", "UploadPhoto", "2", "".((isset($_POST["email2"]))?$_POST["email2"]:"") ."?$_POST[\\\"email2\\\"]:\\\"\\\") .\\\"", "true", $WA_UploadResult1_Params);



should be:

php:
WA_DFP_UploadFiles("WA_UploadResult1", "UploadPhoto", "2", "".((isset($_POST["email2"]))?$_POST["email2"]:"") ."?$_POST["email2"]:"") ."", "true", $WA_UploadResult1_Params);
Sign in to reply to this post

cherry8723424721

Jason:

I re-installed the whole upload extension and now the file is uploading and resizing well. But the problem is that the page is no longer centered; it appears on the lef-hand side of the screen and it's a bit deformed.

Attached please find a copy of the page.

Attached Files
EnterProfile.zip
Sign in to reply to this post
loading

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...