Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autopost creates fatal error #59

Open
SunDancerGE opened this issue Jan 20, 2022 · 0 comments
Open

Autopost creates fatal error #59

SunDancerGE opened this issue Jan 20, 2022 · 0 comments

Comments

@SunDancerGE
Copy link

So since the latest WP update every time I post a new article or just hit "preview" WP exits with a fatal error.

[20-Jan-2022 10:50:47 UTC] PHP Fatal error:  Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, bool given in /mydomain.tld/www/wp-content/plugins/autopost-to-mastodon/mastodon_autopost.php:545
Stack trace:
#0 /mydomain.tld/www/wp-content/plugins/autopost-to-mastodon/mastodon_autopost.php(324): autopostToMastodon->getTootFromTemplate()
#1 /mydomain.tld/www/wp-includes/class-wp-hook.php(305): autopostToMastodon->toot_post()
#2 /mydomain.tld/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#3 /mydomain.tld/www/wp-includes/plugin.php(470): WP_Hook->do_action()
#4 /mydomain.tld/www/wp-includes/post.php(4468): do_action()
#5 /mydomain.tld/www/wp-includes/revision.php(334): wp_insert_post()
#6 /mydomain.tld/www/wp-includes/revision.php(190): _wp_put_post_revision()
#7 /mydomain.tld/www/wp-includes/class-wp-hook.php(305): wp_save_post_revision()
#8 /mydomain.tld/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#9 /mydomain.tld/www/wp-includes/plugin.php(470): WP_Hook->do_action()
#10 /mydomain.tld/www/wp-includes/post.php(4442): do_action()
#11 /mydomain.tld/www/wp-includes/post.php(4570): wp_insert_post()
#12 /mydomain.tld/www/wp-admin/includes/post.php(423): wp_update_post()
#13 /mydomain.tld/www/wp-admin/includes/post.php(1918): edit_post()
#14 /mydomain.tld/www/wp-admin/post.php(336): post_preview()
#15 {main}
  thrown in /mydomain.tld/www/wp-content/plugins/autopost-to-mastodon/mastodon_autopost.php on line 545

Any idea how to fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant