Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in registering new user #289

Closed
hananaq opened this issue Nov 4, 2020 · 3 comments
Closed

Error in registering new user #289

hananaq opened this issue Nov 4, 2020 · 3 comments

Comments

@hananaq
Copy link

hananaq commented Nov 4, 2020

hello, im trying to register a new user but im getting this error
Trying to get property 'userActivators' of non-object

APPPATH\ThirdParty\myth-auth\src\Authentication\Activators\BaseActivator.php at line 28

public function getActivatorSettings()
27 {
28 return (object) $this->config->userActivators[get_class($this)];
29 }

could you help please ?

@hananaq
Copy link
Author

hananaq commented Nov 5, 2020

fixed the issue by disabling the activation on localhost

@hananaq hananaq closed this as completed Nov 5, 2020
@fewlme
Copy link

fewlme commented Nov 13, 2020

How do you disable it ?

@rmilecki
Copy link

rmilecki commented Mar 6, 2022

I had the same problem while using outdated myth-auth:

CRITICAL - 2022-03-05 13:20:23 --> Trying to get property 'userActivators' of non-object
#0 app/ThirdParty/myth-auth/src/Authentication/Activators/BaseActivator.php(28): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Trying to get p...', '/home/host76963...', 28, Array)
#1 app/ThirdParty/myth-auth/src/Authentication/Activators/EmailActivator.php(33): Myth\Auth\Authentication\Activators\BaseActivator->getActivatorSettings()
#2 app/ThirdParty/myth-auth/src/Controllers/AuthController.php(225): Myth\Auth\Authentication\Activators\EmailActivator->send(Object(Myth\Auth\Entities\User))
#3 system/CodeIgniter.php(918): Myth\Auth\Controllers\AuthController->attemptRegister()
#4 system/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Myth\Auth\Controllers\AuthController))
#5 system/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 public/index.php(45): CodeIgniter\CodeIgniter->run()
#7 {main}
CRITICAL - 2022-03-06 17:44:40 --> Trying to get property 'userActivators' of non-object
#0 app/ThirdParty/myth-auth/src/Authentication/Activators/BaseActivator.php(28): CodeIgniter\Debug\Exceptions->errorHandler(8, 'Trying to get p...', '/home/host76963...', 28, Array)
#1 app/ThirdParty/myth-auth/src/Authentication/Activators/EmailActivator.php(33): Myth\Auth\Authentication\Activators\BaseActivator->getActivatorSettings()
#2 app/ThirdParty/myth-auth/src/Controllers/AuthController.php(405): Myth\Auth\Authentication\Activators\EmailActivator->send(Object(Myth\Auth\Entities\User))
#3 system/CodeIgniter.php(918): Myth\Auth\Controllers\AuthController->resendActivateAccount()
#4 system/CodeIgniter.php(404): CodeIgniter\CodeIgniter->runController(Object(Myth\Auth\Controllers\AuthController))
#5 system/CodeIgniter.php(312): CodeIgniter\CodeIgniter->handleRequest(NULL, Object(Config\Cache), false)
#6 public/index.php(45): CodeIgniter\CodeIgniter->run()
#7 {main}

For a reference this bad been fixed by the commit 68ca6ed ("Tighten activator classes, fixes #295").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants