• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: [closed] change admin_url
PostPosted: Tue Jun 26, 2012 7:26 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7708
Location: The Netherlands
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)

_________________
$1

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: change admin_url
PostPosted: Tue Jun 26, 2012 8:44 pm 
Offline
New Member
New Member

Joined: Fri Jun 01, 2012 2:54 pm
Posts: 9
Works for me..

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

String in config file:
\$1:
$config['admin_dir'] = 'admincms';


Running beta2
apache/2.2.16 (debian)


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: change admin_url
PostPosted: Wed Jun 27, 2012 8:58 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7708
Location: The Netherlands
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

_________________
$1

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: change admin_url
PostPosted: Wed Jun 27, 2012 3:27 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
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.

_________________
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: [parked] change admin_url
PostPosted: Fri Jul 13, 2012 10:16 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7708
Location: The Netherlands
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

_________________
$1

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting