Uncaught Error: Undefined constant “FILTER_SANITIZE_MAGIC_QUOTES”
-
Hello,
we have a problem with SendPress Newsletter. It suddenly stopped to work and we get a critical error message.
How to reproduce:
– Create new eMail. √
– Open the new eMail √
– Write content √
– click on “update”-Button => critical ErrorLogs:
`PHP Fatal error: Uncaught Error: Undefined constant “FILTER_SANITIZE_MAGIC_QUOTES” in /…../wp-content/plugins/sendpress/classes/class-sendpress-security.php:251Same issue if I just want to display newsletter we successfully sent erlier.
How to reproduce:
– Click on eMail to get a list of newsletter-eMails
– Click on any “Display”-Button => critical error in popup window
Console:
PHP Fatal error: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /……/wp-content/plugins/sendpress/classes/class-sendpress-template.php:736I believe both errors are related.
Wordpress Version: 5.8.2
Sendpress Newsletter Version: 1.21.4.5
Theme: Impreza 8.4 (error happens also with twenty twenty-one version 1.4)
PHP Version: 8.0.14How can we fix the issue? We want to send merry christmas email. :/
Best regards
Floh
- The topic ‘Uncaught Error: Undefined constant “FILTER_SANITIZE_MAGIC_QUOTES”’ is closed to new replies.