zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

foreach() argument must be of type array|object, null given at /var/www/nextcloud/nextcloud/apps/sociallogin/lib/Controller/SettingsController.php#48 #416

Open ghorchem opened 1 year ago

ghorchem commented 1 year ago

When trying go config the Social Login App using the NextCloud GUI it's settings won't apply and I get this PHP Error: foreach() argument must be of type array|object, null given at /var/www/nextcloud/nextcloud/apps/sociallogin/lib/Controller/SettingsController.php#48

zorn-v commented 12 months ago

What version of nextcloud/sociallogin you use ? Did you have some popup message in top right corner after pressing save button ? Can you give screenshot of social login settings page (top part will be enough) ?

ghorchem commented 12 months ago

Here is a snippet from my Nextcloud log file: [mail] Error: Exception: Typed property DOMAttr::$name must not be accessed before initialization in file '/var/www/nextcloud/nextcloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php' line 267 at <>0. /var/www/nextcloud/nextcloud/lib/private/AppFramework/App.php line 183   OC\AppFramework\Http\Dispatcher->dispatch()1. /var/www/nextcloud/nextcloud/lib/private/Route/Router.php line 315   OC\AppFramework\App::main()2. /var/www/nextcloud/nextcloud/lib/base.php line 1060   OC\Route\Router->match()3. /var/www/nextcloud/nextcloud/index.php line 36   OC::handleRequest()Caused by:Error: Typed property DOMAttr::$name must not be accessed before initialization at <> 0. /var/www/nextcloud/nextcloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php line 222    HTMLPurifier_Lexer_DOMLex->transformAttrToAssoc() 1. /var/www/nextcloud/nextcloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php line 118    HTMLPurifier_Lexer_DOMLex->createStartNode(" sensitive parameters replaced ") 2. /var/www/nextcloud/nextcloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php line 90    HTMLPurifier_Lexer_DOMLex->tokenizeDOM() 3. /var/www/nextcloud/nextcloud/apps/mail/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php line 213    HTMLPurifier_Lexer_DOMLex->tokenizeHTML() 4. /var/www/nextcloud/nextcloud/apps/mail/lib/Service/Html.php line 165    HTMLPurifier->purify() 5. /var/www/nextcloud/nextcloud/apps/mail/lib/Model/IMAPMessage.php line 342    OCA\Mail\Service\Html->sanitizeHtmlMailBody() 6. /var/www/nextcloud/nextcloud/apps/mail/lib/Model/IMAPMessage.php line 290    OCA\Mail\Model\IMAPMessage->getHtmlBody() 7. /var/www/nextcloud/nextcloud/apps/mail/lib/Controller/MessagesController.php line 222    OCA\Mail\Model\IMAPMessage->getFullMessage() 8. /var/www/nextcloud/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230    OCA\Mail\Controller\MessagesController->getBody() 9. /var/www/nextcloud/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137    OC\AppFramework\Http\Dispatcher->executeController()10. /var/www/nextcloud/nextcloud/lib/private/AppFramework/App.php line 183    OC\AppFramework\Http\Dispatcher->dispatch()11. /var/www/nextcloud/nextcloud/lib/private/Route/Router.php line 315    OC\AppFramework\App::main()12. /var/www/nextcloud/nextcloud/lib/base.php line 1060    OC\Route\Router->match()13. /var/www/nextcloud/nextcloud/index.php line 36    OC::handleRequest()GET /nextcloud/index.php/apps/mail/api/messages/4835/bodyfrom 192.168.2.2 by horchemg at 2023-07-02T21:48:27+00:00Running NextCloud version 26.0.3 and mail app version 3.2.3Sent from my iPhoneOn Jul 2, 2023, at 07:22, zorn-v @.***> wrote: What version of nextcloud/sociallogin you use ? Did you have some popup message in top right corner after pressing save button ? Can you give screenshot of social login settings page (top part will be enough) ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ghorchem commented 12 months ago

And here’s a screenshot:Sent from my iPhoneOn Jul 2, 2023, at 07:22, zorn-v @.***> wrote: What version of nextcloud/sociallogin you use ? Did you have some popup message in top right corner after pressing save button ? Can you give screenshot of social login settings page (top part will be enough) ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

zorn-v commented 12 months ago

Which browser do you use to save settings ?

ghorchem commented 12 months ago

I’m using Edge, Firefox, and Safari. Tried different ones and it didn’t solve the problem. In my last message I posted the wrong screenshots here are the correct ones. I can configure it using OCC.On Jul 3, 2023, at 2:53 AM, zorn-v @.***> wrote: Which browser do you use to save settings ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

ghorchem commented 12 months ago

I’m using Edge, Firefox, and Safari. Tried different ones and it didn’t solve the problem. In my last message I posted the wrong screenshot here are the correct ones. I can configure it using OCC.Sent from my iPadOn Jul 3, 2023, at 2:53 AM, zorn-v @.***> wrote: Which browser do you use to save settings ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

zorn-v commented 12 months ago

I did not see any screenshot