Configurable paths with too many slashes

Project:OpenMIC - Moving Image Collections Bibliographic Utility
Version:1.0-beta
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

While configuring both the regular OpenMIC config.php and the authorization module config.php, we have found the following error:

<code>Warning: include_once(/c:/xampp/htdocs/OpenMIC//portals/dwms/phtml/Html_Navigation.php) [function.include-once]: failed to open stream: Invalid argument in C:\xampp\htdocs\OpenMIC\config\index.php on line 34</code>

We found the problem to be the following line in both config.php files:

<code>$cfg['app_root'] = '/' . trim($cfg['app_root'], '/') . '/';</code>

Commenting this line in both files solved the problem. Not only was the first slash preventing Windows users to configure an absolute path correctly, but the final slash ended up doubled during code execution later on.

Comments

#1

Component:Code» Documentation
Status:active» closed

Commenting out this line is not recommended and will negativity effect the software's use.

A note has been added to the README.txt file that is supplied with the software explaining how to configure this for Windows users.

NOTE:
For windows users, the entry for file path needs to be in this format:

Example: $cfg['app_root'] = "C:\\Inetpub\\wwwroot\\dwms\\";

Back to top