Advertisement

Invalid Security Token Error in Joomla 4.4.5

General questions relating to Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Tue Sep 17, 2024 7:37 am

Hello,

I am experiencing an issue with my Joomla 4.4.5 site where I encounter an "invalid security token" error. Here are the details of the problem and what I have tried so far:

Issue Description:

Error Message: "The most recent request was denied because it contained an invalid security token. Please refresh the page and try again."
When: The error appears when trying to perform certain actions in the admin panel, such as saving configurations or updating components.
Environment:

Joomla Version: 4.4.8
PHP Version:8.2.22

Steps Taken:

Database Maintenance:

I have run the database repair tool (System > Global Configuration > Maintenance > Database > Fix). No issues were found.
Cache Clearing:

Cleared Joomla cache (System > Clear Cache) and browser cache.
Updates:

Checked for Joomla updates and ensured all components and extensions are up-to-date.
Extensions Check:

Disabled recently installed/updated extensions to see if they were causing the issue.
Session and Configuration:

Verified session handling settings and Joomla configuration.
Additional Information:

Site URL: https://www.dintek.net/index.php/cb-login
Error Logs: The most recent request was denied because it had an invalid security token. Please go back or refresh the page and try again.

Is there any other troubleshooting step I should try?
Could this be related to specific configurations or extensions?
Are there any known issues or patches for this version of Joomla?

Please guide me to solve this

Thank you in advance for your assistance!
Last edited by toivo on Tue Sep 17, 2024 8:12 am, edited 1 time in total.
Reason: mod note: moved from 5.x Security

Advertisement
User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10196
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Invalid Security Token Error in Joomla 4.4.5

Post by AMurray » Tue Sep 17, 2024 10:23 am

Obvious question....but ...did you do as the error message suggests - "refresh the page and try again"?
This topic has been raised many a time, I don't think the solution has changed much.

Try this : viewtopic.php?t=946068. It's from a few years ago but I believe stilli applicable to Joomla 4.

A second resource essentially stating the same suggestions as in the forum post above:
https://stackoverflow.com/questions/269 ... omla-login

Also in your joomla admin (when you get a successful login) check the session handler method. Choose "file system" over "database" (whatever the option is besides database). OR empty the session table directly in the database that will force logouts of any logged in users. That db table can get very large very quickly with a lot of users.
Regards - A Murray
General Support Moderator

Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Re: Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Wed Sep 18, 2024 7:30 am

Hello ,

I’ve tried all of the fixes I could find, but unfortunately, the issue still persists. Here’s a summary of everything I’ve done so far:

Clear Browser Cache:

This seemed to work a couple of times, but the problem always comes back.
Clear Joomla Cache:

Cleared the Joomla cache, but this didn’t resolve the issue.
Clear Sessions Table:

Emptied the _session table in the database, which forced logouts of all users, but the issue still occurs.


Upgraded the server PHP version to the latest recommended for Joomla 4.4.5, but it didn’t help.


I also logged into cPanel and accessed the database using phpMyAdmin, then deleted all user sessions from the _session table. Unfortunately, the error still reappears:
“The most recent request was denied because it had an invalid security token. Please go back or refresh the page and try again.”
Despite following all these steps, I’m still facing the "invalid security token" error. Could there be anything else I might be overlooking? Any other suggestions would be really helpful at this point.
I have attached the issue
https://drive.google.com/file/d/14jHjns ... By4bY/edit

Thanks in advance for your assistance!

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3056
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Invalid Security Token Error in Joomla 4.4.5

Post by SharkyKZ » Wed Sep 18, 2024 8:02 am

This is commonly a caching issue. Can be both server-side and client-side (browser). Use developer tools in browser to inspect cache headers. If you're using "System - Page Cache" plugin, make sure "Use Browser Caching" option is disabled.

Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Re: Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Wed Sep 18, 2024 9:13 am

SharkyKZ wrote: Wed Sep 18, 2024 8:02 am This is commonly a caching issue. Can be both server-side and client-side (browser). Use developer tools in browser to inspect cache headers. If you're using "System - Page Cache" plugin, make sure "Use Browser Caching" option is disabled.
Hello ,


I’ve tried all of the fixes I could find, but unfortunately, the issue still persists.

Please check
https://drive.google.com/drive/folders/ ... sp=sharing

Thank you in advance for your assistance!

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3056
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Invalid Security Token Error in Joomla 4.4.5

Post by SharkyKZ » Wed Sep 18, 2024 11:24 am

Did you inspect the response headers?

Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Re: Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Wed Sep 18, 2024 12:10 pm

SharkyKZ wrote: Wed Sep 18, 2024 11:24 am Did you inspect the response headers?
Hello

Yes i inspected the response headers

Please check
https://drive.google.com/drive/folders/ ... nVHhBaekjq

Thank you in advance for your assistance!

Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Re: Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Thu Sep 19, 2024 7:33 am

SharkyKZ wrote: Wed Sep 18, 2024 11:24 am Did you inspect the response headers?
Hello,

Please check the issue i can't able to resolve this isssue always getting same issue on login time on my site

https://drive.google.com/drive/folders/ ... sp=sharing

SharkyKZ
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3056
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Invalid Security Token Error in Joomla 4.4.5

Post by SharkyKZ » Thu Sep 19, 2024 7:40 am

The headers look OK but browser could be caching the page anyways. Can you try using the standard (com_users) login form?

Zestminds_1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2023 4:59 am

Re: Invalid Security Token Error in Joomla 4.4.5

Post by Zestminds_1 » Thu Sep 19, 2024 8:02 am

SharkyKZ wrote: Thu Sep 19, 2024 7:40 am The headers look OK but browser could be caching the page anyways. Can you try using the standard (com_users) login form?
Hello,

I am using
DINTEK Login
Alias: cb-login
Community Builder » login

Plase check i have attached the images-

https://drive.google.com/drive/folders/ ... nVHhBaekjq

Advertisement

Post Reply

Return to “General Questions/New to Joomla! 4.x”