New answers tagged

0

We have the same issue. I get same error no 32, when there are lots of orders and some breaks. Were you able to find any solution for the same?


0

Your RuleProductPricesPersistor.php code must look like this. <?php namespace Vendor\Module\Model\Indexer; use Magento\CatalogRule\Model\Indexer\IndexerTableSwapperInterface as TableSwapper; use Magento\Catalog\Model\ResourceModel\Indexer\ActiveTableSwitcher; use Magento\Framework\App\ObjectManager; class RuleProductPricesPersistor extends \Magento\...


0

So In fact the real problem here was due to a wrong docker installation (This project was runing under the same port as an other one). Meanings all the commands were in fact running under the wrong project.


0

I suggest 2 steps: step 1: disable this module we have identified as having an issue php bin/magento module:disable Aheadworks_Acr if the command above returns an error, go to app/etc/config.php and set the entry for this module to 0 manually at this point, the module is disabled and It does seems this module is the culprit for some custom config that is ...


0

I experienced the same error while using the Sample Data. I fixed it with: bin/magento sampledata:reset bin/magento setup:upgrade


0

Run the following commands. php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f sudo chmod -R 777 var/ generated/ pub/


0

try to clean generated folder. Than: composer install bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f bin/magento cache:flush cheers


0

Vendor\Module\Model\Indexer\RuleProductPricesPersistor.php Your child class should be like this <?PHP use Magento\CatalogRule\Model\Indexer\IndexerTableSwapperInterface as TableSwapper; use Magento\Catalog\Model\ResourceModel\Indexer\ActiveTableSwitcher; use Magento\Framework\App\ObjectManager; class RuleProductPricesPersistor extends \Magento\...


0

OK. Evidently there is no way to do this. I have been back and forth between Sucuri and Royal Mail several times over a number of weeks and neither seems to be able to propose a viable resolution to this issue. I will have to look for an alternative firewall solutions


1

I found that the root of the issue here is that a 3rd party module we installed had a bug in it that was preventing the indexer from finding product attributes. The module was the MagePlaza Admin Permissions for Magento 2 module v1.0.0 They suggested I update to v1.0.1 and that resolved the issue. In file vendor/mageplaza/module-admin-permissions/Plugin/...


0

By default, all most payment methods will extend the default payments method component, this default payment will define child messagesContainer component inside the payment. ref: module-checkout/view/frontend/web/js/view/payment/default.js I don't know what Magento versions but you are using Authorize.net, it may be out of update version, the error message ...


0

Please see Renon's answer above. To further elaborate on the issue, you can search your database for other affected rules. First, get the current staging version for your site: SELECT * FROM `flag` WHERE `flag_code` = 'staging'; You will see something like this: {"current_version":"1595433660"} Next, take that timestamp, and inject it ...


0

You can create database from the terminal on MAC running MAMP with these steps /Applications/MAMP/Library/bin/mysql -u root -p Enter your password at the prompt to connect to mysql. When connected to MySQL shell, run the code below to create your database. create database magento; exit; Run the magento installation script again


0

take db backup and run the following sql queries SET FOREIGN_KEY_CHECKS=0; UPDATE `store` SET store_id = 0 WHERE code='admin'; UPDATE `store_group` SET group_id = 0 WHERE name='Default'; UPDATE `store_website` SET website_id = 0 WHERE code='admin'; UPDATE `customer_group` SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN'; SET ...


0

You need to flush the DI generated and the Redis too, run these commands to do it: rm -rf generated/* redis-cli -n 0 flushall php -r "echo opcache_reset();" bin/magento setup:di:compile


0

It's happening because of the Redis cache, run these commands to flush it and try again. redis-cli -n 0 flushall php -r "echo opcache_reset();" bin/magento setup:di:compile


0

You should to define messageManager and resultFactory in __contruct. <?php namespace Apriljune\Testimonial\Controller\Adminhtml\Testimonial; use Exception; use Magento\Backend\App\Action; use Magento\Framework\Controller\ResultFactory; use Magento\Backend\App\Action\Context; use Apriljune\Testimonial\Model\ResourceModel\Testimonial\Collection as ...


0

Had added a comment to vishant Comment, but my Rep was to low... I'd like to add my interest to an answer this question because a customer of me would see this feature in his shop.


1

This is what I learnt from magento 2 certification exam : the data that is sent to events should not be transformed. Events should be able to be run completely asynchronously, so around plugin can be used to stop logic. For Submit Comment create aroundExecute() for Magento\Sales\Controller\Adminhtml\Order\AddComment public function aroundExecute(AddComment $...


0

In my case the const CODE has wrong name and temporary modify the file vendor/magento/framework/Data/Argument/Interpreter/Constant.php Is helped me to find the name of the actual module.


0

Did you get the solution for the same? I am also facing the same problem with Mageplaza blog extension.


0

this message '..with the same ID X already exists' typically happens when a collection is created and a wishlist item model is assigned to the collection twice --> the reason often is that the wishlist collection has been altered via a customisation from a third-party module. To troubleshoot, I would start directly in the collection class: \Magento\...


0

Find validateURLScheme function in vendor\magento\framework\Image\Adapter\Gd2.php file. at line 96. Replace following function with below code. For more details please go to Magento 2 Installation at 51% Error: (Wrong file in Gd2.php:64) Module ‘Magento_Theme’ private function validateURLScheme(string $filename) : bool { if(!file_exists($filename)) { // ...


0

Get Order Information From Order ID <?php $orderid = your_id; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\Data\OrderInterface')->load($orderid); //fetch whole order information print_r($order->getData()); //Or fetch specific information echo $order->getIncrementId(...


0

Hi you can try it like this <?php $orderid = 2; //enter your order id here $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\Data\OrderInterface')->load($orderid); //fetch whole order information print_r($order->getData()); //Or fetch specific information echo $order->...


Top 50 recent answers are included