Skip to content

Commit 7e7c711

Browse files
linawolffroemken
andauthored
[TASK] Write a chapter on backend login trouble shooting (#511)
* [TASK] Write a chapter on backend login trouble shooting Releases: main, 13.4, 12.4 * Update Documentation/Troubleshooting/BackendLogin.rst Co-authored-by: Stefan Frömken <[email protected]> --------- Co-authored-by: Stefan Frömken <[email protected]>
1 parent 870bc01 commit 7e7c711

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.

Documentation/Troubleshooting/Index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Troubleshooting
1515
:class: pb-4
1616
:card-height: 100
1717

18+
.. card:: :ref:`Backend login troubleshooting <troubleshooting-webserver>`
19+
20+
Have a look at common problems during backend login.
21+
1822
.. card:: :ref:`Server and administration <troubleshooting-webserver>`
1923

2024
Troubleshooting server and administration related topics.
@@ -23,4 +27,5 @@ Troubleshooting
2327
:hidden:
2428
:titlesonly:
2529

30+
BackendLogin
2631
WebServer

0 commit comments

Comments
 (0)