Jump to content
  • 0

FluxCP Error Register account


Ropke

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/15/16
  • Last Seen:  

Hello!

When i try to register new account, I'll get " Something bad happened. Report to an administrator ASAP. "

But login is OK and i was set DebugMode = true

But no errors throw

Someone can help me?

 

Thanks

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3127
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

1 hour ago, Cyro said:

check your cp_tables in mysql! you might deleted one of them by mistake

try deleting all cp tables and reinstalling fluxcp!

Stop giving duff info to other users. This isn't the first time. If you don't have an answer to the problem, or have no constructive instructions on how to fix the problem, or to assist with debugging, don't post an answer. Perhaps one day, someone will delete your account by mistake.

 

Back on-topic.

35 minutes ago, Ropke said:

Thanks Cyro.

After debugging the code I found the problem, it was the password policy .. I will improve the error message "The password can not contain the user"

Solved.

The error is produced when none of the conditions for registering match the criteria. 

https://github.com/rathena/FluxCP/blob/5280fcdd11811e0a311cffafedc14f7bc01d6e88/modules/account/create.php#L152

If your error was based on the user's password containing the username, you would be presented with that error, not the one you have provided.

			case Flux_RegisterError::PASSWORD_HAS_USERNAME:
				$errorMessage = Flux::message ('PasswordHasUsername');
				break;

The first place to look is in your error logs. Not all errors are displayed on the pages themselves, so you need to check in /data/logs/errors/exceptions/ and /data/logs/mysql/errors/.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/15/16
  • Last Seen:  

27 minutes ago, Cyro said:

check your cp_tables in mysql! you might deleted one of them by mistake

try deleting all cp tables and reinstalling fluxcp!

Thanks Cyro.

After debugging the code I found the problem, it was the password policy .. I will improve the error message "The password can not contain the user"

Solved.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/15/16
  • Last Seen:  

Exactly, I discovered this by opening the register function inside php and debugging.

Thank you for your attention.

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

check your cp_tables in mysql! you might deleted one of them by mistake

try deleting all cp tables and reinstalling fluxcp!

Edited by Cyro
Link to comment
Share on other sites

×
×
  • Create New...