Open vasilii-b opened 2 months ago
Hello @vasilii-b ,
Thank you for bringing this to our attention.
I tried to reproduce the issue by setting up a fresh Adobe Commerce 2.4.6-p6 environment and installing the extension via Composer. However, I was unable to replicate the error you encountered. The setup completed successfully without any cache-related errors.
The issue you're facing seems to be related to the cache configuration in your specific environment. The error message indicates that the cache frontend 'default' is not recognized, which could be due to a misconfiguration in your env.php file or a missing cache configuration.
Could you please check your env.php file to ensure that all necessary cache types are correctly configured? Also, make sure to clear the cache and run bin/magento cache:clean and bin/magento cache:flush to see if that resolves the issue.
If the problem persists, it might help to provide more details about your setup, including any custom cache configurations or third-party modules that might be affecting the cache pool.
Looking forward to your response.
Best regards, Hamza
Hey @HamzaHannad , I did re-test here.
2 different Magento Open Source projects - worked ✅ 2 different Adobe Commerce projects - same issue as reported ⛔
Update
Was able to replicate the issue on a custom module when trying to add a plugin for the monolog\logger
.
When have this commented out - all works fine.
<type name="Monolog\Logger">
<plugin name="magify_slack_notifier_logger" type="Magify\SlackNotifier\Plugin\Logger" />
</type>
Hi @vasilii-b,
Thank you for the update and for retesting on different projects.
I appreciate the detailed feedback. Unfortunately, I currently don't have access to an Adobe Commerce environment to replicate the issue. However, based on your findings, it seems like the problem may be related to the custom plugin configuration for Monolog\Logger.
If there's anything else you want me to investigate or if you have more details on the error messages or logs from Adobe Commerce, please share them, and I'll do my best to help!
Best, Hamza
That's correct @HamzaHannad .
Looks like the plugin for Monolog logger causes the issue. My understanding so far is that at the time the change is requested, the cache pool tries to get the default
cache configuration, but it cannot - most likely because it's not available somehow.
I'll try to investigate it.
Hi @vasilii-b
I appreciate you looking into this further. If you discover any more specific details or need any additional assistance, feel free to reach out. I'm here to help however I can!
Right after installing the extension via composer and running
bin/magento s:up
getting this error. Made sure it's not project-related - the issue occurs only when installing this extension.Having a look at the code of the extension, I don't see a direct change of the Cache Pool and/or adding new cache types, but for some reason it has an impact. Perhaps the changes from
\Magify\SlackNotifier\Model\Config\Backend\Encrypted
affects it.Preconditions: Adobe Commerce 2.4.6-p6