Troubles with KT_Email.class.php
-
- Posts: 4
- Joined: 2012-11-06 13:15
Troubles with KT_Email.class.php
Hi All,
I'm new here and love this place already. IMHO MXKollection is (was) the best tool ever created for a small website developer like me.
I can't find solution for the following problem:
User registration form is trying to send confirmation email but fails with a stack of messages (see below).
Server: localhost
PHP: 5.4.7
error_reporting = E_ALL ^ E_STRICT
problem start in line 225 of KT_Email.class.php:
$mail_object = &Mail::factory('smtp', $arrSMTPParameters);
Well, I'm not very good with php so I can't fix this and I also wasn't able to find the was to get rid of this warning.
Is there any solution&idea for this?
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\PEAR.php on line 557
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\PEAR.php on line 560
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail.php on line 134
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 189
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 127
Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\KT_Email.class.php on line 225
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 203
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 307
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 308
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 207
Many thanks for any help!
Alexey
I'm new here and love this place already. IMHO MXKollection is (was) the best tool ever created for a small website developer like me.
I can't find solution for the following problem:
User registration form is trying to send confirmation email but fails with a stack of messages (see below).
Server: localhost
PHP: 5.4.7
error_reporting = E_ALL ^ E_STRICT
problem start in line 225 of KT_Email.class.php:
$mail_object = &Mail::factory('smtp', $arrSMTPParameters);
Well, I'm not very good with php so I can't fix this and I also wasn't able to find the was to get rid of this warning.
Is there any solution&idea for this?
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\PEAR.php on line 557
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\PEAR.php on line 560
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail.php on line 134
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 189
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 127
Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\KT_Email.class.php on line 225
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 203
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 307
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 308
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 207
Many thanks for any help!
Alexey
Re: Troubles with KT_Email.class.php
Hi Alexey,
Did you download the patched files.
Sure the fix is included in there.
Or post the lines of code here so we can take a look.
Did you download the patched files.
Sure the fix is included in there.
Or post the lines of code here so we can take a look.
-
- Posts: 4
- Joined: 2012-11-06 13:15
Re: Troubles with KT_Email.class.php
Hi Fred,
Sure I did and it solved many problems except this one. I guess it is something to do with PEAR but I'm not quite sure.
Sure I did and it solved many problems except this one. I guess it is something to do with PEAR but I'm not quite sure.
Re: Troubles with KT_Email.class.php
Post this line I want to check something.
PEAR.php on line 557
PEAR.php on line 557
-
- Posts: 4
- Joined: 2012-11-06 13:15
Re: Troubles with KT_Email.class.php
These are the lines from 549 to 562 of PEAR.php:
Do you see anything special here?
Code: Select all
if ($error_class !== null) {
$ec = $error_class;
} elseif (isset($this) && isset($this->_error_class)) {
$ec = $this->_error_class;
} else {
$ec = 'PEAR_Error';
}
if ($skipmsg) {
$a = &new $ec($code, $mode, $options, $userinfo);
return $a;
} else {
$a = &new $ec($message, $code, $mode, $options, $userinfo);
return $a;
}
Re: Troubles with KT_Email.class.php
yes there are mistakes in the code.
Download this zip file here. It is my current files.
http://www.interaktonline.info/download ... nload.html
Note:
My settings is not set to error_reporting = E_ALL ^ E_STRICT so there might be more warnings.
Please let me know.
Download this zip file here. It is my current files.
http://www.interaktonline.info/download ... nload.html
Note:
My settings is not set to error_reporting = E_ALL ^ E_STRICT so there might be more warnings.
Please let me know.
-
- Posts: 4
- Joined: 2012-11-06 13:15
Re: Troubles with KT_Email.class.php
Hi Fred,
Thanks for the code! It didn't help though: email is still not send. I set php.ini to E_ALL so here is the error I'm getting right now:
My php is 5.4.7 and PEAR seems to be enabled (as I see from phpinfo).
Well, this is not a disaster for me so if this takes you really much effort I don't mind if you leave it as it is. On my destination hosting (Lunarpages) with php 5.3.15 everything works just fine. phpinfo there doesn't show any PEAR. I guess they have some alternative installed on their servers (Phar?).
Many thanks for your time!
Alexey
Thanks for the code! It didn't help though: email is still not send. I set php.ini to E_ALL so here is the error I'm getting right now:
Code: Select all
Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\KT_Email.class.php on line 223
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 203
Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 307
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Net\SMTP.php on line 308
Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\htdocs\includes\common\lib\email\Pear\Mail\smtp.php on line 207
Well, this is not a disaster for me so if this takes you really much effort I don't mind if you leave it as it is. On my destination hosting (Lunarpages) with php 5.3.15 everything works just fine. phpinfo there doesn't show any PEAR. I guess they have some alternative installed on their servers (Phar?).
Many thanks for your time!
Alexey
Re: Troubles with KT_Email.class.php
No we need to fix it.
Will take a look at the issue.
Will take a look at the issue.
Re: Troubles with KT_Email.class.php
Change this line
C:\xampp\htdocs\includes\common\lib\email\KT_Email.class.php on line 223
from
to
The isError() instances is a pear issue that I will look into.
Changing the display_errors value in the php.ini to "Off" suppressed these errors.
See this list here http://www.gossamer-threads.com/lists/w ... ded#305625
C:\xampp\htdocs\includes\common\lib\email\KT_Email.class.php on line 223
from
Code: Select all
$mail_object = &Mail::factory('smtp', $arrSMTPParameters);
Code: Select all
$mail_object = Mail::factory('smtp', $arrSMTPParameters);
Changing the display_errors value in the php.ini to "Off" suppressed these errors.
See this list here http://www.gossamer-threads.com/lists/w ... ded#305625
Re: Troubles with KT_Email.class.php
Hi Fred,
Thanks for your kind help, My name is Waleed Barakat, i was posting InterAKT online and ADDT development tutorials in Adobe ADDT forums, if you didn't remember me forget this.
Anyway i am facing the same problem when sending emails with this details:
I have tried the help you offered but it seems not working, Any suggestions?
Thanks for your kind help, My name is Waleed Barakat, i was posting InterAKT online and ADDT development tutorials in Adobe ADDT forums, if you didn't remember me forget this.
Anyway i am facing the same problem when sending emails with this details:
Code: Select all
[17-Jan-2016 14:18:24 CST6CDT] PHP Strict Standards: Non-static method Mail::factory() should not be called statically, assuming $this from incompatible context in /home/al3abmi/public_html/hannywbarek.com/includes/common/lib/email/KT_Email.class.php on line 229
[17-Jan-2016 14:18:24 CST6CDT] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/al3abmi/public_html/hannywbarek.com/includes/common/lib/email/Pear/Mail.php on line 136
[17-Jan-2016 14:18:24 CST6CDT] PHP Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /home/al3abmi/public_html/hannywbarek.com/includes/common/lib/email/Pear/Mail/mail.php on line 103
My best wishes & greetings
Al3abMizo Games
Al3abMizo Games