Notifications
Clear all

[Solved] Critical error on password reset

4 Posts
2 Users
0 Likes
107 Views
stefanolodola
Posts: 3
Topic starter
(@stefanolodola)
Active Member
Joined: 3 months ago

I have a Woocommerce website. Users log in through a Woocommerce login form widget.

In WPForo's settings, all WPForo forms are disabled, including the password reset form.

When WPForo is active, if I try to reset my password by submitting the WC password reset form on the WC account page, I get a WordPress critical error.

After reading about this similar issue, I tried setting the custom authorization URL for password reset to the WC password reset page, but nothing has changed even after clearing the cache.

I also tried downgrading PHP to 8.0, but that didn't help either.

You can't see the issue now because I had to disable WPForo and set a redirect from the forum page.

I could keep WPForo active and replace the WC login form with the standard WP login form, but the "lost password?" link takes to the WP admin with the big WP logo and that's not the user experience I want.

Here's the automatic error notification email I received:


WordPress version 6.1
Active theme: Hello Elementor Child (version 1.0.1)
Current plugin: wpForo (version 2.1.0)
PHP version 8.1.9

Error Details
=============
An error of type E_ERROR was caused in line 231 of the file /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Cache.php&source=gmail&ust=1668139229681000&usg=AOvVaw1lNSVkBX9AVg_6my1sDOR H">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Cache.php. Error message: Uncaught Error: Call to a member function reset() on null in /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Cache.php:231&source=gmail&ust=1668139229681000&usg=AOvVaw24VGWSlVlujyAdCMie2kq -">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Cache.php:231
Stack trace:
#0 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/includes/functions.php(1823)&source=gmail&ust=1668139229681000&usg=AOvVaw3FAYC3p1z6cOP_-vzG2xL V">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/includes/functions.php(1823): wpforo\classes\Cache->clean()
#1 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Members.php(1751)&source=gmail&ust=1668139229681000&usg=AOvVaw1-w4QAkhF8Ie3EGfIRvjb X">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Members.php(1751): wpforo_clean_cache()
#2 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Members.php(108)&source=gmail&ust=1668139229681000&usg=AOvVaw1GGVveeLpHPHb2avFpQ4p M">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/wpforo/classes/Members.php(108): wpforo\classes\Members->reset()
#3 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(310)&source=gmail&ust=1668139229681000&usg=AOvVaw3MuuAr52SafS060Mb1aB6 b">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(310): wpforo\classes\Members->wpforo\classes\{closure}()
#4 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(332)&source=gmail&ust=1668139229681000&usg=AOvVaw2bGf41Z2IlucwftNVilaI o">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/plugin.php(517)&source=gmail&ust=1668139229681000&usg=AOvVaw2v0tQLji5cOwBHGgyubib p">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#6 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/user.php(1904)&source=gmail&ust=1668139229681000&usg=AOvVaw2_K9H8jIuhlhVDDRU9CSS q">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/user.php(1904): do_action()
#7 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/pluggable.php(2738)&source=gmail&ust=1668139229681000&usg=AOvVaw3y-U5qbqZe2Egdv0pYnVO q">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/pluggable.php(2738): clean_user_cache()
#8 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/user.php(3284)&source=gmail&ust=1668139229681000&usg=AOvVaw02hRwzJpJlizPEbhYWM8N -">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/user.php(3284): wp_set_password()
#9 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-login.php(937)&source=gmail&ust=1668139229681000&usg=AOvVaw0RTfLGLRpis_o2k62gU4g v">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-login.php(937): reset_password()
#10 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/perfmatters/inc/functions.php(934)&source=gmail&ust=1668139229681000&usg=AOvVaw1tmMkKyEFQd5AbI7jzCPJ L">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-content/plugins/perfmatters/inc/functions.php(934): require_once('/home/http://597704.cl&source=gmail&ust=1668139229681000&usg=AOvVaw2UTUow7i0OM57vtwvo9P6 E">597704.cl...')
#11 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(308)&source=gmail&ust=1668139229681000&usg=AOvVaw2AOcB6zFX0Cd_eShNgsp- F">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(308): perfmatters_wp_loaded()
#12 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(332)&source=gmail&ust=1668139229681000&usg=AOvVaw2bGf41Z2IlucwftNVilaI o">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#13 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/plugin.php(517)&source=gmail&ust=1668139229681000&usg=AOvVaw2v0tQLji5cOwBHGgyubib p">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#14 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-settings.php(639)&source=gmail&ust=1668139229681000&usg=AOvVaw0BvrZHhPiRTUQ2sCukjNr G">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-settings.php(639): do_action()
#15 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-config.php(103)&source=gmail&ust=1668139229681000&usg=AOvVaw0LCV6Rc8XbcYNPQgwomTl t">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-config.php(103): require_once('/home/http://597704.cl&source=gmail&ust=1668139229681000&usg=AOvVaw2UTUow7i0OM57vtwvo9P6 E">597704.cl...')
#16 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-load.php(50)&source=gmail&ust=1668139229681000&usg=AOvVaw2Cnkf45JzF6_6nli6Z0h8 P">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-load.php(50): require_once('/home/http://597704.cl&source=gmail&ust=1668139229681000&usg=AOvVaw2UTUow7i0OM57vtwvo9P6 E">597704.cl...')
#17 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-blog-header.php(13)&source=gmail&ust=1668139229681000&usg=AOvVaw0qvJKAuqIMg9-wMdc6Fd1 3">597704.cloudwaysapps.com/vdnerwfhts/public_html/wp-blog-header.php(13): require_once('/home/http://597704.cl&source=gmail&ust=1668139229681000&usg=AOvVaw2UTUow7i0OM57vtwvo9P6 E">597704.cl...')
#18 /home/http://597704.cloudwaysapps.com/vdnerwfhts/public_html/index.php(17)&source=gmail&ust=1668139229681000&usg=AOvVaw1PfCFL-rl5FIZUSiPsIx9 p">597704.cloudwaysapps.com/vdnerwfhts/public_html/index.php(17): require('/home/597704.cl...')
#19 {main}
  thrown


 

3 Replies
stefanolodola
Posts: 3
Topic starter
(@stefanolodola)
Active Member
Joined: 3 months ago

Since I saw the "cache.php" file in the error report, I also tried disabling my cache plugin (FlyingPress), but that didn't help either. In any case, the relevant URLs were already excluded from cache.

Robert
Posts: 9966
Admin
(@robert)
Support Team
Joined: 7 years ago

Hi @stefanolodola,

You just need to update to the latest wpForo 2.1.1 version. I think you still use the 2.1.0 version.

stefanolodola
Posts: 3
Topic starter
(@stefanolodola)
Active Member
Joined: 3 months ago

Yes, it works now...