Warning on main page

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
yoch

Warning on main page

Post by yoch »

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.
annemieke
Posts: 1
Joined: 10 Jul 2007, 13:24
Location: den helder

same problem

Post by annemieke »

hello people

same problem here, what can I do about it????????
please help!!!!!!

greatzzz
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

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... ??

Post by Bartcelona »

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
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

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

Post by Bartcelona »

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.
Bartcelona
Posts: 7
Joined: 31 Oct 2007, 22:09

Re: Warning on main page

Post by Bartcelona »

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.
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Warning on main page

Post by vboctor »

The following code in login_page.php is the source of your warning:

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";
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.
Migrate your MantisBT to the MantisHub Cloud
Bartcelona
Posts: 7
Joined: 31 Oct 2007, 22:09

Re: Warning on main page

Post by Bartcelona »

Thanks for your response I have resolved it !
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Re: Warning on main page

Post by vboctor »

So what was the resolution?
Migrate your MantisBT to the MantisHub Cloud
Post Reply