Title: php 8 not completely supported
Last modified: November 2, 2022

---

# php 8 not completely supported

 *  Resolved [Sebastian Scherf](https://wordpress.org/support/users/sidtcom/)
 * (@sidtcom)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-not-completely-supported/)
 * ProfilePress uses an outdated version of pelago/emogrifier which is not PHP 8
   compatible.
 * File: ProfilePressVendor\Pelago\Emogrifier
    Function: handleXpathQueryWarnings
   Line: 1463 – 1469
 * With PHP 8 the 5th parameter for callbacks of set_error_handler is omitted. It
   must be optional.
 * wrong:
 *     ```
       public function handleXpathQueryWarnings(
           // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter
           $type,
           $message,
           $file,
           $line,
           array $context
       )
       ```
   
 * correct:
 *     ```
       public function handleXpathQueryWarnings(
           // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter
           $type,
           $message,
           $file,
           $line,
           array $context = []
       )
       ```
   
 * This is only a fix. It would be better to use the newest version of pelago/emogrifier
   which out-of-the-box support PHP 8
 * With kind regards
    Sebastian Schmidt

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

 *  Plugin Author [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-not-completely-supported/#post-16157107)
 * The latest version doesn’t really support PHP 7, which many of our users are 
   on.
 * However, we will are going to make a patch to include the PHP 8 compatibility
   you reported above.
 * I’ll update you when this has been done.
 *  Plugin Author [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * (@collizo4sky)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-not-completely-supported/#post-16160801)
 * Happy to let you know this will be fixed in the next version as we’ve upgraded
   to v6 of Emogrify.

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

The topic ‘php 8 not completely supported’ is closed to new replies.

 * ![](https://ps.w.org/wp-user-avatar/assets/icon-256x256.png?rev=2532486)
 * [Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content – ProfilePress](https://wordpress.org/plugins/wp-user-avatar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-user-avatar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-user-avatar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-user-avatar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-user-avatar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-user-avatar/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Collins Agbonghama](https://wordpress.org/support/users/collizo4sky/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/php-8-not-completely-supported/#post-16160801)
 * Status: resolved