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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error when sending message

Thread began 8/05/2011 9:29 am by Sally | Last modified 8/05/2011 4:52 pm by Jason Byrnes | 968 views | 5 replies |

Sally

Error when sending message

I've used this form before without problems, with attachments. But now I'm trying to send a message with a 1878kb pdf file (don't know if that matters) and I get the following error:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2636692 bytes) in /data/25/2/98/45/2424045/user/2657060/htdocs/spyglasscondos/webassist/email/mail_php.php on line 274


Lines 274-277 are:

session_start();
if (!isset($_SESSION[$mailRef."_Index"] )) $_SESSION[$mailRef."_Index"] = 1;
if (!isset($_SESSION[$mailRef."_Log"] ) || $_SESSION[$mailRef."_Index"] == 1) $_SESSION[$mailRef."_Log"] = "";
$_SESSION[$mailRef."_From"] = $mailFrom;

I'd appreciate any help as I'm stuck! Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

the uploaded file size is exceeding the php memory limit setting, try adding the following code at line 1 to increase the memory limit on the server:

php:
<?php

ini_set
("memory_limit""256M")
?>





you still run into other settings on the php server which will restrict the allowed file size, see the following page for a listing of php settings that can effect large file uploads:
wap_upload.asp?page=php2

Sign in to reply to this post

Sally

Thanks Jason. I added the line and I'm not sure if it fixed the problem or not. I had to send out two messages, each with a file. Both times I did get auto replies ("out of the office") from people who were at the end of the alphabet of the recordset, so I know at least some messages were sent. But both times instead of going to the "your message was sent" page I got a Problem Loading Page error page which said "The connection to the server was reset while the page was loading."

Do you think that means the message was sent correctly, but there was just a problem with loading the confirmation page?

I looked at the page on PHP directives but, not being a programmer, I'm not sure where/how I would use that code. I'm fine with saying there's a limit to how big an attachment people can send with the current form - but I don't know what file size that would be as I don't recall seeing that in any FB instructions.

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Most php servers have a default maximum file size of 2mb in place, this is not a limitation of form builder, but a limitation of the php sderver itself.

if you are not sure what the maximum is on your server, you can create a a new php file and add the following code to it:

php:
<?php phpinfo(); ?>



this will display all of the php.ini settings including the max upload file size.

the php directives from the link i sent you would need to be set in the php.ini file on your server, if you are unsure on how to change these, you would need to contact the host.

the Problem Loading Page error could mean that a php error occurred, but error reporting is turned off.

you can try adding the following code to line 1 of the page to see if it returns a more descriptive error:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors9'on');
?>
Sign in to reply to this post

Sally

Thanks.

The upload_max_filesize is 25mb so I don't think that was the problem.

I added the code to page and got the red line DW uses to highlight an error in coding (I think that's what it's for) for the line

ini_set('display_errors9'on');

I don't mind leaving it there if you say it's okay in case next time I have to send out a message I get the same problem.

Thanks, Jason. WA's support is fantastic.

Sign in to reply to this post

Jason ByrnesWebAssist

sorry, i was typing to fast and did not catch the syntax error,

the code should be:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errors','on');
?>
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...