Replies: 4 comments 1 reply
-
Thank you for the report. php v8.x comes with turned on warnings and notices, so could you try to tun them off in your php.ini file: |
Beta Was this translation helpful? Give feedback.
-
Shouldn't it be added in the installation procedure ? |
Beta Was this translation helpful? Give feedback.
-
After this change, I got another error : angular-common-libs.js:132 Possibly unhandled rejection: {"data":{"errors":[{"message":"Monarc\Core\Service\PasswordService::changePassword(): Argument #3 ($newPassword) must be of type string, null given, called in /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/monarc/frontoffice/src/Controller/ApiUserPasswordController.php on line 37","error":"error-exception","exception":{"class":"TypeError","file":"/var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/monarc/core/src/Service/PasswordService.php","line":123,"message":"Monarc\Core\Service\PasswordService::changePassword(): Argument #3 ($newPassword) must be of type string, null given, called in /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/monarc/frontoffice/src/Controller/ApiUserPasswordController.php on line 37","stacktrace":"#0 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/monarc/frontoffice/src/Controller/ApiUserPasswordController.php(37): Monarc\Core\Service\PasswordService->changePassword()\n#1 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Controller/AbstractRestfulController.php(431): Monarc\FrontOffice\Controller\ApiUserPasswordController->update()\n#2 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\Controller\AbstractRestfulController->onDispatch()\n#3 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()\n#4 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(105): Laminas\EventManager\EventManager->triggerEventUntil()\n#5 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Controller/AbstractRestfulController.php(306): Laminas\Mvc\Controller\AbstractController->dispatch()\n#6 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/DispatchListener.php(117): Laminas\Mvc\Controller\AbstractRestfulController->dispatch()\n#7 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\DispatchListener->onDispatch()\n#8 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(178): Laminas\EventManager\EventManager->triggerListeners()\n#9 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Application.php(319): Laminas\EventManager\EventManager->triggerEventUntil()\n#10 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/public/index.php(34): Laminas\Mvc\Application->run()\n#11 {main}"}}]},"status":500,"config":{"method":"PUT","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"api/user/password/1","data":{"old":"admin"},"headers":{"Accept":"application/json, text/plain, /","Content-Type":"application/json;charset=utf-8","token":"0f866b00663814b5e3bad76589cfb7c028c7deda85d81abe9d636cb8b5a40146479e338865014890138518.00407476"},"cached":false},"statusText":"Internal Server Error","xhrStatus":"complete"} |
Beta Was this translation helpful? Give feedback.
-
Thanks, it works. |
Beta Was this translation helpful? Give feedback.
-
This bug tracker is for tracking bugs, todos and confirmed new features.
If you want to submit a feature request please discuss about it here:
https://github.com/monarc-project/MonarcAppFO/discussions
Describe the bug
Got an error the trying to change admin password
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Password changed with no error
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
{
"errors": [
{
"message": "Laminas\View\Renderer\PhpRenderer::render: Unable to render template "monarc/front-office/api-user-password/get"; resolver could not resolve to a file",
"error": "error-exception",
"exception": {
"class": "Laminas\View\Exception\RuntimeException",
"file": "/var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-view/src/Renderer/PhpRenderer.php",
"line": 518,
"message": "Laminas\View\Renderer\PhpRenderer::render: Unable to render template "monarc/front-office/api-user-password/get"; resolver could not resolve to a file",
"stacktrace": "#0 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-view/src/View.php(194): Laminas\View\Renderer\PhpRenderer->render()\n#1 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-view/src/View.php(222): Laminas\View\View->render()\n#2 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-view/src/View.php(187): Laminas\View\View->renderChildren()\n#3 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/View/Http/DefaultRenderingStrategy.php(92): Laminas\View\View->render()\n#4 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(320): Laminas\Mvc\View\Http\DefaultRenderingStrategy->render()\n#5 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-eventmanager/src/EventManager.php(170): Laminas\EventManager\EventManager->triggerListeners()\n#6 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Application.php(354): Laminas\EventManager\EventManager->triggerEvent()\n#7 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/vendor/laminas/laminas-mvc/src/Application.php(335): Laminas\Mvc\Application->completeRequest()\n#8 /var/lib/monarc/releases/MonarcAppFO-v2.12.6/public/index.php(34): Laminas\Mvc\Application->run()\n#9 {main}"
}
}
]
}
Beta Was this translation helpful? Give feedback.
All reactions