Guest access not working in moodle - moodle

I'm new to using moodle. I have downloaded Moodle 2.9 version. I'm doing the integration of drupal and moodle. to just showing the moodle courses in drupal side. I have created 10 courses in moodle among these 5 courses can be taken by guest user.
To test these functionalities I clicked the button "Login as a Guest User" in moodle login page. But it shows "Invalid user, try again".
After long searching I found that, there is no guest user record in "mdl_user" table of moodle database. Now what can I do??? Can I insert guest user details manually??????
Thank you.

Most of the things you need to check are here:https://docs.moodle.org/29/en/Guest_access
It should just work, without having to create a user in the database. I think you should check the actions in the list in the link above, to see if you've done them all.

The guest account on a new install will be id=1. Main admin is usually id=2.
Have you enabled guest access at site level?
Have you enabled auto-login for guests?
Have you allowed guest enrolment in the relevant courses?
See https://docs.moodle.org/29/en/Guest_access for info.

Related

Invalid Form Key. Please refresh the page - this error pops up in the guest page whenever i create account or login

I am working on a windows 10, using Xampp v3.2.2
my Magento version is 2.3.0,
php v7.2.9
so whenever i try to create an account or try to add products to my cart i get this message - Invalid Form Key. Please refresh the page
do you have any caching setup? 3rd party cache modules, not the built in magento ones?
also, can you try it on an incognito window of your browser. i've seen sessions get messed up.

Liferay 6.2: Documents and Media portlet subscription feature not working for standard user

I am using Liferay 6.2 and want to set the options for the folder subscription feature in the Documents and Media portlet. My problem is that the button "subscribe" only appears for my Admin-user. For every other user of my portal it is not showing up.
I checked every permission that is set for users in the portal and the subscription-feature is nowhere to be seen. How can I have my normal users subscribe to folders?
Where can I find the right settings?
TIA
I found the solution myself.
The problem was that the users were not assigned to the open site. Although they had all the roles they needed they HAD to be assigned to the site, not only the community.

Installing applications with a business account

I have created an application on Facebook and am trying to prevent business accounts from installing the application. I understand that business accounts (and by extension pages) can not install applications. This understanding comes from a few posts I have come across here on Stack Overflow posted by users on the Facebook support team -
Can I add the "login using facebook" feature for my fb business page? (answered by igy)
Get data from businessaccount (answered by Jonathan Dean)
A picture is worth a thousand words, so here is a screen shot proving that I am able to install an application with a business account -
As you can see from the settings page, this is indeed a business account and it has installed an application (SomeApp).
Whether or not this is a bug (which I believe it is) is not my question here.
My question is how can I detect such a business account? I am aware that before installing the application I have no information on the user so I'll have to detect this after the account has installed the application.
So far my thoughts are to inspect the following fields -
first_name
last_name
I was considering the gender field too, but I believe that this can be set to private.

Been through verification process but cannot seem to add the Developer Add (to create a new app)

I hope someone can help. I have registered for a developer account and have verified my mobile number and card details. But every time I go into http://developers.facebook.com/apps (as i intend to to create a new app) it takes me back to my Facebook page. Even if I select it from search box, it does not seem to come with a 'request for permission'
What do I need to do?
You need to create the app with your personal user - not your pages user.

Passing user data from Connect With Facebook button into Modx profile fields

I've been trying to use the Connect With Facebook button on a Modx Revolution site. I've been following along with this guide here: http://edwardawebb.com/web-development/facebook-login-modx-sites.
So far, I have the button creating the new user, but it's not passing through the data from the Facebook profile to the Modx profile fields. In addition to that, I need a way to tell the user what their username is so they can login with that username if they chose to (as opposed to using the Connect with Facebook button again).
Here is what my snippet looks like that is creating the profile from the Connect with Facebook button: http://pastebin.com/jdf5zrA8
Eventually, I want to collect more user data than what's in there now, but I figured I would start simple for now. Since this is a bit more advanced than my skills are.
I appreciate any help.
I'm just about to release an extra for MODX Revolution which will do what you need - see http://www.hyper-typer.com/news/facebook-login-modx and http://www.github.com/freelancewebdev/fblogin - particularly the snippets in core/components/snippets.