This my code for the controller. <?php declare(strict_types=1); namespace VendorModuleControllerIndex; use MagentoFrameworkAppActionHttpPostActionInterface; use MagentoFrameworkAppResponseHttp; use MagentoFrameworkAppRequestHttp as HttpRequest; use MagentoFrameworkControllerResultInterface; use MagentoFrameworkExceptionLocalizedException; use MagentoFrameworkControllerResultJsonFactory; use MagentoFrameworkViewResultPageFactory; use MagentoFrameworkHTTPPhpEnvironmentRemoteAddress; use VendorModuleModelMyModelFactory; use MagentoFrameworkMessageManagerInterface; use MagentoFrameworkStdlibDateTimeTimezoneInterface; use PsrLogLoggerInterface; /** * This class allows to save the request in database * Class Index […]
Daily Archives: April 24, 2022
I’m creating a module to change the file upload template (file.phtml) on the product page with a custom option like file. In catalog_product_view.xml I moved as follows: <move element = "product.info.options" destination = "product.info.media" after = "skip_gallery_after.target" /> and it’s ok. I tried to add css and js in the […]
Check my Magento 2 category pages, I get the error below “We can’t find products matching the selection.” So I ran the command below php bin/magento indexer:reindex catalogsearch_fulltext But I got the error below Catalog Search index process unknown error: {“error”:{“root_cause”:[{“type”:”illegal_argument_exception”,”reason”:”request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: [include_type_name]”}],”type”:”illegal_argument_exception”,”reason”:”request [/magento2_product_1_v2/document/_mapping] contains unrecognized parameter: […]
Following a windows PC crash, when asked if I wanted to save an autosave powerpoint presentation, I accidentally clicked no. All my work was lost and the autorecover folder C:Users<user>AppDataRoamingMicrosoftPowerPoint was empty. The fact that it was there after the PC crash means it must be saved somewhere. But where […]
My Windows Subsystem for Linux (WSL) was upgraded to WSL2 recently. When I type wsl -l -v in the PowerShell terminal, the following is displayed: NAME STATE VERSION * Ubuntu Running 2 docker-desktop Running 2 docker-desktop-data Running 2 However, I receive the following error when trying to connect to the […]
I’m running Windows 11 21H2 22000.613. I use both WSL 2 (Windows Subsystem for Linux) and Hyper-V on a regular basis. One day they both suddenly stopped working. When I run Hyper-V, it doesn’t display its usual interface, only an option to “Connect to Server”. When I tell it to […]
last weeks I noticed that my connection is so unstable. I get all the time connection timeout on pages, I ping google.com and ping 8.8.8.8 and i get request timeout but after 4-5 minutes working again and then again request timeout. Games not loading, they load for 1 minute and […]
Got a medical grade FSP650-80UMP psu that is old enough it worries me. Its running in a special dental device that has jacked in to the +5vsb purple wire. I would like to use a newer better PSU but my first problem is how to use that purple wire that […]