PHP Error when upda...
 
Notifications
Clear all

[Closed] PHP Error when updating avatar

6 Posts
4 Users
0 Reactions
491 Views
Posts: 3
Topic starter
(@bobfix)
Active Member
Joined: 1 year 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/biketcbc.org/public_html/wp-includes/formatting.php:2259

Stack trace:
#0 /home/customer/www/biketcbc.org/public_html/wp-includes/formatting.php(2259): strip_tags(Array)
#1 /home/customer/www/biketcbc.org/public_html/wp-includes/class-wp-hook.php(308): sanitize_title_with_dashes(Array, Array, 'query')
#2 /home/customer/www/biketcbc.org/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#3 /home/customer/www/biketcbc.org/public_html/wp-includes/formatting.php(2220): apply_filters('sanitize_title', Array, Array, 'query')
#4 /home/customer/www/biketcbc.org/public_html/wp-includes/formatting.php(2240): sanitize_title(Array, '', 'query')
#5 /home/customer/www/biketcbc.org/public_html/wp-includes/class-wp-query.php(2129): sanitize_title_for_query(Array)
#6 /home/customer/www/biketcbc.org/public_html/wp-includes/class-wp-query.php(3787): WP_Query->get_posts()
#7 /home/customer/www/biketcbc.org/public_html/wp-includes/class-wp.php(663): WP_Query->query(Array)
#8 /home/customer/www/biketcbc.org/public_html/wp-includes/class-wp.php(783): WP->query_posts()
#9 /home/customer/www/biketcbc.org/public_html/wp-includes/functions.php(1334): WP->main('')
#10 /home/customer/www/biketcbc.org/public_html/wp-blog-header.php(16): wp()
#11 /home/customer/www/biketcbc.org/public_html/index.php(17): require('/home/customer/...')
#12 {main} thrown in
/home/customer/www/biketcbc.org/public_html/wp-includes/formatting.php on line 2259

5 Replies
Chris
Posts: 3649
(@chris)
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
(@bobfix)
Active Member
Joined: 1 year ago

@chris
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?

Thanks!

Posts: 988
Moderator
(@martin)
Support Team
Joined: 8 years ago

We're currently running wpForo on PHP 8.1.17 version at wpforo.com.

It's not tested with PHP 8.2 version. 

1 Reply
dimalifragis
(@dimalifragis)
Joined: 4 years ago

Famed Member
Posts: 2615

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

Posts: 3
Topic starter
(@bobfix)
Active Member
Joined: 1 year ago

@martin
Fantastic!  Thank you all for the help!