Automattic / wordpress-activitypub

ActivityPub for WordPress
https://wordpress.org/plugins/activitypub/
MIT License
496 stars 76 forks source link

PHP Warnings (maybe) triggered by ActivityPub plugin #1007

Open rghedin opened 1 day ago

rghedin commented 1 day ago

Quick summary

I've been trying to track down what plugin is causing a surge in “PHP Warning” erros in my WP instance, hosted at WordPress.com.

I set up a staging site and deactivated one plugin at a time, checking out how they affect my logs. After deactivating ActivityPub plugin, the error messages disappeared.

They look like this:

Image

Transcription:

Message: PHP Warning: foreach() argument must be of type array|object, null given in /wordpress/core/6.7/wp-admin/includes/plugin.php on line 1853 Timestamp: 2024-11-20T20:52:05.000Z Type: core Name: 6.7 File: /wordpress/core/6.7/wp-admin/includes/plugin.php Line: 1853

I'm really not sure if they are caused by AP plugin; it's just my main suspicion. I also suspect it may be something related to the WordPress.com interventions with MU plugin and Jetpack, which causes some headaches from time to time.

I hope this report helps anyway.

Steps to reproduce

  1. Activate AP plugin.
  2. Wait.
  3. Check “Logs” (not sure if it's available in self-manage WP or only in Business WP.com accounts).

What you expected to happen

No errors appearing.

What actually happened

PHP Warnings appear frequently.

Impact

Some (< 50%)

Available workarounds?

No but the platform is still usable

Logs or notes

No response