The store front shows 500 Internal server error after I followed all instructions in the article here to upgrade Magento. On checking the version of Magento with the command bin/magento --version after the upgrade process, I see this old version. Running git status shows what’s seen in the image below. […]
Magento2
As I ran the command composer require -w as part of the process to upgrade Magento 2.4.2 to 2.4.4, I found the error seen in the image below. Below is the article I’m referring to upgrade Magento. https://www.mgt-commerce.com/tutorial/how-to-upgrade-magento-2-4-3-to-magento-2-4-4/ I request someone to share the list of commands to be run […]
I am creating a second store in the same website, for that i followed blow link https://magefan.com/blog/create-multiple-stores-in-magento-2. After Created a new store it’s looking as below. Then in that store I changed the base url and base secure url as like below Now in my home page I’ve got the […]
I am trying to run some of my code by each time, I am getting this error, I am using the latest version of PHP. I replaced my caused as per the error; from this function __autoload($class_name) { $class_name = strtolower($class_name); $path = LIB_PATH.DS."{$class_name}.php"; if(file_exists($path)){ require_once($path); }else{ die("The file {$class_name}.php […]
We need to get concrete error message when MagentoCatalogModelProductRepository throws CouldNotSaveException during saveProduct() private function saveProduct($product): void { try { $this->removeProductFromLocalCacheBySku($product->getSku()); $this->removeProductFromLocalCacheById($product->getId()); $this->resourceModel->save($product); } catch (ConnectionException $exception) { ... } catch (Exception $e) { throw new CouldNotSaveException( __('The product was unable to be saved. Please try again.'), $e ); } […]
is there a way that we can capture payment for an order but only invoice the order later? In our case, we sell in-person training and these events are sold many months in advance. We wish to capture payment at time of purchase however only invoice the order once the […]
I’ve uploaded some product images both with csv import and backend interface of magento 2.3 and I noticed that the file size on the frontend is 3x the size of the file I uploaded. For example, I uploaded a 1200x1200px image (with custom Huffman lossless compression) around 600Ko. After Magento […]
I have attribute that values are dynamically mapped from custom tables. So attribute don’t have values by it self. I’d like to get mapped values every time getValue() is called. But i don’t want affect core magento files with additional “if’s”. For admin panel i created backend_model for this attribute […]
Im developing a magento 2 site using WSL on windows 11. And for some reason my configuration page is not loading. Area in question is stores->configuration. Things i have tried: disabling all external modules and compiled setting correct permissions to all files setting correct ownership of files ran bin/magento setup:upgrade […]