Issue Bug Closed

#102093Error in frontend when clearing all cache in BE - "Cannot instantiate trait tryFrom"

Daniel Janek 10/05/23, 06:45 updated 08/16/26, 12:12

Description

When clearing “all cache” in backend sometimes in frontend after page reload i got
“Core: Exception handler (WEB): Uncaught TYPO3 Exception: Cannot instantiate trait tryFrom | Error thrown in file /var/www/html/vendor/typo3/cms-core/Classes/Utility/GeneralUtility.php in line 2969.”.

After reloading again the page works fine.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Daniel Janek changed subject Error in log Error in frontend when clearing all cache in BE <span data-processor="relativetime" data-value="2023-10-05T06:47:12+00:00" > 10/05/23, 06:47 </span>

  2. Daniel Janek changed subject Error in frontend when clearing all cache in BE Error in frontend when clearing all cache in BE - "Cannot instantiate trait tryFrom" <span data-processor="relativetime" data-value="2023-10-05T06:47:39+00:00" > 10/05/23, 06:47 </span>

  3. Benni Mack commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-03-23T17:56:34+00:00" > 03/23/25, 17:56 </span>

    Hey,

    do you have any more insights in this behavior? I cannot reproduce this in 100+ installations running in v12.

    This either sounds like
    - some custom extension (are you running in composer mode?)
    - some interesting PHP setup (do you have more information on PHP version, modules, hoster?)

  4. Georg Ringer commented and changed status Needs Feedback Closed <span data-processor="relativetime" data-value="2026-08-16T12:12:02+00:00" > 08/16/26, 12:12 </span>

    closing issue because of lack of feedback. If this is still valid in at least v13, feel free to comment here or contact me at slack to reopen this one