Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2016-05-29 22:16:24

bussmst
Member
Registered: 2016-03-29
Posts: 5

Error message when sending Emails with PHP Version 7

Hi together

I get the following error message when I send an Email out of my backlight contact site, when the server PHP Version is set to Version 7.0. Version 5.6 is working fine.

Something went wrong
Methods with the same name as their class will not be constructors in a future version of PHP; SMTP has a deprecated constructor in SMTP.php on line 39

Has anyone an idea to fix this?

Thanks
Stefan

Offline

#2 2016-05-29 22:53:27

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Error message when sending Emails with PHP Version 7

Hi Stefan,  thanks for pointing this out.  The file SMTP is third-party code.  I wasn't aware that it operated in this way.

For now, can you try editing the file backlight/framework/lib/SMTP.php and change line 78 from:

function SMTP() {

to:

function __construct() {

Please let us know whether that solves the problem.  If so, I will update this in Backlight for the next maintenance release.

Offline

#3 2016-05-30 02:01:22

bussmst
Member
Registered: 2016-03-29
Posts: 5

Re: Error message when sending Emails with PHP Version 7

Hi Ben

Thanks for the quick response.

That fixed the problem!

Stefan

Offline

Board footer

Powered by FluxBB