Swift mailer problems and PHP version?

60 views
Skip to first unread message

deep sky blue

unread,
Oct 29, 2009, 11:28:49 AM10/29/09
to MailPress
When installing the MailPress plugin there's a warning that it was
developed for PHP 5.3 but a test in a local installation of PHP 5.2.5
worked fine. My server uses PHP 5.2.5

So I installed and activated the MailPress plugin. Configuring the
SMTP is a bit ambigous. My server requires SSL authentication through
port 465. The MailPress settings do not allow explicit choice of the
port parameter. Therefore when I try the test email, I get the
message:

"Fatal error: Uncaught exception 'LogicException' with message 'Passed
array specifies a non static method but no object' in /home/catch22b/
public_html/wp-content/plugins/mailpress/mp-includes/class/swift/
classes/Swift.php:73 Stack trace: #0 /home/catch22b/public_html/wp-
content/plugins/mailpress/mp-includes/class/swift/classes/Swift.php
(73): spl_autoload_register() #1 /home/catch22b/public_html/wp-content/
plugins/mailpress/mp-includes/class/swift/swift_required.php(32):
Swift::registerAutoload(Array) #2 /home/catch22b/public_html/wp-
content/plugins/mailpress/mp-includes/class/MP_Mail.class.php(721):
require_once('/home/catch22b/...') #3 /home/catch22b/public_html/wp-
content/plugins/mailpress/mp-includes/class/MP_Mail.class.php(189):
MP_Mail->swift_processing() #4 /home/catch22b/public_html/wp-content/
plugins/mailpress/mp-includes/class/MP_Mail.class.php(33): MP_Mail-
>start() #5 /home/catch22b/public_html/wp-content/plugins/mailpress/
MailPress.php(443): MP_Mail->send() #6 /home/catch22b/public_html/wp-
content/plugins/mailp in /home/catch22b/public_html/wp-content/plugins/
mailpress/mp-includes/class/swift/classes/Swift.php on line 73"

which is the same error another user was reporting in a different
thread.

However, the SMTP configuration required is correct, because I tested
the Cimy Swift SMTP, and the ShiftThis Swift SMTP plugins and the test
email was sent correctly. These plugins may however be prepared to use
versions of PHP lower than 5.3

I have been trying to setup mail services in my blog for weeks now,
and I know it's no one's fault if sometimes plugins do not work as
expected. But it is a damned frustrating experience to try every
conceivable solution and, for one reason or another, nothing works.

Perhaps there's a simple solution to make the MailPress services
available. I will appreciate very much any hint or suggestion allowing
me to solve the problem.

Thx

andré renaut

unread,
Oct 29, 2009, 12:03:05 PM10/29/09
to mail...@googlegroups.com
Shitft This and MailPress are using the same tool : swiftmailer

except that ShiftThis is using swiftmailer ver 3 and MailPress swiftmailer  ver 4.0.2 (which requires php 5.3 but i am using it on php 5.2.5 without any problem).

www.swiftmailer.org

So if your settings are working for ShiftThis, it should work for MailPress

i am personnally using gmail (TLS, port SSL/TLS/GMAIL which is 465)

Are swift classes loaded before MailPress loads its version.

Deactivate Cimy Swift SMTP, and the ShiftThis Swift SMTP plugins and make a test with MailPress alone ...



2009/10/29 deep sky blue <deep.s...@live.com>



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

deep sky blue

unread,
Oct 29, 2009, 1:58:49 PM10/29/09
to MailPress
I get the

"Uncaught exception 'LogicException' with message 'Passed array
specifies a non static method but no object' in /home/catch22b/
public_html/wp-content/plugins/mailpress/mp-includes/class/swift/
classes/Swift.php:73"

error.

Perhaps there are different environment variables in yours and mine
PHP 5.2.5 installation? I could pick up the Swift.php of the plugins
where it works and drop it on MailPress plugin but I am not sure
that's a good idea. Perhaps MailPress could test for PHP version and
use a Swift mailer appropriate to it?

I am really hanging here. Any suggestions?

Would the template chosen interfere with the Swift mailer operation,
or would the "MailPress version of wp_mail" checkbox interfere?

Thx.

andré renaut

unread,
Oct 29, 2009, 6:24:24 PM10/29/09
to mail...@googlegroups.com

deep sky blue

unread,
Oct 30, 2009, 9:40:03 AM10/30/09
to MailPress
I deactivated both plugins. I got the uncaught exception error.

andré renaut

unread,
Oct 30, 2009, 9:42:55 AM10/30/09
to mail...@googlegroups.com
i believe that on your config, the wrong version of swiftmailer is activated before MailPress loading its one.

2009/10/30 deep sky blue <deep.s...@live.com>


I deactivated both plugins. I got the uncaught exception error.

deep sky blue

unread,
Oct 30, 2009, 11:30:31 AM10/30/09
to MailPress
This was happening before I even tried those other plugins. I'll
delete them and try again if you like. Does it help that the Swift
mailer for those plugins are in a different folder form the MailPress
installation?

andré renaut

unread,
Oct 30, 2009, 11:54:19 AM10/30/09
to mail...@googlegroups.com
swiftmailer 3 and swiftmailer 4 are not compatible

2009/10/30 deep sky blue <deep.s...@live.com>

deep sky blue

unread,
Oct 30, 2009, 1:56:09 PM10/30/09
to MailPress
So, basically, no solution?

What do you think specifically causes the uncaught exception error?
Would it help if my hosting service was running PHP 5.3?

I am asking because being unable to see what the cause of the problem
is, means there's no way to address it. If the cause is known however,
there might be a chance to fix it, or in any case, we can see in what
circumstances the error will not occur.

Could you be a bit more specific about what you think is causing the
error?

Thx.

jmbis

unread,
Oct 30, 2009, 6:46:28 PM10/30/09
to MailPress
I have exactly the same problem. To cure it, I just removed a plugin
called "Smart Archives Reloaded", I dont know why it is causing Swift
to crash....I have tested this on several blogs with the same
result...It took me weeks to find that one out!
Now Mailpress run smooth.
I hope this tip will help you.

andré renaut

unread,
Oct 30, 2009, 8:13:01 PM10/30/09
to mail...@googlegroups.com
thanks jmbis

deep sky blue, i think a test with mailpress plugin alone is necessary

2009/10/30 jmbis <jmbis...@gmail.com>

deep sky blue

unread,
Oct 31, 2009, 4:42:48 PM10/31/09
to MailPress
Yes, yes. Thanks a million. I deactivated that same plugin and now
MailPress tests alright.

One further question. The signup sidebar widget has text input fields
a bit too long for my general theme. Where should I edit the length to
shorten them? I tried sidebar.php but to no effect.

Could you please tell me the file and where the input length of the
text fields is specified?

Thx.

andré renaut

unread,
Oct 31, 2009, 6:17:16 PM10/31/09
to mail...@googlegroups.com
you can do it modifying the css of your wordpress theme

deep sky blue

unread,
Oct 31, 2009, 7:25:26 PM10/31/09
to MailPress
I will not change Magazine Basic because of a specification in YOUR
code.

At same place you specify the text input fields to be 25 characters
wide, for the sidebar widget. Would it be too much trouble to tell me
where? I do not know much about PHP or CSS and for hours I have been
around this. If you think this is matter for paid support, please
state so.

Thx.

andré renaut

unread,
Oct 31, 2009, 7:52:22 PM10/31/09
to mail...@googlegroups.com
the form code is in
  • /wp-content/plugins/mailpress/mp-includes/class/MP_Widget.class.php
line 190 191

2009/11/1 deep sky blue <deep.s...@live.com>

deep sky blue

unread,
Oct 31, 2009, 8:38:23 PM10/31/09
to MailPress
Thanks. Thank you very much.

Does MailPress delete subscribers that fail to confirm their email? In
the help resources at your site could you also specify what
autoresponders and the bouncing of emails can be used for?

In particular can I set the autoresponder to email me @admin every
time some one subscribes to comments or the blog?

Thanks for the plugin services and your help.
Message has been deleted
Message has been deleted

Bohdan

unread,
Dec 5, 2009, 9:43:26 AM12/5/09
to MailPress
The same problem with "Custom Field Taxonomies" plugin.
If this plugin activated - I have "Fatal error: Uncaught exception
'LogicException' ....."
Reply all
Reply to author
Forward
0 new messages