Skip to content

Type Error when creating new BE User #132

@thomasstranz

Description

@thomasstranz

Strange Error when trying to create a BE user that happens most of the time, but not always.


DateTime::createFromFormat(): Argument #2 ($datetime) must be of type string, float given

in vendor/in2code/in2publish_core/Classes/Features/MetricsAndDebug/Stopwatch/Exception/StopwatchAlreadyStartedException.php line 25

public function __construct(float $firstStart, Throwable $previous = null)
{
    $this->firstStart = $firstStart;
    $readableDate = DateTime::createFromFormat('U.u', $firstStart)->format('Y-m-d H:i:s.u');
    parent::__construct(sprintf(self::MESSAGE, $readableDate, $firstStart), self::CODE, $previous);
}

at DateTime::createFromFormat('U.u', 1778662252.377407)


Right after the error occurs: I add a regular element on any page and and try creating a BE user again and it succeeds

TYPO3 12.4.42
in2publish 12.3.5
in2publish_core 12.5.6
PHP 8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions