I get this error with ojsxc chat app under nextcloud 12.
Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/apps/ojsxc/lib/ContactsMenu/Providers/ChatProvider.php#70
I get this error with ojsxc chat app under nextcloud 12.
Error PHP Invalid argument supplied for foreach() at /var/www/nextcloud/apps/ojsxc/lib/ContactsMenu/Providers/ChatProvider.php#70
Hi. A fix for this error is in Only show icon if enabled + other fixes by LEDfan · Pull Request #18 · nextcloud/jsxc.nextcloud · GitHub. To use the Chat app (JSXC) without a external XMPP server, youâll have to enable the internal XMPP server.
You can leave all other options as is. Youâll have to logout and then login again for the changes to take effect.I hope this help!
I have now upgraded to ojsxc (XMPP Chat) to ver. 3.2.1 with NC12 but still have no luck with it, by using itâs internal server. Messages are not transmitted from one to other. Anyhow now the online status is partially working depending on what browser I use.(Microsoft Edge/ Google Chrome).
Hi
Iâm currently having exams, so I donât have much time. Since the online status is working, the transportation is working, so I donât see why it isnât working. When you say online status is partially working do you mean it is not working in Edge?
To debug the issue of the chat messages can you have a look at the Nextcloud log file at data/nextcloud.log
and enable debug mode for JSXC in the browser using: jsxc.storage.setItem("debug", true);
and post any errors. Thanks!
@LEDfan Many thanks for your Attention. I get this Messages from the Chrome browserâs console.
Failed to set referrer policy: The value âsame-originâ is not one of âno-referrerâ, âno-referrer-when-downgradeâ, âoriginâ, âorigin-when-cross-originâ, or âunsafe-urlâ. The referrer policy has been left unchanged.
Failed to set referrer policy: The value âsame-originâ is not one of âno-referrerâ, âno-referrer-when-downgradeâ, âoriginâ, âorigin-when-cross-originâ, or âunsafe-urlâ. The referrer policy has been left unchanged.
logging:1 Refused to load the script âhttps://mydomain/nextcloud/apps/ojsxc/js/jsxc/lib/otr/vendor/salsa20.jsâ because it violates the following Content Security Policy directive: âscript-src ânonce-cktSNUNacDVGZXgzcjduTkhJWDRTNG5uY2hEOHduZHdyOEVlcDFDbE1Xcz06K2RjL1pOQTZYN2tPbVB5Skw2NmZJZmlNQ0VPSWhoTTN5YXBXNUFpVUJ5OD0=â âunsafe-evalââ.
dsa-webworker.js:36 Uncaught DOMException: Failed to execute âimportScriptsâ on âWorkerGlobalScopeâ: The script at âhttps://mydomain/nextcloud/apps/ojsxc/js/jsxc/lib/otr/vendor/salsa20.jsâ failed to load.
at onmessage (https://mydomain/nextcloud/apps/ojsxc/js/jsxc/lib/otr/lib/dsa-webworker.js:36:19)
Online status is not updated if one chat user is going offline by logging out from nextcloud. (Offline user remains with online status) Also Messages are not transported at all.