Support » Plugin: Post SMTP Mailer/Email Log » PHP 7.4 Error

  • Resolved Ciprian

    (@butterflymedia)


    I have just switched to PHP 7.4 from 7.3 and I got this error. I had to switch back to 7.3. Any ideas?

    [14-Feb-2020 13:03:49 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function filter_var() in /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/PostmanPreRequisitesCheck.php:24
    Stack trace:
    #0 /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/PostmanPreRequisitesCheck.php(57): PostmanPreRequisitesCheck::checkAllowUrlFopen()
    #1 /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/PostmanPreRequisitesCheck.php(77): PostmanPreRequisitesCheck::getState()
    #2 /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php(75): PostmanPreRequisitesCheck::isReady()
    #3 /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/Postman.php(113): PostmanWpMailBinder->bind()
    #4 /home/xxx/example.com/wp-content/plugins/post-smtp/postman-smtp.php(142): Postman->__construct('/home/xxx...', '2.0.10')
    #5 /home/xxx/example.com/wp-content/plugins/post-smtp/postman-smtp.php(133): post_setupPostman()
    #6 /home/xxx/example.com/wp-content/plugins/post-smtp/Postman/PostmanPreRequisitesCheck.php on line 24

    I’m using the latest version of the plugin and the latest version of WordPress on Apache 2.2, if it helps.

    • This topic was modified 3 months, 3 weeks ago by Ciprian.
    • This topic was modified 3 months, 3 weeks ago by Ciprian.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author yehudah

    (@yehudah)

    Contact your web host, PHP configurations.

    Ciprian

    (@butterflymedia)

    Yeah, I got that in the end from the host. It’s very weird, as PHP 7.3 worked perfectly. They had to add the following line of code to my phprc file within PHP 7.4:

    extension=filter.so

    Why?! Isn’t the filter_var() function native to PHP?

    It’s a rhetorical question and I’m sure it’s a misconfiguration on their part.

    The host is Dreamhost, if it makes any difference.

    Great plugin, by the way!

    HELP ME !!!
    Fatal error: Uncaught Error: Call to undefined function filter_var() in /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/utilities/class.u.validator.php:159 Stack trace: #0 /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/utilities/class.u.validator.php(205): DUP_Validator->filter_var(‘20200424_hardwa…’, ‘FILTER_VALIDATE…’, Array) #1 /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/package/class.pack.php(331): DUP_Validator->filter_custom(‘20200424_hardwa…’, ‘nempty’, Array) #2 /usr/local/www/apache24/data/wp-content/plugins/duplicator/views/packages/main/s2.scan1.php(142): DUP_Package->validateInputs() #3 /usr/local/www/apache24/data/wp-content/plugins/duplicator/views/packages/main/controller.php(68): include(‘/usr/local/www/…’) #4 /usr/local/www/apache24/data/wp-content/plugins/duplicator/views/packages/controller.php(83): include(‘/usr/local/www/…’) #5 /usr/local/www/apache24/data/wp-content/plugins/duplicator/duplicator.php(378): include(‘/usr/local/www/ in /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/utilities/class.u.validator.php on line 159
    There has been a critical error on your website. Please check your site admin email inbox for instructions.

    Learn more about debugging in WordPress.

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function DUP_Log::Error(), 1 passed in /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/class.logging.php on line 416 and at least 2 expected in /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/class.logging.php:253 Stack trace: #0 /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/class.logging.php(416): DUP_Log::Error(‘[PHP ERR][FATAL…’) #1 /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/class.logging.php(526): DUP_Handler::error(1, ‘Uncaught Error:…’, ‘/usr/local/www/…’, 159) #2 [internal function]: DUP_Handler::shutdown() #3 {main} thrown in /usr/local/www/apache24/data/wp-content/plugins/duplicator/classes/class.logging.php on line 253

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.