Title: PHP 7.4 Error
Last modified: February 14, 2020

---

# PHP 7.4 Error

 *  Resolved [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/)
 * (@butterflymedia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-7-4-error-2/)
 * 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 6 years, 3 months ago by [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/).
    -  This topic was modified 6 years, 3 months ago by [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [yehudah](https://wordpress.org/support/users/yehudah/)
 * (@yehudah)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-7-4-error-2/#post-12443136)
 * Contact your web host, PHP configurations.
 *  Thread Starter [Ciprian Popescu](https://wordpress.org/support/users/butterflymedia/)
 * (@butterflymedia)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-7-4-error-2/#post-12443146)
 * 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!
 *  [eysiox](https://wordpress.org/support/users/eysiox/)
 * (@eysiox)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/php-7-4-error-2/#post-12730458)
 * 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)

The topic ‘PHP 7.4 Error’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [eysiox](https://wordpress.org/support/users/eysiox/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/php-7-4-error-2/#post-12730458)
 * Status: resolved