Hello,
when I reach mantis I have the following message on the main page :
WARNING: Admin directory should be removed.
How can I correct it?
Thank you.
Warning on main page
Moderators: Developer, Contributor
same problem
hello people
same problem here, what can I do about it????????
please help!!!!!!
greatzzz
same problem here, what can I do about it????????
please help!!!!!!
greatzzz
Delete the admin/ folder from within the mantis root folder.
Migrate your MantisBT to the MantisHub Cloud
-
Bartcelona
- Posts: 7
- Joined: 31 Oct 2007, 22:09
I DID remove the admin dir but still get warning... ??
I was very surprised to see the warning message show up again after I removed the admin directory from the mantis root.
Clearly I do not know what else to try here.
Any help would be greatly appreciated
Clearly I do not know what else to try here.
Any help would be greatly appreciated
Did you change the password for the default "administrator" account? Are you sure it is complaining on the folder and not that password for administrator being the default (i.e. root)?
Migrate your MantisBT to the MantisHub Cloud
-
Bartcelona
- Posts: 7
- Joined: 31 Oct 2007, 22:09
thank you vboctor for your prompt response.
I followed the installation instructions and deleted the default administrator account.
M. version 1.0.8
#3 (from manual installation)
Immediately go to Manage and create at least one administrator level account. Immediately after that DISABLE or DELETE the administrator account. You can recreate it but you should delete the account to prevent the cookie_string from being used to trick the package. It would be even better to rename the account or delete it permanently. REMEMBER: After setting up the package, REMOVE the default administrator account.
I followed the installation instructions and deleted the default administrator account.
M. version 1.0.8
#3 (from manual installation)
Immediately go to Manage and create at least one administrator level account. Immediately after that DISABLE or DELETE the administrator account. You can recreate it but you should delete the account to prevent the cookie_string from being used to trick the package. It would be even better to rename the account or delete it permanently. REMEMBER: After setting up the package, REMOVE the default administrator account.
-
Bartcelona
- Posts: 7
- Joined: 31 Oct 2007, 22:09
Re: Warning on main page
I have just spend a few more hours in trying to get this error message off. Silly because the solution probably is simple. I must be missing something, but am doing my very best to find what.
Obviously if I find out what I will respond to share my solution (fix)... but in the mean time I still hope somebody can give me another hint.
Obviously if I find out what I will respond to share my solution (fix)... but in the mean time I still hope somebody can give me another hint.
Re: Warning on main page
The following code in login_page.php is the source of your warning:
Note that I am referring to "admin/" folder and not to the default administrator. If you are sure you removed the folder, then you can trouble shoot the above code or just remark the echo lines.
Code: Select all
# Check if the admin directory is available and is readable.
$t_admin_dir = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR;
if ( is_dir( $t_admin_dir ) && is_readable( $t_admin_dir ) ) {
echo '<div class="warning" align="center">', "\n";
echo '<p><font color="red"><strong>WARNING:</strong> Admin directory should be removed.</font></p>', "\n";
echo '</div>', "\n";
Migrate your MantisBT to the MantisHub Cloud
-
Bartcelona
- Posts: 7
- Joined: 31 Oct 2007, 22:09
Re: Warning on main page
Thanks for your response I have resolved it !