To debug/develop/test please install chamilo in a subfolder

Moderator: Coursenligne

To debug/develop/test please install chamilo in a subfolder

Postby xrv » Fri Sep 16, 2011 7:04 am

I have detected that in chamilo are hardcoded literal values refering to urls of chamilo hosted in the root of the web pages repository.

This is a message to developers and testers (no, I have not access to the tracking system, I do not know why and I am registered :P).

Please install chamilo in a subfolder instead of on the root of the repository so the url should be, by example: http://localhost/chamilo-1.8.8.4/



Example of this problem: file: gradebook_functions.inc.php. Line: 572 aproximately.
$new_content_html = str_replace('/main/default_course_document',$path_image_in_default_course,$new_content_html);
$new_content_html = str_replace('/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html);


In this case, they should be:
$new_content_html = str_replace($GLOBALS['_configuration']['url_append'] . '/main/default_course_document',$path_image_in_default_course,$new_content_html);
$new_content_html = str_replace($GLOBALS['_configuration']['url_append'] . '/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html);

Thanks you very much.
xrv
 
Posts: 14
Joined: Tue Aug 23, 2011 10:15 am

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests

To debug/develop/test please install chamilo in a subfolder

Moderator: Coursenligne

To debug/develop/test please install chamilo in a subfolder

Postby xrv » Fri Sep 16, 2011 7:04 am

I have detected that in chamilo are hardcoded literal values refering to urls of chamilo hosted in the root of the web pages repository.

This is a message to developers and testers (no, I have not access to the tracking system, I do not know why and I am registered :P).

Please install chamilo in a subfolder instead of on the root of the repository so the url should be, by example: http://localhost/chamilo-1.8.8.4/



Example of this problem: file: gradebook_functions.inc.php. Line: 572 aproximately.
$new_content_html = str_replace('/main/default_course_document',$path_image_in_default_course,$new_content_html);
$new_content_html = str_replace('/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html);


In this case, they should be:
$new_content_html = str_replace($GLOBALS['_configuration']['url_append'] . '/main/default_course_document',$path_image_in_default_course,$new_content_html);
$new_content_html = str_replace($GLOBALS['_configuration']['url_append'] . '/main/img/', api_get_path(WEB_IMG_PATH), $new_content_html);

Thanks you very much.
xrv
 
Posts: 14
Joined: Tue Aug 23, 2011 10:15 am

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests

Social network

Youtube

Subscribe to our newsletter

Leave us your e-mail in the box below, then make sure you approve the confirmation e-mail you will receive

 


 

Upcoming events