MyBB Community Forums

Full Version: Getting a Error 500 for Password Retrieval
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
When a test user enters their email address to get a password reset, it goes to a 500 Error screens. I have it installed in a sub-directory.

It goes to the member.php page and i get this is the error:

This page isn’t working right nowbiggrowroom.com can't currently handle this request.
HTTP ERROR 500

It does it when you enter your email address in the password retrieval field. Is there a fix for this?

I'm using MyBB 1.8.32
500 is a generic web server error.  Might be a php error - might not.  From your description, sounds likely.

After reading your post, I tested our password reset without issue.  I'm on 1833.  In my case - it was a valid user and address - if that makes a difference.  AFAIK that routine hasn't changed for a while.  You need to figure out what exactly is causing the error.

Normally I'd go looking for a web server error log entry for a 500 error.  But assuming the issue is in member.php as you describe - I'd turn on MyBB error handling to see if you can capture the precise error.
(2020-03-18, 01:23 AM).m. Wrote: [ -> ]have you checked server error log to trace the cause of internal server error ?

for the invalid password reset code :
are you using any plugins related to passwords (hash - etc)

have a look at few search results

Take a look at this thread and see if this is of any help to you. https://community.mybb.com/thread-226908.html

(2020-04-03, 02:16 AM).m. Wrote: [ -> ]the issue is found to be related to a plugin. Thanks to NoRules for deeper insight into the issue.
Can you generate and post the logs from /var/logs/??
I upgraded to PHP8.2 but it's still doing it. I'm going to check the logs as you suggested.

Since upgrading to PHP8.2 its working for email addresses that don't have an account. It' will say, "this email address doesn't exist."

However, if a new user tries to register it gives a 500 error. If I try to retrieve a new password it gives a 500 error.

It's installed in directory. The 500 error is happening when it goes from this page:

https://mysite.com/grow-forum/member.php?action=lostpw

to this page:

https://mysite.com/grow-forum/member.php

Or when a user registers which also goes to the member.php page.
Go to ACP > Configuration > Server and Optimization Options > set Error Logging Medium to Log an email errors, and Error Type Medium to Warnings and Errors, you will then see the error that is happening and it can be resolved.
Thank you. I'll do that now.

When I register as a test user I get this error on the registration page:

Warning [2] Undefined variable $passboxes - Line: 27 - File: member.php(1235) : eval()'d code PHP 8.2.1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/member.php(1235) : eval()'d code 27 errorHandler->error_callback
/member.php 1235 eval

Then when I press the register button it goes to a generic 500 error page.

When I try to retrieve a new password I get no error on the first page (https://mysite.com/grow-forum/member.php?action=lostpw) but after that it takes you to a generic 500 page.

Also, when registering, it does the same thing that happens when the password retrieval page is clicked. No error before and then a generic 500 page.

It all seems to be centering around the member.php page.
This is the exact error:

This page isn’t working right mysite.com can't currently handle this request.
HTTP ERROR 500

Here's a screenshot:
https://imgur.com/7nJRNAm

It says it isn't working right now. However, it's been like this for the entire week.
You will need to ask your host to debug this. We can’t tell what is causing a 500 error, it’s a very generic error message, and if it’s caused by a simple PHP error then it’s a very extreme way of the server handling the error. The error above is just an undefined variable, and definitely shouldn’t be throwing a 500 error. They will need to help you find what the actual error is. Considering the install error in your other thread, you seem to be using a very strangely configured server.
I don't have PHP 8, 8.1, and 8.2 set up correctly. I returned my PHP Version to PHP7.4 and it's working. Ill have to track down what's not set up correctly. It could be a missing module, or Apache isn't compiled properly. Where is the MyBB requirements documentation?
Pages: 1 2