Page 1 of 1

Fatal Error

Posted: Mon Jul 30, 2007 2:22 am
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.

Posted: Mon Jul 30, 2007 4:07 am
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 :)

Posted: Mon Jul 30, 2007 9:16 am
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.

Re: Fatal Error

Posted: Fri May 23, 2008 5:16 am
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.