PHP Error when upda...
Clear all

[Closed] PHP Error when updating avatar

6 Posts
4 Users
Posts: 3
Topic starter
Active Member
Joined: 10 months ago

When updating your avatar via uploading a file, we are receiving an error with the following stack trace.  Couple of questions that may simplify this:
- Is PHP 8.1 supported yet?  We did revert to PHP 8.0.29 and are still receiving the error.
- Are there known avatar compatibility issues with Gravatar?  When I look to update my avatar within WordPress, there is a link to update your avatar via Gravatar - has this created issues with updating your avatar in wpForo?

Stack trace:
Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /home/customer/www/

Stack trace:
#0 /home/customer/www/ strip_tags(Array)
#1 /home/customer/www/ sanitize_title_with_dashes(Array, Array, 'query')
#2 /home/customer/www/ WP_Hook->apply_filters(Array, Array)
#3 /home/customer/www/ apply_filters('sanitize_title', Array, Array, 'query')
#4 /home/customer/www/ sanitize_title(Array, '', 'query')
#5 /home/customer/www/ sanitize_title_for_query(Array)
#6 /home/customer/www/ WP_Query->get_posts()
#7 /home/customer/www/ WP_Query->query(Array)
#8 /home/customer/www/ WP->query_posts()
#9 /home/customer/www/ WP->main('')
#10 /home/customer/www/ wp()
#11 /home/customer/www/ require('/home/customer/...')
#12 {main} thrown in
/home/customer/www/ on line 2259

5 Replies
Posts: 3650
Famed Member
Joined: 3 years ago

Hi @bobfix,

Please try disabling your plugins one by one and check when the error disappears. Let us know what you get.

Posts: 3
Topic starter
Active Member
Joined: 10 months ago

Well - you are right on.  I spun up a staging site and painstakingly worked through different plugins and found one that was only supported up to PHP 7.4 and when enabled, would cause the error when updating the avatar.  We had been using that other plugin for a long time similar to wpForo, but had not realized that it had not been updated.

What is wpForo supported up to for PHP?  8.0?


Posts: 986
Support Team
Joined: 8 years ago

We're currently running wpForo on PHP 8.1.17 version at

It's not tested with PHP 8.2 version. 

1 Reply
Joined: 4 years ago

Famed Member
Posts: 2577

@martin How can that be, since with 8.1 there are some issues (warnings/notices).

Posts: 3
Topic starter
Active Member
Joined: 10 months ago

Fantastic!  Thank you all for the help!