problems when plugin folder is outside the main root folder
Maximus48p opened this issue · comments
The following folder structure:
-- /var/www/html/MantisBT
-- /var/www/html/plugins
After installing the Calendar plugin and trying to add an event i get the following error message:
'include(/var/www/html/plugins/Calendar/pages/../../../bug_view_inc.php): failed to open stream: No such file or directory' in '/var/www/html/plugins/Calendar/pages/event_insert_page.php' line 87
I have tried to change line 87 to: include( $g_absolute_path . 'bug_view_inc.php' );
but that give me an other error:
'include(/var/www/html/plugins/Calendar/pages/../../../bugnote_view_inc.php): failed to open stream: No such file or directory' in '/var/www/html/mantis/bug_view_inc.php' line 790
@Maximus48p, I will include a fix for this error in the next release, but in the meantime, if you don’t want to wait for the release, you can replace 3 lines at the end of the “event_insert_page.php” file with:
$t_mantis_dir = config_get_global('absolute_path');
define( 'BUG_VIEW_INC_ALLOW', true );
include( $t_mantis_dir . 'bug_view_inc.php' );
This should help fix this error.