Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TYPO3 12: EventExecutionService::resetSchedulerTask leads to NoKeyValue Exception #38

Open
3l73 opened this issue Sep 25, 2024 · 0 comments

Comments

@3l73
Copy link

3l73 commented Sep 25, 2024

The call of the method resetSchedulerTask()´ in class EventExecutionServiceleads to the NoKeyValue exception with packagedoctrine/dbal`.

The exception message is:

Fetching as key-value pairs requires the result to contain at least 2 columns, 1 given.

Expected behaviour

No exception should be triggered.

To Reproduce

  1. Create a scheduler task to execute a full sync
  2. Run the scheduler task by the clo command

Used versions:
TYPO3: v12.4.20
Extension version: 7f2542c (@dev-fix/downloaded-temp-filename)

Additional context

The exception is triggered in class EventExecutionService at line 498 threw the function call fetchAllKeyValue() on the result statement.

protected function resetSchedulerTask($requiredAge): void

According to the exception, the function should be used with two columns selected.
In this context the use of method fetchAssociative() should work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant