i become requireloginerror at start page

i become requireloginerror at start page

by Senol Guel -
Number of replies: 11

Hi,

two instances of moodle doesn't work suddenly with the same error.

Look at here:
moodle.akbk-horrem.de
intern.akbk-horrem.de


Chrome: ERR_UNEXPECTED_PROXY_AUTH. no pages. no possibily to login.

Firefox: "Course or activity not accessible"-> it's still possible to login.

It's strange because same problem on two pages.

Here the error log:

"moodle.akbk-horrem.de [Mon Nov 28 10:34:20 2022] [error] [client 87.79.34.102:0] AH01071: Got error 'PHP message: Default exception handler:Web Service Course or Activity not Accessible Debug: You are not logged in\nError code: requireloginerror\n* line 2715 of /lib/moodlelib.php: require_login_exception thrown\n* line 3161 of /lib/moodlelib.php: call to require_login()\n* line 49 of /index.php: call to require_course_login()\n' "
Attachment chrome.png
Attachment firefox.png
Average of ratings: -
In reply to Senol Guel

Re: i become requireloginerror at start page

by Howard Miller -
Bildo de Core developers Bildo de Documentation writers Bildo de Particularly helpful Moodlers Bildo de Peer reviewers Bildo de Plugin developers
Sounds like a browser issue. Have you tried a different browser?
In reply to Howard Miller

Re: i become requireloginerror at start page

by Senol Guel -
show the post. yes i tried it and posted above the screenshots.
multiple students have the same problem on their notebooks.
i have analyse it more.
It caused by "require_course_login($SITE)" in index.php, if i open the homepage.
workaround is call the direct link for login "/login/index.php" which is worked.
but not the homepage index.php
In reply to Howard Miller

Re: i become requireloginerror at start page

by Senol Guel -
It means,
Generally it means the user needs to also have access at the course context, i.e. to have a role in the course that allows them to enrol other users.
But it's not the course. It's the login page.
View here
https://www.moodlewiki.com/books/integration/page/web-service-course-or-activity-not-accessible
In reply to Senol Guel

Re: i become requireloginerror at start page

by Visvanath Ratnaweera -
Bildo de Particularly helpful Moodlers Bildo de Translators
Both sites in your OP give me "Course or activity not accessible." The "More information" link points to https://docs.moodle.org/39/en/error/moodle/requireloginerror. The "Login" link at top right brings me a proper log in dialog.

In reply to Visvanath Ratnaweera

Re: i become requireloginerror at start page

by Senol Guel -
i know. But that's not a solution.
In reply to Senol Guel

Re: i become requireloginerror at start page

by Visvanath Ratnaweera -
Bildo de Particularly helpful Moodlers Bildo de Translators
Understand. I posted my observation that yoursite/login/ works as expected but yoursite/ throws this error in the hope that somebody will recognize the symptom. If you ask me, either you have managed the change all kinds of settings like making login mandatory but not showing the homepage to guests or played with the role permissions leading to a deadlock. That is the best case. In the worst case, your database has an anomaly like incompatible data.
In reply to Visvanath Ratnaweera

Re: i become requireloginerror at start page

by Senol Guel -
No. I didn't change any kind of setiing like login mandatories or roel permissions.
At same day problem has arisen the hoster changed the IP-Address.
In reply to Senol Guel

Re: i become requireloginerror at start page

by Senol Guel -
yesterday i was informed about that the hoster did a migration. Since yesterday we get a new IP. May be thats the problem.
Perhaps thera are entries in DB?
In reply to Senol Guel

Re: i become requireloginerror at start page

by Visvanath Ratnaweera -
Bildo de Particularly helpful Moodlers Bildo de Translators
The IP alone can not cause any problems, since Moodle knows on the domain. But by "IP" they mean probably another server, with its own system software, network settings, network devices before it. Only you hosting provider knows those things!
In reply to Visvanath Ratnaweera

Re: i become requireloginerror at start page

by Senol Guel -
I got it.
The hoster migrate from 32-Bit to 64-Bit.
The following entry in .htacces solves the problem.

RequestHeader unset Range

Thx for your support.
In reply to Senol Guel

Re: i become requireloginerror at start page

by Ken Task -
Bildo de Particularly helpful Moodlers

as of this AM in DNS:
moodle.akbk-horrem.de.    3600    IN    A    92.205.51.88
intern.akbk-horrem.de.    3600    IN    A    92.205.51.88

org-name:       Go Daddy Netherlands B.V.

server: nginx

Since both on same server in same server environment, suggest setting cookie prefix to be unique for each server.
for moodle.tld set cookie prefix to MDL.
for intern.tld set cookie prefix to INT.

For you, the admin user of both, if ever logged onto both, could confuse any browser.

About changing IP ... that IP could have been used by a 'bad customer' and could have been black holed or blocked or whatever.

See you've said problem resolved ... great ... but might want to do above anyway! smile

'SoS', Ken


Average of ratings:Useful (1)