We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Fatal error when sending email contact form

Development and Programming

paultz's avatar
paultz
19 posts
9 years ago
paultz's avatar paultz

Fatal error: Using $this when not in object context in ../expressionengine/libraries/Core.php on line 575 when sending Email Contact Form on ExpressionEngine 2.10.1

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Hey paultz, sorry about that. It sounds like you are running on an old version of PHP, please see this bug report for details.

       
antistatic's avatar
antistatic
3 posts
9 years ago
antistatic's avatar antistatic

I am experiencing the same problem on a client’s site with Freeform 4.2.4 running on EE 2.10.2. Server settings: PHP Version 5.3.10-1ubuntu3.21. MySQL 5.5.46.

       
Derek Jones's avatar
Derek Jones
7,561 posts
9 years ago
Derek Jones's avatar Derek Jones

Same situation, @antistatic, the error is due to running PHP 5.3. While we technically support 5.3.10 still (so it is a valid bug report), it is definitely time to upgrade. From my comments in a similar thread:


For what it’s worth, PHP 5.3 hasn’t been supported for almost a year and a half (by the PHP Group), and PHP 5.4 for four months. Any host that doesn’t offer at least 5.4, I’d migrate away from post haste.

PHP Supported Versions


So it may be a mixed blessing that we mistakenly used PHP syntax that requires PHP 5.4+, as it exposed an environmental weakness for you that can easily be remedied.

       
antistatic's avatar
antistatic
3 posts
9 years ago
antistatic's avatar antistatic

Hey Derek, the updates outlined in that post worked for me. Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.