Warning: [ err 2/line...

User 476362 Photo


Registered User
7 posts

Hello,
Our form at http://vivalavidainlava.com/reservation-form_exported/reservation-form.php just started showing this error even though the form has gone through:
Your form could not be submitted for the following reason(s):
• Warning: [ err 2/line 248/mailer.cls.php] mail(/var/log/php_maillog): failed to open stream: Permission denied

We are receiving 3 or 4 submissions from each person because they don’t think it is going through.

Lines 244 - 248 in mailer.cls.php shows:
// safe_mode doesn't allow a 'from' parameter
if( empty( $this->from ) || ini_get( 'safe_mode' ) )
$result = mail( $this->to, $this->subject, $this->message, $headers );
else
$result = mail( $this->to, $this->subject, $this->message, $headers, '-f ' . $this->from );

Under Email notices we have:
To: livethelife300@gmail.com
From: livethelife300@gmail.com

The Email notification message is:
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head><title>You got mail!</title></head>
<h1 style="font-size: 20px !important; color: #cccccc !important; margin: 0px;">Viva La Vida Reservation Request</h1>
<div>
[_form_results_]
</div>
</body>
</html>

This error occurs on all browsers and from all email providers. The website is hosted on machighway.com.
Please help ASAP.
Thank you!

User 103173 Photo


VP of Software Development
0 posts

There can be 2 possible issues here:

1. This issue could be caused by permissions not being properly set on your server. With an FTP client, locate the folder called storage and change the permissions for that folder and all folders under it to 755. That should then fix the issue.

2. That could be caused by PHP Sessions not being enabled on your server. All you need to do is contact your hosting provider and have them enable PHP Sessions and your form will start to work.

Alternatively, if they cannot enable PHP Sessions, you can publish to S-Drive as our servers do have PHP Sessions enabled.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.