Hello,
I have installed TYPO3 version 12.4.19 at Mittwald. Right after the installation, when I hadn’t added anything else to TYPO3, such as plugins, etc., and I click on the lightning bolt icon to clear all caches, I receive the following error message: “An error occurred. An error occurred while clearing the cache. Probably not all caches were deleted as expected.”
I am unsure what to do because the cache is not being cleared this way, which means I cannot work on the site. I am aware that I can clear the cache via the Install Tool, and that works, but for clients who want to make changes on the site, this method is no longer viable.
I see that you have also asked your question on StackOverflow, but you have gotten no answer there either. So, even though I don’t know the answer, I’ve done a little research for you. That might help you along.
I’m not able to find the exact string “An error occurred while clearing the cache. Probably not all caches were deleted as expected.” in the TYPO3 Core, so I think you may have typed the text. There is a very similar error message in TYPO3 v12.4: “An error occurred while clearing the cache. It is likely not all caches were cleared as expected.”
This error message appears to be used by TYPO3’s JavaScript when no proper response is received. I.e., it’s likely that TYPO3 actually fails due to an uncaught server-side error or exception. That may also be why you don’t see it logged.
This means you should open be able to find a more in-depth error message by looking at the server’s response to the JavaScript request. It also means that the error itself might not be related to TYPO3, but to a configuration on the server or in your browser. (That should explain why it works on your phone and not on your computer.)