Page 1 of 1

[closed] change admin_url

Posted: Tue Jun 26, 2012 7:26 pm
by Rolf
changed admin folder name to "admin2"

No change in config.php
http://localhost/trunk/admin2 redirects to http://localhost/trunk/admin2/admin/login.php (error404)

Re: change admin_url

Posted: Tue Jun 26, 2012 8:44 pm
by brunettdan
Works for me..

I changed to http://domain.se/admincms/

String in config file:

Code: Select all

$config['admin_dir'] = 'admincms';
Running beta2
apache/2.2.16 (debian)

Re: change admin_url

Posted: Wed Jun 27, 2012 8:58 am
by Rolf
Directly open: http://localhost/public/trunk/admin2/login.php

Fatal error: Call to a member function do_login() on a non-object in C:\www\public\trunk\admin2\login.php on line 371

Re: change admin_url

Posted: Wed Jun 27, 2012 3:27 pm
by calguy1000
This is correct. If a bit ugly, but I don't see an effective fix either..

The REQUESTED URI is /admin2/index.php .. but cmsms sees that you are not logged in, so attempts to redirect you to the proper login page. if the admin_dir is not set in the config.php it assumes that the 'admin_dir' is 'admin'.

So when the root_url is calculated, because the 'admin_dir' is not part of the REQUEST_URI it returns <site>/admin2/index.php (remember the admin_dir config variable is still 'admin')

Now when calculating the 'admin_url' config variable it just appends the 'admin_dir' to the calculated 'root_url', which in this case is '<site>/admin2/admin' and then adds 'login.php' so you get <site>/admin2/admin/login.php.

Re: [parked] change admin_url

Posted: Fri Jul 13, 2012 10:16 am
by Rolf
in new install SVN rev. 8175 changing admin foldername to "myadmin":
Fatal error: Call to a member function AddNotification() on a non-object in C:\www\trunk\myadmin\header.php on line 45