I'm having a very similar problem as described here:
https://www.jomsocial.com/forum/modules-plugins-and-applications/20893-login-redirect-error-you-are-not-authorised-to-view-this-resource
Hi there,
I have strange issue with redirection. I have created a button called “Login” referring to the JomSocial frontpage where the login form is situated.
When the permission of this button is set to “Public” the redirection works fine.
When the permission of the this button is set to “Guest” I get the following error after redirection:
“Message – Login in Successful”
“Error - You are not authorised to view this resource.”
When I refresh the page, the error disappears.
What is the cause of this issue?
In my case, the login menu item (on top menu) link to JomSocial home page and has access set to public, but I still get the same error message after a registered user logs in. Also, the message will disappear upon page refresh.
When I login as supper user throught the font end, I do not get the error message.
System Info:
Database Type mysql
Database Version 5.5.5-10.2.13-MariaDB-log
Database Collation latin1_swedish_ci
Database Connection Collation utf8mb4_general_ci
PHP Version 7.2.10
Web Server Apache
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 3.9.1 Stable
Please advise. Thank you.