FriendsOfShopware / FroshTools

A collection of useful tools for Shopware 6
MIT License
61 stars 27 forks source link

Getting CRITICAL Errors all over Frosh/Tools/ #194

Closed mmarsching closed 1 year ago

mmarsching commented 1 year ago

PHP Version

8.1

Shopware Version

6.4.20.1

Actual behaviour

Trying to see the "System-Status"-page I get a loading icon for forever...

The Log viewer shows the follwing messages in the prod-*.log:

Uncaught PHP Exception TypeError: "Frosh\Tools\Components\Health\Checker\HealthChecker\TaskChecker::__construct(): Argument #1 ($scheduledTaskRepository) must be of type Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface, Doctrine\DBAL\Connection given, called in /SHOPWARE_6/var/cache/prod_hca75b4bfb7fc26b0820c4a697f3f670c/Container6Idivvl/Shopware_Core_KernelProdContainer.php on line 28715" at /SHOPWARE_6/custom/plugins/FroshTools/src/Components/Health/Checker/HealthChecker/TaskChecker.php line 24 {"exception":"[object] (TypeError(code: 0): Frosh\Tools\Components\Health\Checker\HealthChecker\TaskChecker::__construct(): Argument #1 ($scheduledTaskRepository) must be of type Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface, Doctrine\DBAL\Connection given, called in /SHOPWARE_6/var/cache/prod_hca75b4bfb7fc26b0820c4a697f3f670c/Container6Idivvl/Shopware_Core_KernelProdContainer.php on line 28715 at /SHOPWARE_6/custom/plugins/FroshTools/src/Components/Health/Checker/HealthChecker/TaskChecker.php:24)"} []

and

Uncaught Error: Frosh\Tools\Components\Health\Checker\HealthChecker\TaskChecker::construct(): Argument #1 ($scheduledTaskRepository) must be of type Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface, Doctrine\DBAL\Connection given, called in /SHOPWARE_6/var/cache/prod_hca75b4bfb7fc26b0820c4a697f3f670c/Container6Idivvl/Shopware_Core_KernelProdContainer.php on line 28715 {"exception":"[object] (TypeError(code: 0): Frosh\Tools\Components\Health\Checker\HealthChecker\TaskChecker::construct(): Argument #1 ($scheduledTaskRepository) must be of type Shopware\Core\Framework\DataAbstractionLayer\EntityRepositoryInterface, Doctrine\DBAL\Connection given, called in /SHOPWARE_6/var/cache/prod_hca75b4bfb7fc26b0820c4a697f3f670c/Container6Idivvl/Shopware_Core_KernelProdContainer.php on line 28715 at /SHOPWARE_6/custom/plugins/FroshTools/src/Components/Health/Checker/HealthChecker/TaskChecker.php:24)"} []

Expected behaviour

No error ;)

Steps to Reproduce?

Loading "System-Status"

shyim commented 1 year ago

looks like you have the wrong plugin version. can you check for an update?

mmarsching commented 1 year ago

My version is 0.2.18 - I don't see a more recent version for 6.4?

Am Fr., 19. Mai 2023 um 09:00 Uhr schrieb Shyim @.***>:

looks like you have the wrong plugin version. can you check for an update?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

-- Michele Marsching

tinect commented 1 year ago

@mmarsching Did you clear the cache? Otherwise, it looks like you have mixed old code. The error indicates code from version 0.2 or lower. Then could you try removing and reinstalling the plugin?

tbpoetke commented 11 months ago

We have the same problem with shopware 6.4.* and froshtools version 0.2.18 and opening the system status page. But our error message looks different:

request.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "executeQuery" of class "Doctrine\DBAL\Query\QueryBuilder"." at /var/www/stage/vendor/store.shopware.com/froshtools/src/Components/Health/Checker/HealthChecker/TaskChecker.php line 29 {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\UndefinedMethodError(code: 0): Attempted to call an undefined method named \"executeQuery\" of class \"Doctrine\\DBAL\\Query\\QueryBuilder\". at /var/www/stage/vendor/store.shopware.com/froshtools/src/Components/Health/Checker/HealthChecker/TaskChecker.php:29)"} [] We reinstalled the plugin, clear cache many times but still same error :(

mohamedation commented 3 months ago

i am facing the same issue as @tbpoetke

any further insights about the issue? or what could be the reason?