mollie / PrestaShop

iDEAL, Creditcard, Bancontact, SOFORT, Bank transfer, PayPal & paysafecard for Prestashop
http://www.mollie.com
BSD 2-Clause "Simplified" License
69 stars 44 forks source link

Clear cache from console gives warnings and crashes. #873

Closed sharkooon closed 8 months ago

sharkooon commented 10 months ago

Expected behavior

Clearing the cache from console with: php ./bin/console cache:clear I expect the following message from console: [OK] Cache for the "dev" environment (debug=true) was successfully cleared.

Scherm­afbeelding 2024-01-15 om 14 17 49

Actual behavior

Clearing the cache from console with: php ./bin/console cache:clear

In PsrCachedReader.php line 198:

  Warning: filemtime(): stat failed for /var/www/html/vendor/prestashop/autoload/src/Autoloader.php(113) : eval()'d code 
Scherm­afbeelding 2024-01-15 om 14 16 23

Steps to reproduce the behavior

Environment

Additinal information

The following changes works:

modules/mollie/subscription/Controller/AbstractAdminController.php namespace Mollie\Subscription\Controller; to: namespace Mollie\Subscription\AdminController;

modules/mollie/src/Controller/AbstractMollieController.php class AbstractMollieController extends \ModuleFrontControllerCore to class AbstractMollieController extends ModuleFrontControllerCore

justelis22 commented 10 months ago

Hi there @sharkooon,

I have forwarded the issue to our development team. As soon as we have some updates I will let you know.

Best Regards, Invertus Support team.

sharkooon commented 9 months ago

My suggested changes breaks other stuff, so don't use it. It only works for clear cache from console: php ./bin/console cache:clear

justelis22 commented 8 months ago

Hi @sharkooon,

The issue can be recreated with native PrestaShop modules as well, as the solution works only when all of the modules are deleted. It seems to be a PrestaShop issue in general, I would suggest creating a ticket there.

Best Regards, Invertus Support team.