Project

General

Profile

Bug #8033

Forum associate/dissociate error when Chamilo is installed in a sub directory

Added by iban goenaga almost 4 years ago. Updated almost 4 years ago.

Status:
Rejected - Abandoned
Priority:
Normal
Assignee:
Category:
Forum
Target version:
Start date:
06/01/2016
Due date:
% Done:

0%

Estimated time:
Complexity:
Easy
SCRUM pts - complexity:
?

Description

Wrong url when associate or dissociate a forum to an item button is clicked:
http://localhost/chamilo-1.10//chamilo-1.10/main/newscorm/lp_controller.php?action=add_item&type=step&lp_id=1

To fix this: api_get_path(WEB_PATH) should be api_get_path(WEB_SERVER_ROOT_PATH) instead in:

Line 1333 : header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' ...

and

Line 1375 : header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' ...

History

#2

Updated by Angel Quiroz almost 4 years ago

  • Status changed from New to Needs more info

iban goenaga wrote:

Here is the pull request: https://github.com/chamilo/chamilo-lms/pull/976

I reviewed the changes and I can not reproduce the bug. I have an installation in a subdirectory and it works obtaining the correct path (like /PR977/main/newscorm/lp_controller.php) for the redirection after associate/dissociate a forum

In any case, in the PR you use the strstr function (to remove the last character of api_get_path(WEB_SERVER_ROOT_PATH)) but strstr doesn't this, you should use substr instead

#3

Updated by Yannick Warnier almost 4 years ago

  • Category set to Forum
  • Status changed from Needs more info to Rejected - Abandoned

No feedback provided

Also available in: Atom PDF