In Magento “version”: “2.4.3” I am facing this error during executing bin/magento setup:static-content:deploy -f; Anybody had this issue ? Fatal error: Cannot use ::class with dynamic class name in /var/www/html/vendor/laminas/laminas-mail/src/Message.php on line 394 ERROR: 255
Magento
Can Any body explain me Why Magneto used registry and now why we use Services for what purposes instead of Registry.
How can I add an “active” class to the tr surrounding the shipping method when the row is clicked on? My goal is to have border wrap around the selected shipping method.
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 */ protected $fileFactory; /** * @var MagentoFrameworkControllerResultRedirectFactory */ protected $resultRedirectFactory; […]
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 Composer asks for authentication like so: Composer authentication required (repo.magento.com […]
I am using magento 2.3 version and i need to install SSL certificate to my domain. I installed lets encrypt certificate to my domain after that my admin is not logging in. It is showing login page with out error. I verified following BaseURL & secureURL is same cookie_domain is […]
I ma trying to render data from database to a custom block, but i am getting error as the below screenshot I’ve review the code multiple times and still con not catch the issue I am using Magento ver. 2.4.4 the code as the following snapshot Model file => src/app/code/Mastering/SampleModule/Model/Item.php […]
In a Magento 2.4.5, I’ve (successfully) added a custom field (opening_mon) to the AdminHtml form for a Source (MSI), using view/adminhtml/ui_component/inventory_source_form.xml. I do see the field in the form. <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="opening_times" sortOrder="40"> <settings> <label translate="true">Opening times</label> <collapsible>true</collapsible> <opened>false</opened> <dataScope>general</dataScope> </settings> <field name="opening_mon" formElement="input" sortOrder="50"> <settings> <dataScope>extension_attributes.opening_mon</dataScope> <dataType>string</dataType> […]
Getting weird behaviour from Magento on reindexing calogsearch_fulltext. When running: bin/magento indexer:reindex catalogsearch_fulltext Console outputs: Catalog Search index has been rebuilt successfully in 00:00:00 which is already quite alarming as we have around 700k products. Nothing related to indexing appears in magento logs. If I curl elasticsearch:9200/_cat/indices I can see […]