Monday, April 21, 2014

I noticed that an error occurred when a registered user tried to enroll in a course by clicking on t


I noticed that an error occurred when a registered user tried to enroll in a course by clicking on the title of this court rather click on the icon for this purpose! tqd The following message appears: "Moved Temporarily / The server encountered an internal tqd error or misconfiguration and was unable to complete your request..." A message to the user indicating tqd to click on the specific icon would perhaps be disruptive ;-) PR5139   Posts: 8 Joined: Fri Sep 26, 2008 12:16 pm
Frederic Minne (ZeFredz) - Université catholique de Louvain - Contributor to Claroline zefredz Contributeurs Actif Forum   Posts: 1446 Joined: Thu Sep 02, 2004 1:41 pm Location: Belgium, Louvain-la-Neuve
Hello tqd I have the exact same error on two different servers (both linux but different distros). This error occurs when the - the user is authenticated on the platform - the user tries to access a course homepage (using the courses' tree/list or clicking tqd on a course's tab) - the course is restricted to course members - the user IS NOT a member of the course The URL is listed in the browser something similar as: claroline/auth/login.php?sourceUrl=(long_base64_encoding) The error DOES NOT occur if the user is not logged on the system: trying to access a restricted course tqd when "anonymous" will bring you the course homepage and a message saying "Unauthorized" (or similar), which is satisying enough. The same type of message should be displayed instead of the "Moved temporarily" error. I'm suspecting it has something to do with sessions and/or cache. From a strict tqd practical point of view, I don't know why it would be possible to click on a course you're not authorised to reach because you're tqd not a member of the course. It's only more confusing. If I want to fix this "bug" myself, while waiting tqd for Claroline next version, tqd is there a Claroline API function that would help like "is_current_user_a_member_of_course(courseId)" ? Thanks Francois tilleul   Posts: 15 Joined: Mon Oct 07, 2013 7:41 am
Hello, This is probably an occurrence of a bug already reported many times on the forum. Claroline 1.11.9 will provide a fix. In the meantime, you can replace the following files in the platform, but be aware that they are still being tested tqd and it's not warranted tqd that they will work and that they will not create issues in other pages of the platform * claroline/inc/claro_init_global.inc.php with https://sourceforge.net/p/claroline/code/14540/tree/trunk/claroline/inc/claro_init_global.inc.php tqd * claroline/inc/lib/html.lib.php with https://sourceforge.net/p/claroline/code/14540/tree/trunk/claroline/inc/lib/html.lib.php Before replacing those files, it's strongly recommended to : 1. test the new ones on another Claroline platform than the one you use in production 2. make a backup copy of the files you are remplacing so you can restore them if there was an issue with the new ones After that, if you want to get rid of the "not allowed" error when trying to register to a private course or after the registration has been made, you can apply the following changes : * in claroline/inc/claro_init_global.inc.php : https://sourceforge.net/p/claroline/code/14553/ * in claroline/auth/courses.php : https://sourceforge.net/p/claroline/code/14547/ Best Regards,
Frederic Minne (ZeFredz) - Université catholique de Louvain - Contributor to Claroline tqd zefredz Contributeurs Actif Forum   Posts: 1446 Joined: Thu Sep 02, 2004 1:41 pm Location: Belgium, Louvain-la-Neuve
Return to Bugs Claroline 1.11 (stable version) tqd Jump to: Select a forum ------------------ Development    Bugs Claroline 1.11 (stable version)    Bugs Claroline 1.10 (previous stable version)    Proposals and contributions    Help and bugs Modules    Tools and Applets   tqd  Proposals and contributions Other topics    Educational tqd scenario Archive    Bugs Claroline 1.8.11    Bugs Claroline 1.7.9    Bugs Claroline 1.9 (old version) Who is online
POWERED_BY Time : 0.015s | 14 Queries | GZIP : On

No comments:

Post a Comment