Support the ongoing development of Laravel.io →
posted 11 years ago
Mail

I just started receiving this error after updating a package on a production server. Any help would be greatly appreciated.

I've tried to remove the package, delete compiled.php, rerun composer update but nothing seems to fix it.

Symfony\Component\Debug\Exception\FatalErrorException/.../vendor/laravel/framework/src/Illuminate/Mail/MailServiceProvider.php:29

Call to protected method Illuminate\Mail\MailServiceProvider::registerSwiftMailer() from context

Last updated 3 years ago.
0

It looks like the issue was caused by my older version of PHP 5.3.3 and Laravel 4.1.24. I just changed my version to 4.1.23 in the composer.json file and it fixed the issue.

Any ideas how to fix this going forward, please let me know.

Last updated 3 years ago.
0

I had the same problem with Laravel 4.1.24 and PHP 5.3.10. Rolled back to 4.1.23 and the error message disapeared.

Last updated 3 years ago.
0

You weren't on .24, but the latest commit on the 4.1 branch.

Change minimum-stability to stable in composer.json and change the version back to 4.1.* and it should work fine.

Last updated 3 years ago.
0

@jveldboom This has now been fixed in the 4.1 branch.

If your minimum-stability is still set to dev, just run composer update.

Last updated 3 years ago.
0

FYI, I've just gone through this very same error.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

jveldboom jveldboom Joined 19 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.