Automattic / wordpress-activitypub

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

Error after upgrade to 4.1.0 #972

Closed baby-gnu closed 2 weeks ago

baby-gnu commented 2 weeks ago

Quick summary

Our wordpress sent us an alert:

Une erreur de type E_ERROR a été causée dans la ligne 286 du fichier /var/www/vhosts/emancipation.fr/httpdocs/wp-content/plugins/activitypub/includes/class-admin.php. Message d’erreur : Uncaught Error: Call to undefined function Activitypub\home_host() in /var/www/vhosts/emancipation.fr/httpdocs/wp-content/plugins/activitypub/includes/class-admin.php:286
Stack trace:
#0 /var/www/vhosts/emancipation.fr/httpdocs/wp-includes/class-wp-hook.php(324): Activitypub\Admin::register_settings()
#1 /var/www/vhosts/emancipation.fr/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /var/www/vhosts/emancipation.fr/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /var/www/vhosts/emancipation.fr/httpdocs/wp-admin/admin-ajax.php(45): do_action()
#4 {main}
  thrown

Steps to reproduce

  1. Update the plugin

What you expected to happen

No error message is sent to admins.

What actually happened

Wordpress sent us an error report.

Impact

One

Available workarounds?

No but the platform is still usable

Logs or notes

Here are the technical information

pfefferle commented 2 weeks ago

@baby-gnu do you have a PHP object caching in place? If so, can you try to clear caches? Can you also check if includes/functions.php exists?

baby-gnu commented 2 weeks ago

I purged the cache and updated to 4.1.1 and did not receive an error mail.

pfefferle commented 2 weeks ago

So it seems to work for you now @baby-gnu ?

baby-gnu commented 2 weeks ago

yes.

pfefferle commented 2 weeks ago

Then I will close this for now! Please re-open if you see the error again!