|
| 1 | +:navigation-title: Backend login |
| 2 | +.. include:: /Includes.rst.txt |
| 3 | + |
| 4 | +.. _troubleshooting-backend-login: |
| 5 | + |
| 6 | +=================================================== |
| 7 | +Troubleshooting common TYPO3 backend login problems |
| 8 | +=================================================== |
| 9 | + |
| 10 | +The following errors can happen during backend login: |
| 11 | + |
| 12 | +.. contents:: |
| 13 | + |
| 14 | +.. _troubleshooting-login-reload: |
| 15 | + |
| 16 | +Login page reloads without error |
| 17 | +================================ |
| 18 | + |
| 19 | +* Try deleting all browser cookies and caches or use a different browser / |
| 20 | + device. There might be an outdated cookie that prevents log-in. |
| 21 | +* Clear all TYPO3 caches via console command or install tool. |
| 22 | +* Delete folder :path:`var/cache` to remove possible corrupted cache data. |
| 23 | +* Check the cookies configuration in TYPO3: Ensure that cookie-related |
| 24 | + settings (:confval:`sessionTimeout <t3coreapi:globals-typo3-conf-vars-be-sessiontimeout>`, |
| 25 | + :confval:`cookieDomain <t3coreapi:globals-typo3-conf-vars-be-cookiedomain>`) |
| 26 | + are correct and not causing session issues. |
| 27 | + |
| 28 | +.. _troubleshooting-login-invalid: |
| 29 | + |
| 30 | +"Invalid Credentials" error |
| 31 | +=========================== |
| 32 | + |
| 33 | +* Check if the username and password are correct. |
| 34 | +* Try to create a :ref:`new administrative user <t3coreapi:troubleshooting-backend-admin-password>` |
| 35 | + and use that one. |
| 36 | + |
| 37 | +.. _troubleshooting-login-white-screen: |
| 38 | + |
| 39 | +White screen before or after login |
| 40 | +================================== |
| 41 | + |
| 42 | +Many older TYPO3 files contain a line like the following that needs to be replaced: |
| 43 | + |
| 44 | +.. code-block:: diff |
| 45 | +
|
| 46 | + -defined('TYPO3_MODE') or die(); |
| 47 | + +defined('TYPO3') or die(); |
| 48 | +
|
| 49 | +The PHP constant `TYPO3_MODE` was removed with TYPO3 v12 but it is still |
| 50 | +widespread in older code examples and extensions. This can also happen if you |
| 51 | +installed a TYPO3 extension that is not compatible with newer TYPO3 versions. |
| 52 | + |
| 53 | +If you have this line in your own code, replace it. If you find it in the above |
| 54 | +code in a third party extension, check if a newer version is available. If you |
| 55 | +do not find one you can try to reach out to the extension author or patch it |
| 56 | +yourself. |
| 57 | + |
| 58 | +.. _troubleshooting-login-access-denied: |
| 59 | + |
| 60 | +Access denied before or after login |
| 61 | +=================================== |
| 62 | + |
| 63 | +* If the line above contains "Access denied." or a similar string that string will |
| 64 | + be output and the login page contains nothing else: |
| 65 | + |
| 66 | + .. code-block:: diff |
| 67 | +
|
| 68 | + -defined('TYPO3_MODE') or die('Access denied.'); |
| 69 | + +defined('TYPO3') or die('Access denied.'); |
| 70 | +
|
| 71 | + The solution is the same like for :ref:`troubleshooting-login-white-screen`. |
| 72 | +* Check file permissions on the TYPO3 files. |
| 73 | +* Check the `.htaccess` or Nginx configurations |
| 74 | + |
| 75 | +.. _troubleshooting-login-account-locked: |
| 76 | + |
| 77 | +"Account locked" message |
| 78 | +======================== |
| 79 | + |
| 80 | +* Wait the required time |
| 81 | +* Or delete the folder :path:`var/cache` |
| 82 | + |
| 83 | +.. _troubleshooting-login-page-not-found: |
| 84 | + |
| 85 | +"Page Not Found" or 404 Error |
| 86 | +============================= |
| 87 | + |
| 88 | +* Check file permissions on the TYPO3 files. |
| 89 | +* Check the `.htaccess` or Nginx configurations |
| 90 | + |
| 91 | +.. _troubleshooting-login-broken: |
| 92 | + |
| 93 | +Broken login form or missing elements |
| 94 | +===================================== |
| 95 | + |
| 96 | +* Try deleting all browser cookies and caches or use a different browser / |
| 97 | + device. There might be an outdated cookie that prevents log-in. |
| 98 | +* Clear all TYPO3 caches via console command or install tool. |
| 99 | +* Was there a warning during `composer install`? The :path:`_assets` folder |
| 100 | + might not have been properly symlinked during installation. |
| 101 | +* Check the browser console for errors. |
0 commit comments