Fatal Error

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
hurting
Forum Newbie
Posts: 3
Joined: Mon Jul 30, 2007 2:06 am

Fatal Error

Post by hurting »

Hi all,

I just started using Swift and ran into a problem when testing locally. As a note, remote tests seem to work.

In any case, when trying to run the smoke tests I receive the following :

Fatal error: Call to a member function getString() on a non-object in ...\Swift-3.2.6-php4\lib\Swift\Authenticator\CRAMMD5.php on line 36

The variable in question is $res which is a reference to $swift->command("AUTH CRAM-MD5", 334)

I'm pretty sure my ISP blocks outgoing on port 25 so I expected local testing to fail, but does that explain the error above?

Thanks.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Yeah that shouldn't happen, I'll try to reproduce that myself. I know what's happened though. Swift's entire underbelly is event-driven and the response is read as part of an event. The ResponseEvent probably never actually fired so the variable likely just holds 'null'.

Maybe I'll provide a NonResponse class or something which acts as a stub. I'm working on the events system right now anyway :)
hurting
Forum Newbie
Posts: 3
Joined: Mon Jul 30, 2007 2:06 am

Post by hurting »

Thanks for the reply and thanks for Swift. I just started working with it but so far it seems like a great and easy to use tool.
xeorex
Forum Newbie
Posts: 6
Joined: Sat May 17, 2008 2:28 pm

Re: Fatal Error

Post by xeorex »

I have a similar problem.

My PHP log is as following:
[Fri May 23 10:13:02 2008] [error] [client 01.03.08.05] PHP Fatal error: runauthenticators() [<a href='function.require'>function.require</a>]: Failed opening required '/var/www/vhosts/domain.com/httpdocs/swiftmailer-php4/lib/Swift/Connection/../Authenticator/CRAMMD5.php' (include_path='.:') in /var/www/vhosts/domain.com/httpdocs/swiftmailer-php4/lib/Swift/Connection/SMTP.php on line 388, referer: https://www.domain.com/

I use swiftmailer in two different scripts. In both scripts I get this fatal error after having send 868 emails to be exact.
Post Reply