Title: PHP Fatal error / PHP Deprecated
Last modified: November 20, 2023

---

# PHP Fatal error / PHP Deprecated

 *  Resolved [cybeardjm](https://wordpress.org/support/users/didierjm/)
 * (@didierjm)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-php-deprecated/)
 * Hi,
 * Checking my PHP error log, 2 new errors for ActivityPub:
 * 1 – Webfinger
 * `[20-Nov-2023 18:24:40 UTC] PHP Deprecated: preg_match(): Passing null to parameter#
   2 ($subject) of type string is deprecated in /srv/data/web/vhosts/www.didiermary.
   fr/htdocs/wp-content/plugins/activitypub/includes/class-webfinger.php on line
   44`
 * 2 Functions.php
 * `[20-Nov-2023 18:24:52 UTC] PHP Fatal error: Uncaught TypeError: preg_match():
   Argument #2 ($subject) must be of type string, array given in /srv/data/web/vhosts/
   www.didiermary.fr/htdocs/wp-content/plugins/activitypub/includes/functions.php:
   53`
   `Stack trace:``#0 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/
   plugins/activitypub/includes/functions.php(53): preg_match()``#1 /srv/data/web/
   vhosts/www.didiermary.fr/htdocs/wp-content/plugins/activitypub/includes/class-
   scheduler.php(117): Activitypub\get_remote_metadata_by_actor()``#2 /srv/data/
   web/vhosts/www.didiermary.fr/htdocs/wp-includes/class-wp-hook.php(324): Activitypub\
   Scheduler::update_followers()``#3 /srv/data/web/vhosts/www.didiermary.fr/htdocs/
   wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()``#4 /srv/data/web/
   vhosts/www.didiermary.fr/htdocs/wp-includes/plugin.php(565): WP_Hook->do_action()``#
   5 /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-cron.php(191): do_action_ref_array()``#
   6 {main} thrown in /srv/data/web/vhosts/www.didiermary.fr/htdocs/wp-content/plugins/
   activitypub/includes/functions.php on line 53`
 * Sincerely
   DJM

Viewing 1 replies (of 1 total)

 *  Plugin Author [Matthias Pfefferle](https://wordpress.org/support/users/pfefferle/)
 * (@pfefferle)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-php-deprecated/#post-17228093)
 * You also reported it on GitHub, so I close it here! Thanks!

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error / PHP Deprecated’ is closed to new replies.

 * ![](https://ps.w.org/activitypub/assets/icon.svg?rev=3325036)
 * [ActivityPub](https://wordpress.org/plugins/activitypub/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/activitypub/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/activitypub/)
 * [Active Topics](https://wordpress.org/support/plugin/activitypub/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/activitypub/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/activitypub/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matthias Pfefferle](https://wordpress.org/support/users/pfefferle/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/php-fatal-error-php-deprecated/#post-17228093)
 * Status: resolved