Skip to content

magento man

Get stuck when using magento2/vuestorefront/composer

rookie here. Im trying to connect magento2 with vuestorefront using composer. I am following this guide: https://docs.vuestorefront.io/magento/installation-setup/configure-magento.html. On step 2, after using this command: curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s — magento.test 2.4.4. Docker fires up as it should and… Read More »Get stuck when using magento2/vuestorefront/composer

Magento 2: Upload custom generated file to pub/media

I have generated a custom html file and instead of downloading I want to upload it to the pub/media programmatically. <?php use MagentoFrameworkAppResponseInterface; use MagentoFrameworkAppFilesystemDirectoryList; use MagentoMediaStorageModelFileUploaderFactory; class PrintAction extends MagentoBackendAppAction { const ADMIN_RESOURCE = ‘Magento_Sales::sales_order’; /** * @var MagentoFrameworkAppResponseHttpFileFactory… Read More »Magento 2: Upload custom generated file to pub/media

Getting Integrity constraint violation: 1062 Duplicate entry after updating extension

After updating one of my extensions (which was required because I updated to Magento 2.4.4), I am getting this error when I run the upgrade command: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘646-1’ for key ‘AMASTY_ORDER_ATTRIBUTE_ENTITY_ENTITY_ID_PARENT_ENTITY_TYPE’, query was: ALTER… Read More »Getting Integrity constraint violation: 1062 Duplicate entry after updating extension