New PHP8.2 error (Swift Mailer 5)

16 posts by 4 authors in: Forums > CMS Builder
Last Post: October 6, 2023   (RSS)

  • Archived  

By Dave - April 3, 2023

Thanks Djulia, 

Can you check if adding a @ to @call_user_func_array( on line 27 suppresses the deprecated error? 

Dave Edis - Senior Developer
interactivetools.com
  • Archived  

By Djulia - April 5, 2023

Perfect! Thanks! :)

  • Archived  

By Djulia - April 29, 2023

Hi Dave,

I have another alert :

Callables of the form ["Swift_MimePart", "Swift_Mime_MimePart::__construct"] are deprecated
../3rdParty/SwiftMailer5/classes/Swift/MimePart.php (line 30).

Thanks,

Djulia

  • Archived  

By Dave - April 30, 2023

Hi Djulia, 

Can you try adding a @ above that line?  Like this:

        @call_user_func_array(
            array($this, 'Swift_Mime_MimePart::__construct'),

We'll release an update shortly with all these patches as well.

Thanks!

Dave Edis - Senior Developer
interactivetools.com
  • Archived  

By Djulia - May 1, 2023

Done! Thanks! :)