chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Chamilo 1.11.26 Course redirection error

Open GenApophis opened this issue 1 year ago • 5 comments

Describe I have installed a new clean installation of Chamilo on my web space. All pages seem to be working so far, except for the redirection for courses, which always goes to "https://campus.my-website.de/courses/T7/index.php" in the address bar, but I always see that Page does not exist.

To Reproduce The web space is hosted by Ionos and has everything fulfilled except the APCu extension. It is a "vanilla" installation of Chamillo on php version 7.4.33, the php info is attached.

Expected behavior I think this is self-explanatory, I wanted to create a course.

Screenshots None

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome (last Update)

**Server

GenApophis avatar Apr 05 '24 07:04 GenApophis

Hi @GenApophis

Have you checked the mod_rewrite section of the installation at https://campus.chamilo.org/documentation/installation_guide.html#16._Rewrite?

Do you have the .htaccess file active in the root of your site?

Have you checked your site's error_log file?

Regards.

Kaneda-1 avatar Apr 05 '24 08:04 Kaneda-1

Hello, yes, I saw that and implemented it to the best of my knowledge and belief. I have attached my .htaccess. htaccess.txt

GenApophis avatar Apr 05 '24 08:04 GenApophis

Hi @GenApophis

Line 10 of your .htaccess is the one failing. It is likely to be due to the new Apache rules which appeared in 2.4.37 or something like that.

Could you try changing line 10 from:

RewriteRule ^courses/([^/]+)/?$ main/course_home/course_home.php?cDir=$1 [QSA,L]

to

RewriteRule ^courses/([^/]+)/?$ main/course_home/course_home.php?cDir=$1 [QSA,L,B=\x20?]

or

RewriteRule ^courses/([^/]+)/?$ main/course_home/course_home.php?cDir=$1 "[QSA,L,B= ?,BNP]"

Then save the .htaccess, reload the https://campus.my-website.de/courses/T7/index.php and report if it worked?

ywarnier avatar Apr 19 '24 14:04 ywarnier

Hi @ywarnier,

both of them did not work :-(

GenApophis avatar Apr 22 '24 05:04 GenApophis

This is complicated to debug. I would try enabling the Apache's (if you use Apache) rewrite logs, but doing that also depends on your version of Apache. Some inspiration: https://stackoverflow.com/a/9632952/1406662 With that, watching the error log just after loading that specific page, you should see how Apache is thinking and be able to debug what's missing, but it's a long road there. The most likely is that you missed something during installation. Or maybe the rewrite module is not enabled in your installation of Apache, but I think that would have triggered some other error, then.

ywarnier avatar Apr 23 '24 09:04 ywarnier