Problems, need help? Have a tip or advice? Post it here.
15 posts Page 2 of 2
Thanks KK, that's really helpful.

I think the issue is to do with the phpmailer version, I've used your test but I get the following error:

Got error 'PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_runtime()....

I assume this is to do with PHP 8 on the server.

I can get the name of the file displaying in the email using <cms:show my_attachment_link /> but as soon as I add the attachment line I get that error above.

Is there an updated version of the add-on, the one I have has phpmailer as 5.0 but I believe it's up to 5.5 now.
As I suspected, if I change the PHP version to 7.4 it works, how do I get it working in 8.3?
As a quick fix I've commented out line 2692 of class.phpmailer.php:

Code: Select all
$magic_quotes = get_magic_quotes_runtime();


Not sure if this is the best way forward, ideally it should be using the latest version of phpmailer.
I suggest you please upgrade to the latest version of Couch available at GitHub as it is compatible with PHP 8 (this, of course, includes the fix to the file you mentioned).
Thanks. I honestly thought I had 2.4, it turns out I've been using 2.3 :oops:

Thanks for your help.
15 posts Page 2 of 2