close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Universal Email missing picture

Thread began 2/28/2013 11:50 am by john70964 | Last modified 4/08/2013 12:39 pm by Jason Byrnes | 695 views | 9 replies |

john70964

Universal Email missing picture

Good afternoon
I am using Universal email to cause an image to display in an email.

I have checked the image is present in the images folder and the correct image name is present in the database table field.

The email which is returned has all details correct except the image will not show.
The code in universal email is
<img src="http://boat-for-sale.co.uk/BoatImages/<?php echo $row_rs['Image1_250']?>" />

but the code in the email returns
<td colspan="3" style="font-size: 12px; padding: 3px;"><img src="http://boat-for-sale.co.uk/BoatImages/NoImageDot.jpg" />

I checked correctimagename.jpg and the image shows correctly

The NoImageDot.jpg is the default field name before the field is updated.

It seems the email takes the image name before the field is updated.
Can this be changed?
I am attaching the file containing the code.
Many thanks
John

Attached Files
waue_boat_insert_images_Free_1.zip
Sign in to reply to this post

Jason ByrnesWebAssist

most likely the code to define the recordset is before the code to perform the update.

make sure the code order is:
Update Record
Create Recordset
Send Email

Sign in to reply to this post

john70964

Thanks Jason
I had two files with this problem the first file was corrected immediately with the reordering.
The second file creates the following messages. I checked there are no spaces in between tags.

Warning: Invalid argument supplied for foreach() in /home/jh10/boat-for-sale.co.uk/webassist/file_manipulation/helperphp.php on line 78

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/jh10/boat-for-sale.co.uk/webassist/file_manipulation/helperphp.php:78) in /home/jh10/boat-for-sale.co.uk/webassist/email/mail_php.php on line 274

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jh10/boat-for-sale.co.uk/webassist/file_manipulation/helperphp.php:78) in /home/jh10/boat-for-sale.co.uk/webassist/email/mail_php.php on line 274

Warning: Cannot modify header information - headers already sent by (output started at /home/jh10/boat-for-sale.co.uk/webassist/file_manipulation/helperphp.php:78) in /home/jh10/boat-for-sale.co.uk/BoatAds180/boat_insert_images.php on line 386

I am attaching the zipped file

Attached Files
boat_insert_images.zip
Sign in to reply to this post

Jason ByrnesWebAssist

to help troubleshoot, add the following code at line 1:

php:
<?php

if(isset($_FILES)) { 
var_dump($_FILES);
}
?>



and post back the result.

Sign in to reply to this post

john70964

If I test on my local PC its OK
If I test on the remote server I get
The message is:

array(10) { ["Image1"]=> array(5) { ["name"]=> string(8) "1_45.jpg" ["type"]=> string(10) "image/jpeg" ["tmp_name"]=> string(14) "/tmp/phpt7Ynat" ["error"]=> int(0) ["size"]=> int(18958) } ["Image2"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image3"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image4"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image5"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image6"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image7"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image8"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image9"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } ["image10"]=> array(5) { ["name"]=> string(0) "" ["type"]=> string(0) "" ["tmp_name"]=> string(0) "" ["error"]=> int(4) ["size"]=> int(0) } }
Warning: Invalid argument supplied for foreach() in /home/jh10/boat-for-sale.co.uk/webassist/file_manipulation/helperphp.php on line 78

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/jh10/boat-for-sale.co.uk/BoatAds180/boat_insert_images.php:3) in /home/jh10/boat-for-sale.co.uk/webassist/email/mail_php.php on line 274

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/jh10/boat-for-sale.co.uk/BoatAds180/boat_insert_images.php:3) in /home/jh10/boat-for-sale.co.uk/webassist/email/mail_php.php on line 274

Warning: Cannot modify header information - headers already sent by (output started at /home/jh10/boat-for-sale.co.uk/BoatAds180/boat_insert_images.php:3) in /home/jh10/boat-for-sale.co.uk/BoatAds180/boat_insert_images.php on line 391

Sign in to reply to this post

Jason ByrnesWebAssist

did you select a file for all of the file fields? or only for the first one?

could be that you are running into server limitations for the max input time setting, or the post max size setting or another of the php.ini settings that effect file uploading.

for a list of those settings, see this page:
wap_upload.asp?page=php2

Sign in to reply to this post

john70964

Thanks
I am selecting only one file for the upload in this case although anyone could select upto 10 files.

Its strange because the another upload file which is almost the same completes with no problems.

The file I am uploading is only about 82 kb

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

john70964

When I moved the code to create the following order

Update Record
Create Recordset
Send Email

I seem to have moved some incorrect code.

Jason kindly corrected this for me.

Thank you Jason

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