The security token did not match - On Installation Topic is solved

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

The security token did not match - On Installation

Post by pads » Tue Nov 28, 2023 3:42 pm

I am trying to install Joomla4.4 on a new site. (I have previously installed Joomla 4 on other sites successfully).

I have completed all the user id and databas config details - then when I click on 'Install Joomla>' I get one of the following messages -
(a) "The security token did not match. The request was cancelled to prevent any security breach. Please try again."
or -
(b) "The user may not have enough privileges to create a database. The required database may need to be created separately before you can install Joomla". -- I am not sure why I could not have the 'privileges' as I set up the database on the server.

MySQL 8.0
php 8.2

Can you please advise me as to the error.

Thank you Pads

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Tue Nov 28, 2023 5:03 pm

http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Tue Nov 28, 2023 5:32 pm

Forum Post Assistant (v1.6.6) : 28-Nov-2023 wrote:
Basic Environment :: wrote:Joomla! Instance :: Joomla! 4.4.0-Stable (Pamoja) 17-October-2023
Joomla! Configured :: Not Found

Host Configuration :: OS: Linux | OS Version: 4.4.400-icpu-097 | Technology: x86_64 | Web Server: Apache | Encoding: gzip, deflate | System TMP Writable: Yes | Free Disk Space : 474.75 GiB |

PHP Configuration :: Version: 8.2.12 | PHP API: cgi-fcgi | Session Path Writable: Yes | Display Errors: 0 | Error Reporting: 22517 | Log Errors To: | Last Known Error: | Register Globals: | Magic Quotes: | Safe Mode: | Allow url fopen: 1 | Open Base: | Uploads: 1 | Max. Upload Size: 64M | Max. POST Size: 64M | Max. Input Time: -1 | Max. Execution Time: 50000 | Memory Limit: -1

Database Configuration :: Database Credentials incomplete or not available Nothing to display.
Missing credentials detected: Connection Type missing | Database Name missing |MySQL Host missing | Table Prefix missing | Database Username missing | Database Password missing |User Privileges : Unknown
Detailed Environment :: wrote:PHP Extensions :: Core (8.2.12) | date (8.2.12) | libxml (8.2.12) | openssl (8.2.12) | pcre (8.2.12) | sqlite3 (8.2.12) | zlib (8.2.12) | bcmath (8.2.12) | bz2 (8.2.12) | calendar (8.2.12) | ctype (8.2.12) | curl (8.2.12) | dba (8.2.12) | dom (20031129) | hash (8.2.12) | fileinfo (8.2.12) | filter (8.2.12) | ftp (8.2.12) | gd (8.2.12) | gettext (8.2.12) | gmp (8.2.12) | json (8.2.12) | iconv (8.2.12) | SPL (8.2.12) | intl (8.2.12) | session (8.2.12) | ldap (8.2.12) | mbstring (8.2.12) | standard (8.2.12) | mysqlnd (mysqlnd 8.2.12) | exif (8.2.12) | mysqli (8.2.12) | PDO (8.2.12) | pdo_mysql (8.2.12) | pdo_sqlite (8.2.12) | Phar (8.2.12) | posix (8.2.12) | random (8.2.12) | Reflection (8.2.12) | imap (8.2.12) | shmop (8.2.12) | SimpleXML (8.2.12) | soap (8.2.12) | sodium (8.2.12) | tidy (8.2.12) | tokenizer (8.2.12) | xml (8.2.12) | xmlreader (8.2.12) | xmlwriter (8.2.12) | xsl (8.2.12) | zip (1.21.1) | cgi-fcgi (8.2.12) | Zend Engine (4.2.12) |
Potential Missing Extensions ::

Switch User Environment :: PHP CGI: Yes | Server SU: Yes | PHP SU: Yes | Potential Ownership Issues: No
Folder Permissions :: wrote:Core Folders :: images/ (705) | components/ (705) | modules/ (705) | plugins/ (705) | language/ (705) | templates/ (705) | cache/ (705) | logs/ (---) | tmp/ (705) | administrator/components/ (705) | administrator/modules/ (705) | administrator/language/ (705) | administrator/templates/ (705) | administrator/logs/ (705) | api/ (705) |

Elevated Permissions (First 10) ::
Extensions Discovered :: wrote:Components :: Site ::
Core ::
3rd Party::

Components :: Admin ::
Core :: com_actionlogs (3.9.0) ? | com_admin (4.0.0) ? | com_ajax (4.0.0) ? | com_associations (4.0.0) ? | com_banners (4.0.0) ? | com_cache (4.0.0) ? | com_categories (4.0.0) ? | com_checkin (4.0.0) ? | com_config (4.0.0) ? | com_content (4.0.0) ? | com_contenthistory (4.0.0) ? | com_cpanel (4.0.0) ? | com_fields (4.0.0) ? | com_finder (4.0.0) ? | com_guidedtours (4.3.0) ? | com_installer (4.0.0) ? | com_joomlaupdate (4.0.3) ? | com_languages (4.0.0) ? | com_login (4.0.0) ? | com_mails (4.0.0) ? | com_media (3.0.0) ? | com_menus (4.0.0) ? | com_messages (4.0.0) ? | com_modules (4.0.0) ? | com_newsfeeds (4.0.0) ? | com_plugins (4.0.0) ? | com_postinstall (4.0.0) ? | com_privacy (3.9.0) ? | com_redirect (4.0.0) ? | com_scheduler (4.1.0) ? | com_tags (4.0.0) ? | com_templates (4.0.0) ? | com_users (4.0.0) ? | com_workflow (4.0.0) ? | com_wrapper (4.0.0) ? |
3rd Party::

Modules :: Site ::
Core :: mod_articles_archive (3.0.0) ? | mod_articles_categories (3.0.0) ? | mod_articles_category (3.0.0) ? | mod_articles_latest (3.0.0) ? | mod_articles_news (3.0.0) ? | mod_articles_popular (3.0.0) ? | mod_banners (3.0.0) ? | mod_breadcrumbs (3.0.0) ? | mod_custom (3.0.0) ? | mod_feed (3.0.0) ? | mod_finder (3.0.0) ? | mod_footer (3.0.0) ? | mod_languages (3.5.0) ? | mod_login (3.0.0) ? | mod_menu (3.0.0) ? | mod_random_image (3.0.0) ? | mod_related_items (3.0.0) ? | mod_stats (3.0.0) ? | mod_syndicate (3.0.0) ? | mod_tags_popular (3.1.0) ? | mod_tags_similar (3.1.0) ? | mod_users_latest (3.0.0) ? | mod_whosonline (3.0.0) ? | mod_wrapper (3.0.0) ? |
3rd Party::

Modules :: Admin ::
Core :: mod_custom (3.0.0) ? | mod_feed (3.0.0) ? | mod_frontend (4.0.0) ? | mod_guidedtours (4.3.0) ? | mod_latest (3.0.0) ? | mod_latestactions (3.9.0) ? | mod_logged (3.0.0) ? | mod_login (3.0.0) ? | mod_loginsupport (4.0.0) ? | mod_menu (3.0.0) ? | mod_messages (4.0.0) ? | mod_multilangstatus (3.0.0) ? | mod_popular (3.0.0) ? | mod_post_installation_messages (4.0.0) ? | mod_privacy_dashboard (3.9.0) ? | mod_privacy_status (4.0.0) ? | mod_quickicon (3.0.0) ? | mod_sampledata (3.8.0) ? | mod_stats_admin (3.0.0) ? | mod_submenu (3.0.0) ? | mod_title (3.0.0) ? | mod_toolbar (3.0.0) ? | mod_user (4.0.0) ? | mod_version (3.0.0) ? |
3rd Party::

Libraries ::
Core ::
3rd Party::

Plugins ::
Core :: plg_api-authentication_basic (4.0.0) ? | plg_api-authentication_token (4.0.0) ? | plg_actionlog_joomla (3.9.0) ? | plg_authentication_cookie (3.0.0) ? | plg_authentication_joomla (3.0.0) ? | plg_authentication_ldap (3.0.0) ? | plg_behaviour_compat (4.4.0) ? | plg_behaviour_taggable (4.0.0) ? | plg_behaviour_versionable (4.0.0) ? | plg_captcha_recaptcha (3.4.0) ? | plg_captcha_recaptcha_invisible (3.8) ? | plg_content_confirmconsent (3.9.0) ? | plg_content_emailcloak (3.0.0) ? | plg_content_fields (3.7.0) ? | plg_content_finder (3.0.0) ? | plg_content_joomla (3.0.0) ? | plg_content_loadmodule (3.0.0) ? | plg_content_pagebreak (3.0.0) ? | plg_content_pagenavigation (3.0.0) ? | plg_content_vote (3.0.0) ? | plg_editors-xtd_article (3.0.0) ? | plg_editors-xtd_fields (3.7.0) ? | plg_editors-xtd_image (3.0.0) ? | plg_editors-xtd_menu (3.7.0) ? | plg_editors-xtd_module (3.5.0) ? | plg_editors-xtd_pagebreak (3.0.0) ? | plg_editors-xtd_readmore (3.0.0) ? | plg_extension_finder (4.0.0) ? | plg_extension_joomla (3.0.0) ? | plg_extension_namespacemap (4.0.0) ? | plg_fields_calendar (3.7.0) ? | plg_fields_checkboxes (3.7.0) ? | plg_fields_color (3.7.0) ? | plg_fields_editor (3.7.0) ? | plg_fields_imagelist (3.7.0) ? | plg_fields_integer (3.7.0) ? | plg_fields_list (3.7.0) ? | plg_fields_media (3.7.0) ? | plg_fields_radio (3.7.0) ? | plg_fields_sql (3.7.0) ? | plg_fields_subform (4.0.0) ? | plg_fields_text (3.7.0) ? | plg_fields_textarea (3.7.0) ? | plg_fields_url (3.7.0) ? | plg_fields_user (3.7.0) ? | plg_fields_usergrouplist (3.7.0) ? | plg_filesystem_local (4.0.0) ? | plg_finder_categories (3.0.0) ? | plg_finder_contacts (3.0.0) ? | plg_finder_content (3.0.0) ? | plg_finder_newsfeeds (3.0.0) ? | plg_finder_tags (3.0.0) ? | plg_installer_folderinstaller (3.6.0) ? | plg_installer_override (4.0.0) ? | plg_installer_packageinstaller (3.6.0) ? | plg_installer_urlinstaller (3.6.0) ? | plg_installer_webinstaller (4.0.0) ? | plg_media-action_crop (4.0.0) ? | plg_media-action_resize (4.0.0) ? | plg_media-action_rotate (4.0.0) ? | plg_multifactorauth_email (4.2.0) ? | plg_multifactorauth_fixed (4.2.0) ? | plg_multifactorauth_totp (3.2.0) ? | plg_multifactorauth_webauthn (4.2.0) ? | plg_multifactorauth_yubikey (3.2.0) ? | plg_privacy_actionlogs (3.9.0) ? | plg_privacy_consents (3.9.0) ? | plg_privacy_content (3.9.0) ? | plg_privacy_message (3.9.0) ? | plg_privacy_user (3.9.0) ? | plg_quickicon_eos (4.4.0) ? | plg_quickicon_downloadkey (4.0.0) ? | plg_quickicon_extensionupdate (3.0.0) ? | plg_quickicon_joomlaupdate (3.0.0) ? | plg_quickicon_overridecheck (4.0.0) ? | plg_quickicon_phpversioncheck (3.7.0) ? | plg_quickicon_privacycheck (3.9.0) ? | plg_sampledata_multilang (4.0.0) ? | plg_system_actionlogs (3.9.0) ? | plg_system_accessibility (4.0.0) ? | plg_system_cache (3.0.0) ? | plg_system_debug (3.0.0) ? | plg_system_fields (3.7.0) ? | plg_system_guidedtours (4.3.0) ? | plg_system_highlight (3.0.0) ? | plg_system_httpheaders (4.0.0) ? | plg_system_jooa11y (4.2.0) ? | plg_system_languagecode (3.0.0) ? | plg_system_languagefilter (3.0.0) ? | plg_system_log (3.0.0) ? | plg_system_logout (3.0.0) ? | plg_system_logrotation (3.9.0) ? | plg_system_privacyconsent (3.9.0) ? | plg_system_redirect (3.0.0) ? | plg_system_remember (3.0.0) ? | plg_system_schedulerunner (4.1) ? | plg_system_sef (3.0.0) ? | plg_system_sessiongc (3.8.6) ? | plg_system_shortcut (4.2.0) ? | plg_system_skipto (4.0.0) ? | plg_system_stats (3.5.0) ? | plg_system_task_notification (4.1) ? | plg_system_updatenotification (3.5.0) ? | plg_system_webauthn (4.0.0) ? | plg_task_demo_tasks (4.1) ? | plg_task_check_files (4.1) ? | plg_task_requests (4.1) ? | plg_task_site_status (4.1) ? | plg_user_joomla (3.0.0) ? | plg_user_contactcreator (3.0.0) ? | plg_user_profile (3.0.0) ? | plg_user_terms (3.9.0) ? | plg_user_token (3.9.0) ? | plg_webservices_banners (4.0.0) ? | plg_webservices_config (4.0.0) ? | plg_webservices_content (4.0.0) ? | plg_webservices_installer (4.0.0) ? | plg_webservices_languages (4.0.0) ? | plg_webservices_media (4.1.0) ? | plg_webservices_menus (4.0.0) ? | plg_webservices_messages (4.0.0) ? | plg_webservices_modules (4.0.0) ? | plg_webservices_newsfeeds (4.0.0) ? | plg_webservices_plugins (4.0.0) ? | plg_webservices_privacy (4.0.0) ? | plg_webservices_redirect (4.0.0) ? | plg_webservices_tags (4.0.0) ? | plg_webservices_templates (4.0.0) ? | plg_webservices_users (4.0.0) ? | plg_workflow_featuring (4.0.0) ? | plg_workflow_notification (4.0.0) ? | plg_workflow_publishing (4.0.0) ? |
3rd Party:: plg_editors_codemirror (5.65.15) ? | plg_editors_tinymce (5.10.7) ? |
Templates Discovered :: wrote:Templates :: Site :: cassiopeia (1.0) ? |
Templates :: Admin :: atum (1.0) ? |

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Tue Nov 28, 2023 6:26 pm

Looks OK. Only thing I noticed folders 705 not 755 but that should be OK. I recently had problems installing a J5 site where folders were 705. Before starting the installation I renamed htaccess.txt to .htaccess and uncommented #RewriteBase. The problems went away,

Doubt if that will solve the problem in your case but it's all I can suggest.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Tue Nov 28, 2023 7:05 pm

Changing the htaccess did not make ay difference. I am still getting -
"An error occurred while trying to create the database dbs614510.
The user may not have enough privileges to create a database. The required database may need to be created separately before you can install Joomla"


The database has not been populated and the installation has not installed.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Tue Nov 28, 2023 7:23 pm

Have you created the database prior to installing Joomla?
Have you checked to see if the user of that database has Grant All privileges?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Tue Nov 28, 2023 11:56 pm

I 'created the database prior to the installation - otherwise how would I know the datbase name and login details.

But it is completely unpopolated - no table, no data etc.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Wed Nov 29, 2023 1:12 am

Have you checked to see if the user of that database has Grant All privileges?
pads wrote:
Tue Nov 28, 2023 7:05 pm
... -
"An error occurred while trying to create the database dbs614510.
....
Why would the install try and create a database if you have already created it? Did you copy/paste the database credentials? Perhaps try a simple script see if the database connects

Code: Select all

 <?php
$servername = "localhost";
$username = "username";
$password = "password";

// Create connection
$conn = new mysqli($servername, $username, $password);

// Check connection
if ($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?> 
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Wed Nov 29, 2023 7:29 am

Thanks Webdongle,
I 'created' the database prior to the installation - otherwise how would I know the database name and login details.
But it is completely unpopolated - no table, no data etc.
I have not built any tables, nor populated then with any data - that is the job of the Joomla install program.

So there is no data in the database at all. When I say I 'created' I mean I went on the site of my domain holder (IONOS) and clicked on the button which says "Create New Database". IONOS then created the database name etc. It does not create any data what so ever.
So there are no tables - not even one with user names.

I have not had this problem when I have set up website previously in Joomla 3 and 4.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Wed Nov 29, 2023 10:22 am

I am with ionos and that is the site I needed to rename .htaccess and rename #RewriteBase

Your installation says it can't create a database. Why is it trying to create a database?
Either the database name you typed in the installation doesn't match the name of the created database ... You copy/pasted a hidden character
Or
The script isn't connecting to the database

Try creating another database but this time select maria db 10
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Wed Nov 29, 2023 11:01 am

Can I ask why "maria db 10".

Its an option on IONOS database build, but not on the Joomla install.

Thanks

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Wed Nov 29, 2023 12:57 pm

Don't use the quickstart package. Also by memory when I used the ionos Joomla install
It created the database and user. So when I got to the database screen I had to use the details they gave me... Not the details for a database I created . But like I said best install the joomla full zip not quickstart


On ionos that's what I used. And you are obviously having problems with the other one
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Wed Nov 29, 2023 4:38 pm

Thank you Webdongle

I took your advise and deleted all I had attempted to do.

Then installed Joomla via IONOS

Sorted now
Thank you

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 43900
Joined: Sat Apr 05, 2008 9:58 pm

Re: The security token did not match - On Installation

Post by Webdongle » Wed Nov 29, 2023 5:09 pm

So you used the maria db 10 and used the Joomla full zip?
Did you need to rename htaccess.txt or not?
Reason I ask is because I am with ionos and had to do that for J5 but not J3. And on my Hosting package I have to search for their Joomla quick install now.
They are a good Host though and their tech support (from my experience of them) are good.
I have found that using the Joomla full package (instead of their quick install) gives me more options with the database and their webspace.

Hope that helps you (and others who are reading this thread)
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

pads
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 31, 2014 9:34 am

Re: The security token did not match - On Installation

Post by pads » Wed Nov 29, 2023 7:40 pm

It was quite simple in the end -
  • Log in to IONOS
    search for Joomla
    then just follow the guide.
Didn't have to choose anything except website to load to and user name. So I didn't choose maria db 10, it was done by IONOS.
I ended up with Joomla 5, so I guess that was a bonus!

Thanks

jennykim
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Jan 03, 2024 6:48 pm

Re: The security token did not match - On Installation

Post by jennykim » Wed Jan 03, 2024 6:56 pm

Is there a specific troubleshooting step you've taken to address the "security token did not match" issue during Joomla installation? Have you explored potential conflicts or checked server settings to ensure a smooth installation process? Seeking insights to better understand and assist!


Post Reply

Return to “Installation Joomla! 4.x”