Doesn't work in non-root folders
Closed this issue · 1 comments
benj5378 commented
The system fails when not installed in the $_SERVER['DOCUMENT_ROOT'] folder.
Reproduce the problem:
- Create a PHP-server
- Create a subfolder
- Install the system in the subfolder
- Get the error failed to open stream: No such file or directory
ginger51011 commented
This is because of line 4 in data/evote.php
, and could probably be fixed by changing
include $_SERVER['DOCUMENT_ROOT']."/data/config.php";
to
include "../data/config.php";
Could you give an example why the system shouldn't be installed in a subfolder? This should be an easy fix, but it does create a more static structure (which actually could be a good thing)`
Edit: Looking at this, my proposed fix is actually used in other files! I will create a branch to fix this, as it should have been consistant.