Support

Admin Tools

#17589 Login and Logout difficulties after Admintools setup invalid token

Posted in ‘Admin Tools 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
Admin Tools version
n/a

Latest post by on Friday, 25 October 2013 18:00 CDT

amir00251
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the tickets before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (unknown)

Description of my issue:


I have joomla 3.1.5 and admintools latest 2.5.8. I saved and created .htaccess file as well as I carried out all first five items specified in following page:

https://www.akeebabackup.com/documentation/admin-tools/ch01s04.html

There is not a major crashdown on the site but I have a difficulty for users when they login or logout.

Say you are in domain www.domain.com after login user gets blank page with text "invalid token" and url changes to www.domain.com/index.php

If user clears the index.php and refreshes the page, he/she will see that login has been successful!

Same applies for logout, when trying to logout you get blank page with "invalid token" and then you need to clear index.php to see the logout results.

Most probably related to htaccess. Would be grateful about any suggestions to solve the issue.

Thank you.

dlb
It doesn't sound like an .htaccess problem, they are generally not subtle. To test this, save your current .htaccess file and restore the one that came with your Joomla! zip file (it may be on the site as htaccess.txt). If the problem still occurs, it isn't an .htaccess problem.

In the Login module, you can redirect your users to a specific page on login and logout. Have you redirected to a special page and is that page a valid page?

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

amir00251
Hi Dale,

As you suggested, I went through the process and it did prove the .htaccess is the reason for the issue (changed to original and it solved the problem).

Then I went to joomla global configuration and turn the "use URL Rewrite" on (the SEF was already on) and that solved the problem.

It is something to do with index.php? I have attached the htaccess content. Would you be able to give a solution as I may not want to turn on URL Rewrite.

Thank you.

dlb
I can't see what is causing the error in the .htaccess file. I am convinced that they are black magic.

The rewrite should be a fairly benign option. The only place that I know of where it could cause you trouble is if you restore to a non-Apache server or to an Apache server where the rewrite module is not activated. That would probably cause a 500 error. You would simply have to comment out the line to fix it.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

amir00251
Ok, the exact cause of this issue for me is

RewriteRule ^index\.php$ http%2:/// [R,L]

in the htaccess file.

dlb
It is Greek to me (pun intended). Nicholas is attending Joomla! Day Switzerland and will not return until Monday. I'm sure he can tell you what this line does and if there is a syntax error in it. I'm sorry I can't be more help.

Dale


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

nicholas
Akeeba Staff
Manager
You have to turn off the "Redirect index.php to site's root" in the .htaccess Maker page and regenerate your .htaccess files.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!