• 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 Error

    Logs:
    `PHP Fatal error: Uncaught Error: Undefined constant “FILTER_SANITIZE_MAGIC_QUOTES” in /…../wp-content/plugins/sendpress/classes/class-sendpress-security.php:251

    Same 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:736

    I 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.14

    How can we fix the issue? We want to send merry christmas email. :/

    Best regards
    Floh

    • This topic was modified 2 years, 11 months ago by floh79.
    • This topic was modified 2 years, 11 months ago by floh79.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter floh79

    (@floh79)

    Hi,

    I fixed one issue by replacing FILTER_SANITIZE_MAGIC_QUOTES by FILTER_SANITIZE_ADD_SLASHES since the previous one is not available with PHP 8.0 or higher.

    Still we have an issue with class-sendpress-template.php (Line 736) because the argument $source is empty. How can I fix it?

    Best regards
    Floh

    Plugin Author Josh Lyford

    (@joshl)

    Hi,

    Just release a new version with a patch for this issue. Let me know if you are still having trouble after the update.

    Best,
    Josh

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error: Undefined constant “FILTER_SANITIZE_MAGIC_QUOTES”’ is closed to new replies.