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.
Fatal Error
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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
Maybe I'll provide a NonResponse class or something which acts as a stub. I'm working on the events system right now anyway
Re: Fatal Error
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.
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.