AI Assistant
Notifications
Clear all

[Closed] PHP Error when updating avatar

6 Posts
4 Users
0 Reactions
1,400 Views
Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@bobfix)
Active Member
Joined: 3 years ago
[#49781]

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

The page I need help with
wpForo Version
2.1.8
WordPress Version
6.2.2

5 Replies
Chris
Posts: 3610
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@chris)
Famed Member
Joined: 5 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@bobfix)
Active Member
Joined: 3 years 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: 997
Moderator
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@martin)
Support Team
Joined: 10 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: 6 years ago

Famed Member
Posts: 2600
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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


Posts: 3
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@bobfix)
Active Member
Joined: 3 years ago

@martin
Fantastic!  Thank you all for the help!


Share: