PHP VERSION 5.4, order emails wont sent!
-
Dear Friends,
Firstly i wanna thanks u all guys who gave effort for this great plugin.
My problem is, i cant recieve any emails from the plugin, neighter order emails nor new customer registration password emails.
My host provider provides 3 PHP version which are 5.4 , 5.5 and 5.6.
They are not willing to downgrade it to PHP 5.3 coz of security reasons.I just wanted to ask, is wp-pizza onyl compatible with PHP 5.3 or i am missing something? I moved a copy of my website to another server which has PHP 5.3 and i can recieve emails. However i have a contract with my provider and i can not cancel it.
So i am kindly asking is there anyway to make it works with PHP 5.4 or 5.5?
Thank you very much for your support.
Regards from Austria
-
it works fine with all of those (running it here quite happily with 5.3, 5.4, 5.5…
there is something else wrong .
probably your server doesn’t send emails full stop or your mail function has been disabled or whatever….dunno reallyespecially if normal wordpress registration emails are not being sent it suggests that is the case (as that has nothing to do with the plugin)
Dear Ollybach,
Thank you for your quick responce.
Could you please check out my wp and the plugin if i give you access datas?
Thanks again.
by all means, but what exactly is it you want me to check?
if your server setup does not send emails, there’s nothing i can do from here.
it’s your server administrator that should find out why your server is not sending emails…Dear Ollybach,
I talked them many times. They told me there is no problem with mail server but i need to check send mail path in wordpress and it must be like /usr/spin/sendmail, however i couldnt find this path in wordpress and i think it must be in php.ini.
I really dont know what the problem is. i thought its just coz of PHP version but you say its not a problem at all.
So, in case the problem related with the plugin , i request that u check my wp intallation.
I would be appreciate if you can do that.
How can i send you the wp-admin name and password?
Thank you very much.
they don’t know what they are talking about.
sendmail is set in your php.ini (so you are right on that front)
if you really want to send me access details, send them to dev[at]wp-pizza.com
(i still don’t think i will be able to help though as I won’t have access to your php ini)
you can also create a file called info.php (or whatever.php) put the following code in it
<?php phpinfo(); ?>copy it to your webservers root and let me know when you are done so i can at least have a look at the php settings
(again, I wont be able to change things though, and – in any case – it would be our responsibility to change settings and/or make edits)
I have already sent an email to you.
in case others read this.
your server has suhosin.mail.protect enabled.
although i don’t know if this is the cause (your logfiles might be able to tell you more) try turning this off in your php.ini and see if this helpsThank you ollybach. I am sending an email to my provider and i will let you know if the problem solved or not.
Thanks again
you could probably/possibly do this yourself though by using a .user.ini or php.ini in your wordpress install (as your server is using fastcgi)
if you give me a link which describes how to do, i will try !
Thank you.
Dear Ollybach,
As you also saw, i installed 3 different smtp emailer plugin , however none of them did really worked. Same error with all plugins, smtp connect() failed!
I tried with hotmail, gmail, even with the host smtp server but no result.
I send you test-mail logs from both (first one php-mailer and second one is smtp_mailer)
*******************phpmailer***************************
The result was:
bool(true)
The full debugging output is shown below:
object(PHPMailer)#4799 (69) {
[“Version”]=>
string(5) “5.2.7”
[“Priority”]=>
int(3)
[“CharSet”]=>
string(5) “UTF-8”
[“ContentType”]=>
string(10) “text/plain”
[“Encoding”]=>
string(4) “8bit”
[“ErrorInfo”]=>
string(0) “”
[“From”]=>
string(22) “[email protected]”
[“FromName”]=>
string(9) “WordPress”
[“Sender”]=>
string(0) “”
[“ReturnPath”]=>
string(0) “”
[“Subject”]=>
string(51) “WP Mail SMTP: Test mail to [email protected]”
[“Body”]=>
string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
[“AltBody”]=>
string(0) “”
[“Ical”]=>
string(0) “”
[“MIMEBody”:protected]=>
string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.
“
[“MIMEHeader”:protected]=>
string(352) “Date: Wed, 8 Oct 2014 03:21:50 +0000
Return-Path:
From: WordPress
Message-ID:
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
“
[“mailHeader”:protected]=>
string(90) “To: [email protected]
Subject: WP Mail SMTP: Test mail to [email protected]
“
[“WordWrap”]=>
int(0)
[“Mailer”]=>
string(4) “mail”
[“Sendmail”]=>
string(18) “/usr/sbin/sendmail”
[“UseSendmailOptions”]=>
bool(true)
[“PluginDir”]=>
string(0) “”
[“ConfirmReadingTo”]=>
string(0) “”
[“Hostname”]=>
string(0) “”
[“MessageID”]=>
string(0) “”
[“MessageDate”]=>
string(0) “”
[“Host”]=>
string(9) “localhost”
[“Port”]=>
int(25)
[“Helo”]=>
string(0) “”
[“SMTPSecure”]=>
string(0) “”
[“SMTPAuth”]=>
bool(false)
[“Username”]=>
string(0) “”
[“Password”]=>
string(0) “”
[“AuthType”]=>
string(0) “”
[“Realm”]=>
string(0) “”
[“Workstation”]=>
string(0) “”
[“Timeout”]=>
int(10)
[“SMTPDebug”]=>
bool(true)
[“Debugoutput”]=>
string(4) “echo”
[“SMTPKeepAlive”]=>
bool(false)
[“SingleTo”]=>
bool(false)
[“SingleToArray”]=>
array(0) {
}
[“do_verp”]=>
bool(false)
[“AllowEmpty”]=>
bool(false)
[“LE”]=>
string(1) “
“
[“DKIM_selector”]=>
string(0) “”
[“DKIM_identity”]=>
string(0) “”
[“DKIM_passphrase”]=>
string(0) “”
[“DKIM_domain”]=>
string(0) “”
[“DKIM_private”]=>
string(0) “”
[“action_function”]=>
string(0) “”
[“XMailer”]=>
string(0) “”
[“smtp”:protected]=>
NULL
[“to”:protected]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(24) “[email protected]”
[1]=>
string(0) “”
}
}
[“cc”:protected]=>
array(0) {
}
[“bcc”:protected]=>
array(0) {
}
[“ReplyTo”:protected]=>
array(0) {
}
[“all_recipients”:protected]=>
array(1) {
[“[email protected]”]=>
bool(true)
}
[“attachment”:protected]=>
array(0) {
}
[“CustomHeader”:protected]=>
array(0) {
}
[“lastMessageID”:protected]=>
string(51) “”
[“message_type”:protected]=>
string(5) “plain”
[“boundary”:protected]=>
array(3) {
[1]=>
string(35) “b1_bfeed4380d6c9b37ccba980e9b6f6b43”
[2]=>
string(35) “b2_bfeed4380d6c9b37ccba980e9b6f6b43”
[3]=>
string(35) “b3_bfeed4380d6c9b37ccba980e9b6f6b43”
}
[“language”:protected]=>
array(0) {
}
[“error_count”:protected]=>
int(0)
[“sign_cert_file”:protected]=>
string(0) “”
[“sign_key_file”:protected]=>
string(0) “”
[“sign_key_pass”:protected]=>
string(0) “”
[“exceptions”:protected]=>
bool(true)
}
The SMTP debugging output is shown below:************************SMTP_mailer*********************************
The result was:
bool(false)
The full debugging output is shown below:
object(PHPMailer)#4799 (69) {
[“Version”]=>
string(5) “5.2.7”
[“Priority”]=>
int(3)
[“CharSet”]=>
string(5) “UTF-8”
[“ContentType”]=>
string(10) “text/plain”
[“Encoding”]=>
string(4) “8bit”
[“ErrorInfo”]=>
string(22) “SMTP connect() failed.”
[“From”]=>
string(22) “[email protected]”
[“FromName”]=>
string(9) “WordPress”
[“Sender”]=>
string(0) “”
[“ReturnPath”]=>
string(0) “”
[“Subject”]=>
string(46) “WP Mail SMTP: Test mail to [email protected]”
[“Body”]=>
string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
[“AltBody”]=>
string(0) “”
[“Ical”]=>
string(0) “”
[“MIMEBody”:protected]=>
string(69) “This is a test email generated by the WP Mail SMTP WordPress plugin.
“
[“MIMEHeader”:protected]=>
string(433) “Date: Wed, 8 Oct 2014 03:24:41 +0000
Return-Path:
To: [email protected]
From: WordPress
Subject: WP Mail SMTP: Test mail to [email protected]
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit“
[“mailHeader”:protected]=>
string(0) “”
[“WordWrap”]=>
int(0)
[“Mailer”]=>
string(4) “smtp”
[“Sendmail”]=>
string(18) “/usr/sbin/sendmail”
[“UseSendmailOptions”]=>
bool(true)
[“PluginDir”]=>
string(0) “”
[“ConfirmReadingTo”]=>
string(0) “”
[“Hostname”]=>
string(0) “”
[“MessageID”]=>
string(0) “”
[“MessageDate”]=>
string(0) “”
[“Host”]=>
string(14) “smtp.gmail.com”
[“Port”]=>
string(2) “25”
[“Helo”]=>
string(0) “”
[“SMTPSecure”]=>
string(3) “ssl”
[“SMTPAuth”]=>
bool(true)
[“Username”]=>
string(24) “[email protected]”
[“Password”]=>
string(13) “1071malazgirt”
[“AuthType”]=>
string(0) “”
[“Realm”]=>
string(0) “”
[“Workstation”]=>
string(0) “”
[“Timeout”]=>
int(10)
[“SMTPDebug”]=>
bool(true)
[“Debugoutput”]=>
string(4) “echo”
[“SMTPKeepAlive”]=>
bool(false)
[“SingleTo”]=>
bool(false)
[“SingleToArray”]=>
array(0) {
}
[“do_verp”]=>
bool(false)
[“AllowEmpty”]=>
bool(false)
[“LE”]=>
string(1) “
“
[“DKIM_selector”]=>
string(0) “”
[“DKIM_identity”]=>
string(0) “”
[“DKIM_passphrase”]=>
string(0) “”
[“DKIM_domain”]=>
string(0) “”
[“DKIM_private”]=>
string(0) “”
[“action_function”]=>
string(0) “”
[“XMailer”]=>
string(0) “”
[“smtp”:protected]=>
object(SMTP)#4800 (12) {
[“Version”]=>
string(5) “5.2.7”
[“SMTP_PORT”]=>
int(25)
[“CRLF”]=>
string(2) “
“
[“do_debug”]=>
bool(true)
[“Debugoutput”]=>
string(4) “echo”
[“do_verp”]=>
bool(false)
[“Timeout”]=>
int(10)
[“Timelimit”]=>
int(30)
[“smtp_conn”:protected]=>
bool(false)
[“error”:protected]=>
NULL
[“helo_rply”:protected]=>
NULL
[“last_reply”:protected]=>
string(0) “”
}
[“to”:protected]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(19) “[email protected]”
[1]=>
string(0) “”
}
}
[“cc”:protected]=>
array(0) {
}
[“bcc”:protected]=>
array(0) {
}
[“ReplyTo”:protected]=>
array(0) {
}
[“all_recipients”:protected]=>
array(1) {
[“[email protected]”]=>
bool(true)
}
[“attachment”:protected]=>
array(0) {
}
[“CustomHeader”:protected]=>
array(0) {
}
[“lastMessageID”:protected]=>
string(51) “<[email protected]>”
[“message_type”:protected]=>
string(5) “plain”
[“boundary”:protected]=>
array(3) {
[1]=>
string(35) “b1_4126d18df8ba7b07c1ff8fd33c8be7ec”
[2]=>
string(35) “b2_4126d18df8ba7b07c1ff8fd33c8be7ec”
[3]=>
string(35) “b3_4126d18df8ba7b07c1ff8fd33c8be7ec”
}
[“language”:protected]=>
array(18) {
[“authenticate”]=>
string(35) “SMTP Error: Could not authenticate.”
[“connect_host”]=>
string(43) “SMTP Error: Could not connect to SMTP host.”
[“data_not_accepted”]=>
string(30) “SMTP Error: data not accepted.”
[“empty_message”]=>
string(18) “Message body empty”
[“encoding”]=>
string(18) “Unknown encoding: “
[“execute”]=>
string(19) “Could not execute: “
[“file_access”]=>
string(23) “Could not access file: “
[“file_open”]=>
string(33) “File Error: Could not open file: “
[“from_failed”]=>
string(35) “The following From address failed: “
[“instantiate”]=>
string(36) “Could not instantiate mail function.”
[“invalid_address”]=>
string(15) “Invalid address”
[“mailer_not_supported”]=>
string(25) ” mailer is not supported.”
[“provide_address”]=>
string(54) “You must provide at least one recipient email address.”
[“recipients_failed”]=>
string(45) “SMTP Error: The following recipients failed: “
[“signing”]=>
string(15) “Signing Error: “
[“smtp_connect_failed”]=>
string(22) “SMTP connect() failed.”
[“smtp_error”]=>
string(19) “SMTP server error: “
[“variable_set”]=>
string(30) “Cannot set or reset variable: “
}
[“error_count”:protected]=>
int(2)
[“sign_cert_file”:protected]=>
string(0) “”
[“sign_key_file”:protected]=>
string(0) “”
[“sign_key_pass”:protected]=>
string(0) “”
[“exceptions”:protected]=>
bool(true)
}
The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)As you can see, phpmailer seems to be working coz test email is positive but accualy there is no incoming email!
And with SMTP_emailer as you can also see result ist negative with connection timeout problem.
I believe that you are right about the mail protection of my provider. I requested them for deactivating the protection. lets see what they gonna do.
By the way , i red several artikels about creating custom php.ini, however as you can also see from both logs, sendemail path is exactly same as they told me and i dont know if any custom php.ini would help or not.
Thanks again for your kindly support.
See you tomorrow (today i mean :))
ehem….do you think it’s a good idea (apart from the length of the whole thing – at least use code tags or better still , use pastebin ) to post your email username and password here ?
CHANGE IT NOW
i would suggest to turn on debug in wordpress by adding this to your wp-config.php
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);and check what your debug.log says in wp-content
maybe this will tell you something more.
other than that you would also want to look at all your other server logs.if you don’t have access to server logs ask your host to send them to you….
there isn’t really anything else i can suggest or indeed do.
The topic ‘PHP VERSION 5.4, order emails wont sent!’ is closed to new replies.