Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Getting `Fatal error: Class 'SmtpMailer' not found` for some users


Go to End


989 Views

Avatar
FredRF

Community Member, 3 Posts

28 January 2017 at 12:42am

Hi,

I am having the most bizarre bug.

I am getting the following error:
Fatal error: Class 'SmtpMailer' not found in /application/_config.php on line 122

The line involved is
Email::set_mailer(new SmtpMailer());

The strange thing is, the website displays correctly for some users. They don't get the bug.

I added some `print "abc";` code in the _config.php to see if something was cached, but very bizarrely I can see the print result before the bug and also before the site correctly rendered.

I tried ?flush=1 and /dev/build, but nothing seem to fix this issue.

Any idea as to what it could possibly be?

Fred