Automattic / wordpress-activitypub

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

Erforderliche Klasse nicht gefunden oder lesbar: Activitypub\Model\Post #639

Closed nesges closed 4 months ago

nesges commented 8 months ago

Quick summary

After Updating to Version 2.0 the Browser only shows this error message. I did a fresh install (rm -r wp-content/plugins/activitypub/) but the error stays the same

image

Steps to reproduce

  1. Update to Version 2.0
  2. Visit Website

What you expected to happen

Not breaking the website

What actually happened

Broke website

Impact

All

Available workarounds?

No and the platform is unusable

Logs or notes

No response

pfefferle commented 8 months ago

Can you send me a list of plugins you use besides the ActivityPub plugin?

The model class was removed in 2.0.0 but it is no longer in use since month, so it might be a third party plugin using it?!?

nesges commented 8 months ago

Sure! Istalled but inactive is marked with brackets

root@gond:/var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins# ls -la
total 296
drwxr-xr-x 72 www-data www-data 4096 Jan  9 11:31 .
drwxr-xr-x 14 www-data www-data 4096 Jan  9 12:27 ..
drwxr-xr-x  6 www-data www-data 4096 Sep 12 21:20 acf-better-search
drwxr-xr-x  5 www-data www-data 4096 Dec  8  2022 addquicktag
drwxr-xr-x  6 www-data www-data 4096 Nov 29 21:05 advanced-custom-fields
drwxr-xr-x  4 www-data www-data 4096 Sep 18 22:24 akismet
drwxr-xr-x  9 www-data www-data 4096 Dec  8  2022 amazon-polly
drwxr-xr-x  3 www-data www-data 4096 Dec  8  2022 amr-shortcode-any-widget
drwxr-xr-x  6 www-data www-data 4096 Jul  4  2023 audioigniter
( drwxr-xr-x  5 www-data www-data 4096 Jul  4  2023 autopost-to-mastodon )
( drwxr-xr-x  4 www-data www-data 4096 Nov 14 10:38 autoptimize )
drwxr-xr-x  6 www-data www-data 4096 Nov 14 10:38 blog2social
drwxr-xr-x  5 www-data www-data 4096 Jul  4  2023 cf7-database
drwxr-xr-x  3 www-data www-data 4096 Jul  4  2023 classic-editor
drwxr-xr-x  2 www-data www-data 4096 Dec  8  2022 classic-widgets
drwxr-xr-x  7 www-data www-data 4096 Dec  8  2022 cmb2
drwxr-xr-x  6 www-data www-data 4096 Sep 12 21:20 conditional-menus
drwxr-xr-x  7 www-data www-data 4096 Dec 19 14:42 contact-form-7
drwxr-xr-x  7 www-data www-data 4096 Nov  9 10:52 custom-post-type-ui
drwxr-xr-x  3 www-data www-data 4096 Nov  1 21:43 d3
drwxr-xr-x  6 www-data www-data 4096 Dec  8  2022 d3-chirp
drwxr-xr-x  4 www-data www-data 4096 Dec  8  2022 d3-drivel
drwxr-xr-x  2 www-data www-data 4096 Dec  8  2022 d3-external-ressources
drwxr-xr-x  8 www-data www-data 4096 Jul  7  2023 d3-mastodon-widget
drwxr-xr-x  2 www-data www-data 4096 Dec  8  2022 d3-patreon
drwxr-xr-x  6 www-data www-data 4096 Jul  4  2023 d3-planet
drwxr-xr-x  2 www-data www-data 4096 Nov  1 21:43 d3-shortcodes
drwxr-xr-x  2 www-data www-data 4096 Dec  8  2022 d3-sources
drwxr-xr-x  6 www-data www-data 4096 Dec  5 15:40 d3-top-news-widget
drwxr-xr-x  4 www-data www-data 4096 Mar 25  2023 d3-village
drwxr-xr-x  2 www-data www-data 4096 Jul 23 10:31 d3-widgets
drwxr-xr-x  5 www-data www-data 4096 Dec  8  2022 double-opt-in-for-cf7
drwxr-xr-x 10 www-data www-data 4096 Dec 12 09:10 easy-digital-downloads
drwxr-xr-x  5 www-data www-data 4096 Dec  8  2022 edd-auto-register
drwxr-xr-x 10 www-data www-data 4096 Dec 15 10:21 enable-media-replace
drwxr-xr-x  5 www-data www-data 4096 Jul  4  2023 flamingo
drwxr-xr-x  5 www-data www-data 4096 Dec  8  2022 gdpr-data-request-form
drwxr-xr-x  4 www-data www-data 4096 Jan  9 11:28 google-sitemap-generator
-rw-r--r--  1 www-data www-data 1285 Dec  8  2022 .htaccess
-rw-r--r--  1 www-data www-data   28 Dec  8  2022 index.php
drwxr-xr-x  7 www-data www-data 4096 Jan  3 11:50 iwp-client
drwxr-xr-x  5 www-data www-data 4096 Jan  9 11:28 list-category-posts
( drwxr-xr-x  2 www-data www-data 4096 Jul  4  2023 mathilda )
drwxr-xr-x  5 www-data www-data 4096 Nov 14 10:38 media-sync
( drwxr-xr-x  5 www-data www-data 4096 Nov 29 21:05 patreon-connect )
drwxr-xr-x  6 www-data www-data 4096 Oct 12 10:35 plugin-organizer
( drwxr-xr-x 10 www-data www-data 4096 Dec 21 23:13 podlove-web-player )
drwxr-xr-x  3 www-data www-data 4096 Dec  8  2022 public-post-preview
drwxr-xr-x  9 www-data www-data 4096 Jan  5 09:38 publishpress
( drwxr-xr-x 10 www-data www-data 4096 Nov 13 09:28 query-monitor )
( drwxr-xr-x 11 www-data www-data 4096 Jan  5 13:55 redirection )
drwxr-xr-x  3 www-data www-data 4096 Dec 11 09:32 restrict-categories
drwxr-xr-x  3 www-data www-data 4096 Dec  8  2022 reusable-text-blocks
drwxr-xr-x  7 www-data www-data 4096 Dec 16 22:38 schema-and-structured-data-for-wp
drwxr-xr-x  7 www-data www-data 4096 Mar 25  2023 simple-image-sizes
drwxr-xr-x  8 www-data www-data 4096 Dec  8  2022 simple-lightbox
drwxr-xr-x  7 www-data www-data 4096 Dec  8  2022 simple-links
drwxr-xr-x  4 www-data www-data 4096 Dec 13 22:13 simple-local-avatars
drwxr-xr-x  2 www-data www-data 4096 Dec  8  2022 tag-pages
drwxr-xr-x  3 www-data www-data 4096 Mar 25  2023 ultimate-category-excluder
drwxr-xr-x  7 www-data www-data 4096 Oct 24 23:46 user-role-editor
drwxr-xr-x  6 www-data www-data 4096 Mar 25  2023 view-admin-as
drwxr-xr-x  4 www-data www-data 4096 Nov 13 09:28 webfinger
drwxr-xr-x  7 www-data www-data 4096 Jan  3 11:50 webmention
drwxr-xr-x 11 www-data www-data 4096 Oct 22 15:31 webp-express
drwxr-xr-x  6 www-data www-data 4096 Aug 27 16:48 widget-options
drwxr-xr-x  6 www-data www-data 4096 Nov 29 21:05 wonderm00ns-simple-facebook-open-graph-tags
drwxr-xr-x  5 www-data www-data 4096 Jan  3 11:50 wp-dashboard-notes
drwxr-xr-x  3 www-data www-data 4096 Dec  8  2022 wp-discord-post
drwxr-xr-x  7 www-data www-data 4096 Dec 21 23:13 wp-smushit
drwxr-xr-x  6 www-data www-data 4096 Jan  3 11:50 wp-statistics
drwxr-xr-x 12 www-data www-data 4096 Nov  8 20:08 wp-super-cache
drwxr-xr-x  4 www-data www-data 4096 Jul  4  2023 wp-sweep
drwxr-xr-x 11 www-data www-data 4096 Mar 25  2023 wp-vgwort
nesges commented 8 months ago

The model class was removed in 2.0.0 but it is no longer in use since month, so it might be a third party plugin using it?!?

root@gond:/var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins# grep -irl 'ActivityPub' .
./webmention/includes/class-receiver.php
./autopost-to-mastodon/instanceList.php
./webfinger/readme.txt
root@gond:/var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins# grep -ir 'ActivityPub' ./webmention/includes/class-receiver.php
                        // This would catch incoming activitypub matches, which uses source_url

autopost-to-mastodon is inactive and webmention, well you know it better than me, I guess ;-) What else would I grep the plugins for?

pfefferle commented 8 months ago

can you try to clear all caches and then re-check? it seems that no plugin is using the class 😳

nesges commented 8 months ago

I tried clearing WP Super Cache and restarting Apache2 but still no luck. One thing has changed: The error appears on activation of ActivityPub only, which then fails and leaves the plugin inactive. So it doesn't break the site anymore

nesges commented 8 months ago

some more greping over the whole installation:

root@gond:/var/www/html/d3/dnddeutsch.de/wordpress# grep -irl 'ActivityPub' . | grep -v '/plugins/activitypub/'
./wp-content/plugins/webmention/includes/class-receiver.php
./wp-content/plugins/webfinger/readme.txt
./wp-content/languages/plugins/activitypub-de_DE.po
./wp-content/languages/plugins/activitypub-de_DE.mo
root@gond:/var/www/html/d3/dnddeutsch.de/wordpress#
pfefferle commented 8 months ago

Can you run the grep one folder above (wp-content) to also check mu-plugins and themes?

pfefferle commented 8 months ago

And can you maybe also search directly for Activitypub\Model\Post in the ActivityPub plugin folder?

nesges commented 8 months ago
root@gond:/var/www/html/d3/dnddeutsch.de/wordpress# grep -irl 'Activitypub.*Model.*Post' .
root@gond:/var/www/html/d3/dnddeutsch.de/wordpress#

This is odd. It should have found any mention of "Activitypub Model Post" including "Activitypub\Model\Post", ""Activitypub:Model:Post" etc. pp. anywhere in my installation, including wp-content/mu-plugins and themes but it just isn't there 🤔

nesges commented 8 months ago

Can you run the grep one folder above (wp-content) to also check mu-plugins and themes?

they were already included since grep startet at the installation base (/var/www/html/d3/dnddeutsch.de/wordpress)

nesges commented 8 months ago

Maybe anything in the database? I could search a dump 🤷

ragnar76 commented 8 months ago

today, i stumbled across the same error. I have these plugins installed:

/home/theragnarbay/public_html/wp-content/plugins# sudo -u www-data wp plugin list
+-----------------------------------+----------+--------+----------+
| name                              | status   | update | version  |
+-----------------------------------+----------+--------+----------+
| child-theme-configurator          | active   | none   | 2.6.3    |
| classic-editor                    | active   | none   | 1.6.3    |
| disable-remove-google-fonts       | active   | none   | 1.5.8    |
| disable-comments                  | active   | none   | 2.4.5    |
| easy-table-of-contents            | active   | none   | 2.0.61   |
| enable-mastodon-apps              | active   | none   | 0.6.2    |
| friends                           | active   | none   | 2.8.3    |
| head-meta-data                    | active   | none   | 20231026 |
| health-check                      | active   | none   | 1.7.0    |
| kirki                             | active   | none   | 5.0.0    |
| nodeinfo                          | active   | none   | 2.3.0    |
| photo-gallery                     | active   | none   | 1.8.19   |
| redirection                       | active   | none   | 5.4.1    |
| svg-support                       | active   | none   | 2.5.5    |
| webfinger                         | active   | none   | 3.2.7    |
| widget-css-classes                | active   | none   | 1.5.4.1  |
| wordfence                         | active   | none   | 7.11.1   |
| wp-geshi-highlight                | active   | none   | 1.4.3    |
| health-check-troubleshooting-mode | must-use | none   | 1.9.1    |
+-----------------------------------+----------+--------+----------+

Is there anything i can do to help?

pfefferle commented 8 months ago

Can you update the enable-mastodon-apps to the latest version?

ragnar76 commented 8 months ago

Last night, all plugins where uptodate, this morning there was indeed an update for enable-mastodon-apps. will do the update, reinstall Activitypub and test again

ragnar76 commented 8 months ago

Nope, no luck :(

grafik

pfefferle commented 8 months ago

Do you use some kind of PHP cache like opcache for example? Can you try clearing that too?

ragnar76 commented 8 months ago

I don't use a caching system

grafik

nesges commented 8 months ago

I just tried deactivating all plugins, restarting apache2 and activating only ActivityPub, but the error stays. After that I even emptied the plugin-folder wp-content/plugins/ completely and tried activating ActivityPub with the same result. Please let me know if I can test something else!

nesges commented 8 months ago

PS: can send phpinfo() via Mastodon-DM if it's of interest

pfefferle commented 8 months ago

@ragnar76 can you try to deactivate the friends plugin and re-check?

ragnar76 commented 8 months ago

Yes, i did. No luck. It still breaks down

pfefferle commented 8 months ago

can one of you try to create the following file includes/model/class-post.php with this content:

<?php
namespace Activitypub\Model;

class Post {

}
nesges commented 8 months ago

That did the trick, the plugin is active now on my site!

pfefferle commented 8 months ago

can you browse one of your posts and add ?activitypub at the end of the URL... does it show proper JSON?

nesges commented 8 months ago

looking good! https://www.dnddeutsch.de/adventsbasteln-mit-dd/?activitypub

pfefferle commented 8 months ago

this is so weird 🤔

mauriziomarini commented 8 months ago

can one of you try to create the following file includes/model/class-post.php with this content:

<?php
namespace Activitypub\Model;

class Post {

}

it's ok here, too https://www.informapirata.it/ https://www.informapirata.it/?activitypub

informapirata commented 8 months ago

can one of you try to create the following file includes/model/class-post.php with this content:

Hallo Matteo! Ich hatte gestern Abend das gleiche Problem mit der Informapirata.it-Site, direkt nach der Aktualisierung des Plugins.

Mein Blog war zuvor perfekt innerhalb der Föderation integriert, wie Sie hier sehen können: https://lemmy.world/post/10356319 aber dann wurde es unerreichbar

Bisher bestand die einzige Möglichkeit, das Problem zu lösen, darin, den Ordner „activity_pub“ mit dem Plugin zu löschen, das den Fehler verursachte, aber dank der von Ihnen vorgeschlagenen Änderung funktioniert die Site jetzt endlich

pfefferle commented 8 months ago

Can you tell me which PHP version you use?

mauriziomarini commented 8 months ago

8.0.2 thx

On Wed, Jan 10, 2024 at 5:49 PM Matthias Pfefferle @.***> wrote:

Can you tell me which PHP version you use?

— Reply to this email directly, view it on GitHub https://github.com/Automattic/wordpress-activitypub/issues/639#issuecomment-1885223528, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEABVOW3JYTZUWF3ILX4CTDYN3BBNAVCNFSM6AAAAABBS37OR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGIZDGNJSHA . You are receiving this because you commented.Message ID: @.***>

-- Maurizio Marini GSM +39-335-8259739

pfefferle commented 8 months ago

Can one of you maybe remove the class-post.php once again (or rename it) and uncomment this line: https://github.com/Automattic/wordpress-activitypub/blob/48a33b82e929725cdcd358c4b87fc188ec25764a/activitypub.php#L125

Maybe we can see the stacktrace then!

pfefferle commented 8 months ago

sorry for the inconvenience but i would like to understand what exactly the problem is!

mauriziomarini commented 8 months ago

sorry for the inconvenience but i would like to understand what exactly the problem is!

I renamed

mv includes/model/class-post.php includes/model/class-post.php_

now it is: if ( file_exists( $file ) && is_readable( $file ) ) { require_once $file; } else { // translators: %s is the class name wp_die( sprintf( esc_html__( 'Required class not found or not readable: %s', 'activitypub' ), esc_html( $full_class ) ) ); } it was \wp_die I changed to wp_die

but no stack trace, still the usual error message

nesges commented 8 months ago

sorry for the inconvenience but i would like to understand what exactly the problem is!

no worries, I'm fascinated of the process :-) I also added

// \wp_die( ...
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

and this is what went to error.log:

[Wed Jan 10 18:04:27.240413 2024] [proxy_fcgi:error] [pid 2321971] [client 127.0.0.1:52586] AH01071: Got error 'PHP message: PHP Deprecated:  Return type of Aws\\Command::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 41PHP message: PHP Deprecated:  Return type of & Aws\\Command::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 26PHP message: PHP Deprecated:  Return type of Aws\\Command::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 36PHP message: PHP Deprecated:  Return type of Aws\\Command::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 46PHP message: PHP Deprecated:  Return type of Aws\\Command::count() should either be compatible with Countable::count(): int, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 56PHP message: PHP Deprecated:  Return type of Aws\\Command::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 13PHP message: PHP Deprecated:  Return type of Aws\\Result::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 41PHP message: PHP Deprecated:  Return type of & Aws\\Result::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 26PHP message: PHP Deprecated:  Return type of Aws\\Result::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 36PHP message: PHP Deprecated:  Return type of Aws\\Result::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 46PHP message: PHP Deprecated:  Return type of Aws\\Result::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 13', referer: https://www.dnddeutsch.de/wp-admin/plugins.php?plugin_status=all&paged=1&s
[Wed Jan 10 18:04:27.705435 2024] [proxy_fcgi:error] [pid 2321440] [client 127.0.0.1:57948] AH01071: Got error 'PHP message: PHP Warning:  Undefined array key "op" in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/themes/d3_endgame/page-liest.php on line 42PHP message: PHP Warning:  Undefined array key "op" in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/themes/d3_endgame/page-liest.php on line 88PHP message: PHP Warning:  Undefined array key "consent" in /var/www/html/d3/dnddeutsch.de/tools/cookie/cookie.php on line 8PHP message: PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 545'
[Wed Jan 10 18:04:28.015410 2024] [proxy_fcgi:error] [pid 2321971] [client 127.0.0.1:52586] AH01071: Got error 'PHP message: PHP Deprecated:  Return type of Aws\\Result::count() should either be compatible with Countable::count(): int, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/HasDataTrait.php on line 56PHP message: PHP Deprecated:  rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/restrict-categories/restrict-categories.php on line 571PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Result.php:9) in /var/www/html/d3/dnddeutsch.de/wordpress/wp-admin/includes/misc.php on line 1431PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Result.php:9) in /var/www/html/d3/dnddeutsch.de/wordpress/wp-includes/functions.php on line 7049PHP message: PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Result.php:9) in /var/www/html/d3/dnddeutsch.de/wordpress/wp-admin/admin-header.php on line 9', referer: https://www.dnddeutsch.de/wp-admin/plugins.php?plugin_status=all&paged=1&s
[Wed Jan 10 18:04:28.157479 2024] [proxy_fcgi:error] [pid 2321971] [client 127.0.0.1:52586] AH01071: Got error 'PHP message: PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 545', referer: https://www.dnddeutsch.de/wp-admin/plugins.php?plugin_status=all&paged=1&s
[Wed Jan 10 18:04:28.286612 2024] [proxy_fcgi:error] [pid 2321540] [client 127.0.0.1:57962] AH01071: Got error 'PHP message: PHP Deprecated:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/d3/dnddeutsch.de/wordpress/wp-content/plugins/simple-lightbox/includes/class.utilities.php on line 545'

seems unrelated though

informapirata commented 8 months ago

Maybe we can see the stacktrace then!

Sobald Sie die von Ihnen vorgeschlagene Änderung vorgenommen haben, sind Sie wieder da, wo Sie angefangen haben, mit der gleichen Fehlermeldung

Classe richiesta non trovata o non leggibile: Activitypub\Model\Post

Trans: Angeforderte Klasse nicht gefunden oder nicht lesbar: Activitypub\Model\Post

nesges commented 8 months ago

Maybe this is a clue: I generated a debug_backtrace() and found a serialized activitypub_send_delete_activity in wp_options that references Activitypub\Model\Post. Here's the full output of debug_backtrace: https://www.dnddeutsch.de/wp-content/uploads/debug-backtrace.txt

(Edit: reuploaded the tracefile)

pfefferle commented 8 months ago

Oh, this helps a lot... I will see if I can cleanup the cronjobs during the update! Thanks a lot you all!

nesges commented 8 months ago

Happy to help! Thanks for your work!

ragnar76 commented 8 months ago

can one of you try to create the following file includes/model/class-post.php with this content:

<?php
namespace Activitypub\Model;

class Post {

}

Late to the party (my couch was very appealing yersterday ;) ) but when i add this file, it works here too

ThomasKujawa commented 8 months ago

can one of you try to create the following file includes/model/class-post.php with this content:

<?php
namespace Activitypub\Model;

class Post {

}

Update to 2.0.0 resulted in the above error. With this update our site is running again.

If you need further information, please contact us.

utzer commented 8 months ago

Can you run the grep one folder above (wp-content) to also check mu-plugins and themes?

I got some results in the autonomie theme, which I did update from git a few minutes ago.

Something like this:

utzer@web /path/to/wp-content % grep -irl 'ActivityPub' ../
../wp-content/languages/plugins/activitypub-de_DE.po
../wp-content/languages/plugins/activitypub-de_DE.mo
../wp-content/themes/autonomie/.git/index
../wp-content/themes/autonomie/assets/sass/openwebicons.scss
../wp-content/themes/autonomie/assets/sass/integrations.scss
../wp-content/themes/autonomie/integrations/activitypub.php
../wp-content/themes/autonomie/languages/de_DE.po
../wp-content/themes/autonomie/languages/nl_NL.po
../wp-content/themes/autonomie/languages/autonomie.pot
../wp-content/themes/autonomie/readme.txt
../wp-content/themes/autonomie/readme.md
../wp-content/themes/autonomie/functions.php
../wp-content/themes/autonomie/style.css
../wp-content/plugins/nodeinfo/readme.txt

Is this of any help?

Sorry for making a fuss about it here, I will stop that. (Couldn't find the right place to report issues.)

For anyone else coming here, to temporary deactivate the ActivityPub plugin go to the folder "wp-content/plugins" and move/remove "activitypub", then open /wp-admin/plugins.php which will deactivate the plugin because it can't find the folder/files for the plugin. Updated plugin is available now, this solve my problem.

pfefferle commented 8 months ago

I just re-added the file in 2.0.1 that it no longer breaks you installs! That does not fix the issue, but your installs seem no longer broken!

Sorry for the trouble!

utzer commented 8 months ago

I just re-added the file in 2.0.1 that it no longer breaks you installs! That does not fix the issue, but your installs seem no longer broken!

Sorry for the trouble!

No worries, we're just happy that you put in the work and effort.

pfefferle commented 8 months ago

@utzer Can you maybe try to update and see if it is fixed then?

utzer commented 8 months ago

@utzer Can you maybe try to update and see if it is fixed then?

I installed the plugin again, activated it for the network and it works. Also I did a probe for @utzer@plopp.utzer.de, which return valid information.

utzer commented 8 months ago

Beim @ragnar76 gehts wohl auch wieder.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days.

DoomThinking commented 1 month ago

I had this same issue updating to 3.0.0 on 31-07-2024, above solution worked to get the instance back online