cmer Posted December 7, 2021 Share Posted December 7, 2021 Hello, Since the last update nobody can register on our site, we have the following error: ArgumentCountError: Too few arguments to function IPS\core\modules\front\system\_register::_createMember(), 3 passed in /var/www/vhosts/xxx.gg/httpdocs/init.php(902) : eval()'d code on line 11 and exactly 4 expected (0) #0 /var/www/vhosts/xxx.gg/httpdocs/init.php(902) : eval()'d code(11): IPS\core\modules\front\system\_register::_createMember() #1 /var/www/vhosts/xxx.gg/httpdocs/applications/core/modules/front/system/register.php(242): IPS\core\modules\front\system\hook161::_createMember() #2 /var/www/vhosts/xxx.gg/httpdocs/applications/core/modules/front/system/register.php(105): IPS\core\modules\front\system\_register->_registrationForm() #3 /var/www/vhosts/xxx.gg/httpdocs/system/Dispatcher/Controller.php(101): IPS\core\modules\front\system\_register->manage() #4 /var/www/vhosts/xxx.gg/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #5 /var/www/vhosts/xxx.gg/httpdocs/index.php(13): IPS\_Dispatcher->run() #6 {main} #0 /var/www/vhosts/xxx.gg/httpdocs/init.php(1004): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main} Same problem if I disable all extensions and plugins. 😞 Good day, Link to comment Share on other sites More sharing options...
Jim M Posted December 7, 2021 Share Posted December 7, 2021 Have you tried switching to an unmodified theme? Are all files current with the version you upgraded to? Link to comment Share on other sites More sharing options...
Adriano Faria Posted December 7, 2021 Share Posted December 7, 2021 It’s a plugin: hook161. As it doesn’t show the name in the log error, you would need to check this ID in the core_hooks table. You will see the plugin ID there then you’ll see the name in the core_plugins table. Link to comment Share on other sites More sharing options...
Solution Marc Posted December 7, 2021 Solution Share Posted December 7, 2021 It's being caused by "Members Country" Adriano Faria and cmer 2 Link to comment Share on other sites More sharing options...
Adriano Faria Posted December 7, 2021 Share Posted December 7, 2021 (edited) 15 minutes ago, Marc Stridgen said: It's being caused by "Members Country" It had to be me! 😄 He's probably outdated. It is an app now and it uses MemberSync::onCreateAccount(); it doesn't use a hook in registration form anymore from a long time. --------------------- Oh boy, the user doesn't even purchased the resource. His name isn't in the purchasers list! 🤦♂️ Probably someone else purchased. Edited December 7, 2021 by Adriano Faria SeNioR- 1 Link to comment Share on other sites More sharing options...
cmer Posted December 7, 2021 Author Share Posted December 7, 2021 1 hour ago, Marc Stridgen said: It's being caused by "Members Country" Thanks a lot, you are the best. 😍 Marc 1 Link to comment Share on other sites More sharing options...
Recommended Posts