访问magento 2店面时出现以下错误。对magento很陌生。这方面的任何帮助都将非常有帮助。
Error: Cannot instantiate abstract class MagentoWishlistBlockAbstractBlock in /var/www/html/magento_1/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php:121
我使用的是magento最新版本2.4.2-p1。
谢谢。
你能检查一下vendor/magento/module-wishlist/Block/AbstractBlock.php
是否在那里吗?
在命令行中执行php bin/magento setup:upgrade
。如果您仍然有这个问题,也可以尝试php bin/magento setup:di:compile
。