With Notification Center 1.7 and Contao-mailusername 2.1 installed the registration of a member in Contao 4.13.15 does not work.
The issue was first reported to https://github.com/codefog and reproduced, but is related to Contao-mailusername
The Log-message is:request.CRITICAL: Uncaught PHP Exception TypeError: "preg_match_all(): Argument #2 ($subject) must be of type string, null given" at /mnt/web524/b3/20/543420/htdocs/cms/dorf-zeitung.net/contao/vendor/codefog/contao-haste/src/StringParser.php line 85 {"exception":"[object] (TypeError(code: 0): preg_match_all(): Argument #2 ($subject) must be of type string, null given at /mnt/web524/b3/20/543420/htdocs/cms/dorf-zeitung.net/contao/vendor/codefog/contao-haste/src/StringParser.php:85)"}
The Stack-Trace is:
ErrorException:
Warning: Undefined array key "username"
at vendor/contao/core-bundle/src/Resources/contao/modules/ModuleRegistration.php:422
at Contao\ModuleRegistration->createNewUser()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleRegistration.php:346)
at Contao\ModuleRegistration->compile()
(vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
at Contao\Module->generate()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleRegistration.php:55)
at Contao\ModuleRegistration->generate()
(vendor/contao/core-bundle/src/Resources/contao/elements/ContentModule.php:98)
at Contao\ContentModule->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:616)
at Contao\Controller::getContentElement()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:197)
at Contao\ModuleArticle->compile()
(vendor/contao/core-bundle/src/Resources/contao/modules/Module.php:214)
at Contao\Module->generate()
(vendor/contao/core-bundle/src/Resources/contao/modules/ModuleArticle.php:70)
at Contao\ModuleArticle->generate()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:544)
at Contao\Controller::getArticle()
(vendor/contao/core-bundle/src/Resources/contao/library/Contao/Controller.php:386)
at Contao\Controller::getFrontendModule()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:190)
at Contao\PageRegular->prepare()
(vendor/contao/core-bundle/src/Resources/contao/pages/PageRegular.php:60)
at Contao\PageRegular->getResponse()
(vendor/contao/core-bundle/src/Resources/contao/controllers/FrontendIndex.php:320)
at Contao\FrontendIndex->renderPage()
(vendor/symfony/http-kernel/HttpKernel.php:163)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:75)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:202)
at Symfony\Component\HttpKernel\Kernel->handle()
(public/index.php:44)
Attached the composer.json and a screenshot of my registration settings.
Running Notification Center 1.6.14 and Contao-mailusername 2.1 seems to work fine.
With Notification Center 1.7 and Contao-mailusername 2.1 installed the registration of a member in Contao 4.13.15 does not work. The issue was first reported to https://github.com/codefog and reproduced, but is related to Contao-mailusername
The Log-message is:
request.CRITICAL: Uncaught PHP Exception TypeError: "preg_match_all(): Argument #2 ($subject) must be of type string, null given" at /mnt/web524/b3/20/543420/htdocs/cms/dorf-zeitung.net/contao/vendor/codefog/contao-haste/src/StringParser.php line 85 {"exception":"[object] (TypeError(code: 0): preg_match_all(): Argument #2 ($subject) must be of type string, null given at /mnt/web524/b3/20/543420/htdocs/cms/dorf-zeitung.net/contao/vendor/codefog/contao-haste/src/StringParser.php:85)"}
The Stack-Trace is:
composer.json.zip
Attached the composer.json and a screenshot of my registration settings. Running Notification Center 1.6.14 and Contao-mailusername 2.1 seems to work fine.