Support

Akeeba Backup for Joomla!

#9176 admin cant login after directory move on j 1.7

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Monday, 28 November 2011 10:22 CST

jakobe75
Okay this is strange...I have done this a hundred times and something is weird about this backup and kickstart.

I rebuilt my clients site in a directory called "2011".

after the site was complete and satisfactory..I backed it up with AkeebaPro and moved it to the main directory and re-deployed it using kickstart.

This is no different than any other install I have moved.

I used the same DB and reused the same admin user/pass

Everything went smoothly ..no errors or glitches. I was up in running within minutes in the main directory...(gotta love kickstart!)

I did some SEO work on the pages and it was fine when I logged out last night....come today I cant login as admin, the site is up and perfectly fine on the front end.

but when logging in as admin ..the fields just reset like I am entering the worng user/pass combo.

I logged in via phpmysql and reset the user/pass of the admin account to a known password such as admin..and tried again.

Still nothing...

I have two SU accounts on this install and neither will log in since the move to the main directory.

I have checked the config file and verified all of the paths and information...everything seems to be in order.

I never deleted the old /2011 directory...just renamed it to 2011.old and figured once I was 100% sure everything was in order I would delete it then.

but if I go back and rename it back to /2011 and try to login as admin (2011/administrator/) it logs me in just fine.

since its basically two Joomla directories sharing one database I can understand why it will allow the admin to login...but not in the main directory?

This has never happened before...

please advise.
thanks

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting? Yes
Have I searched the forum before posting? yes
Have I read the documentation before posting? Yes
Joomla! version: (1.7)
PHP version: (5.2)
MySQL version: (unknown)
Host: (localhost dedicated box)
Akeeba Backup version: (Akeeba Backup Professional 3.3.4 (2011-09-12))

EXTREMELY IMPORTANT: Please attach your Akeeba Backup log file in order for us to help you with any backup or restoration issue.

Description of my issue: see above

nicholas
Akeeba Staff
Manager
Let's try the following:
1. Empty your jos_sessions table of all of its contents using phpMyAdmin. Try logging in.
2. If this fails, clear your browser cache and cookies, quit the browser and restart it, the retry logging in.
3. If this is still getting you nowhere, rename your .htaccess file and retry logging in.

If you are still unable to log in, the only thing I can think of is accidentally screwing up your ACL permissions, in which case you may want to follow the "The ACL issue and its workaround" part of this page.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jakobe75
1. tried already, no go
2. tried this too
3. this is the next step, as I did use the joomla included .htaccess file instead of the directory default.


thanks I'll report back.

jakobe75
I tried all three suggestions.

still cant get into the admin side

buts what strange is that the site was originally developed in a directory called www.domain.com/2011

then moved to the live site www.domain.com using Akeeba
(as i have said I have done this dozens of times never a problem)

I was able to login into the new admin panel initially...as I made a ton of changes once the site went live.

then for some reason the next day it just locked me out.

but the directory..../2011 is still available and still able to be accessed by the admin?

I renamed the old directory 2011..old an kept it there just until I was sure everything was transferred properly.

I can loginto the old directory..it is using the same db, but the frontend is completely different than the frontend of the live site. It is still in a state that It was before the akeeba move.


I would really appreciate some guidance on this, as I am baffled. I have just a few small changes to complete this project and this is keeping me from completing this site.


This is what I have done so far:

1. clear all cache cookies
2. tested on FF,IE and chrome
3. renamed the old original htaccess file back instead of using the joomla file
4. deleted the data in jos_sessions
5. check the acl repair method, my "special" table is already [6,3,8]


I notice that there is a 7.79 eu fee to repair sites like this maybe....lemme know I have no issues about paying.




jakobe75
wait a second!
I think I got it.


.....cookie path in the config file!


found the answer in this post
http://forum.joomla.org/viewtopic.php?t=618232

mine was set to the domain for some reason, reset it back to default blank


I am in!


Long Live Akeeba!

nicholas
Akeeba Staff
Manager
Ah, the cookie path again! OK, I can see the problem here. Ever since this feature was added to Joomla!, people set it and forget they had done so, causing the restoration login issues. I am going to treat that properly: if you have Joomla! 1.7, the restoration script will ask you to change the cookie domain and path, just like it does for the live_site URL. It shouldn't be that hard and it will solve a lot of issues!

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

jakobe75
mine feild was filled in as

domain.com
not
http://www.domain.com
or
www.domain.com


once I saw the cookie issue, I tried all three variations in different browsers...nothing let me in until I reset it back to blank.

the original install in the /2011 directory was set to blank initially, not sure how it got the domain in there.

I dont remember setting it..but who knows it was late, maybe I did.

Thanks for the help!





nicholas
Akeeba Staff
Manager
The cookie domain path is a little tough ;) You have to use the bare domain name, e.g. example.com instead of a URL or the full domain (www.example.com).

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!