New answers tagged

0

In my case Windows did not produce the interceptors properly. I compiled the code on my windows OS and copied the code into my docker container. I suggest the problem is a path issue. See here My Magento Version was 2.3.3


0

If you have SSH access to the host you can dump the database, Tarball the file system, download everything and then re-upload to the new host.


0

To overide that things, you need to do this things. Vendor\Extension\view\adminhtml\requirejs-config.js add this: var config = { map: { '*': { 'Magento_Sales/order/create/scripts':'Vendor_Extension/order/create/scripts' } } }; Then create the file Vendor\Extension\view\adminhtml\web\order\create\scripts.js with your content.


1

Your file code function for FormKey <?php namespace XYZ\Sales\Block\Adminhtml\Order\View; use \Magento\Backend\Block\Template; class XYZBlock extends \Magento\Backend\Block\Template { public function __construct( \Magento\Backend\Block\Widget\Context $context, \Magento\Framework\Data\Form\FormKey $formKey, array $data = []...


1

Please try to update below your script code : <script type="text/javascript"> require([ "jquery" ], function($){ $('#submit-button').on('click',function(){ $.ajax({ url:"'" + <?php echo $block->getAjaxUrl(); ?> + "'", data: {form_key: window.FORM_KEY}, type: ...


0

Mageplaza Reports snuck into our system when installing something else from Mageplaza... Mageplaza Reports over-rides all the dashboard startup pages, and doesn't work on our system and leaves the dashboard as blank. I disabled Mageplaza reports and the dashboard came back. I will contact Mageplaza to see if they can fix their module. Normally Mageplaza ...


0

Changing the default admin path is simple for anyone who knows to edit the text in XML files. If you have modified the admin URL by practicing the admin backend and dropped access follow the simple steps


2

Check your app/etc/config.php Most likely that system configuration was locked. system configuration can be locked by executing the following command bin/magento config:set <path> <value> --lock-config This will disable the field and "use default" option. Just remove the entry you found on the app/etc/config.php and run app:config:import ...


0

I crate a Admin Grid using Ui-Component. You want all Data you have create a Custom Export Button that export your all data. edit in your Ui-Component file where Admin Grid Show [vendor_name] \ [module_name] \view\adminhtml\ui_component Add this code to add Button into Admin Grid Ui-ComponentFIleName.xml <item name="import" xsi:type="array"> ...


1

IF You migrated M1 to M2 then you are facing something below error during cmd execution The store that was requested wasn't found. Verify the store and try again. please don't change in vendor module-store files : /vendor/magento/module-store/Model/StoreManager.php or /vendor/magento/module-store/Model/...


1

I know it is a very old question but we also had a similar requirement because we sell supplement products with expiry date. We searched online and found the following extension which helped us -: Magento 2 Product Shelf Life Hope it helps you or other store owners who sell products with limited shelf life or expiry date


0

CREATE TABLE `customer_grid_flat` ( `entity_id` int(10) unsigned NOT NULL COMMENT 'Entity ID', `name` text DEFAULT NULL COMMENT 'Name', `email` varchar(255) DEFAULT NULL COMMENT 'Email', `group_id` int(11) DEFAULT NULL COMMENT 'Group_id', `created_at` timestamp NULL DEFAULT NULL COMMENT 'Created_at', `website_id` int(11) DEFAULT NULL COMMENT '...


0

I had the same issue and resolving it by following steps First, you need to remove generated/code/* and var/cache/* rm -rf generated/code/* var/cache/* Second, Clean the cache php bin/magento cache:clean Third, Change the file permission sudo chmod 777 -R generated/ var/ pub/ Fourth, run Generated Compile the code php bin/magento setup:di:compile


1

I've found the issue a couple days ago. The security page is the "Account Settings" page, my Mageplaza 2Factor extension was cousing this issue. I've a password expiration policy from 180 days, the 180th day has passed and the site where forcing me to "Account Settings" to change my password. After creating a tirth admin account by Magento CLI and ...


1

You need to do code like this one. $qty = 1; $quote = $this->quoteFactory->create()->load($quote->getId()); $product = $this->productRepository->getById($product->getId()); $magentooptions = array(5=>"1",23=>"2",32=>"3"); $par = array('product' => $product->getId(), 'bundle_options' => array(1 => $...


1

If you want to preserve the existing user name "admin" setting the following columns in admin_user table solves the issue for me, Columns: Failure Number - 0 first_failure - NULL lock_expires - NULL PHP MyAdmin:


0

Just in your xml file add below code inside the listing tag <listingToolbar name="listing_top"> ..... </listingToolbar>


0

Please check in Magento Devedocs. It will resolve your issue. Thanks


1

I think you can easily change with the just small change for shipping address, <fieldset name="billing" source="Magento\Customer\Model\ResourceModel\Address\Collection" provider="Magento\Customer\Model\Indexer\Address\AttributeProvider"> <reference fieldset="customer" from="entity_id" to="default_shipping"/> </fieldset> Here ...


1

You can fix this issue by adding temporary solution adding simple condition in Magento\ConfigurableProduct\Helper\Product\Options\Loader::load(ProductInterface $product) after line no : 51 if (get_class($typeInstance) == 'Magento\Catalog\Model\Product\Type\Simple' || get_class($typeInstance) == 'Magento\Bundle\Model\Product\Type') { return null; } ...


0

This is not an answer but I think this can help. I also faced this type of issue in my custom module(in all environments local, staging and production) which was working perfectly fine few days ago. I tried all possible solutions but it is still showing error ERR_BLOCKED_BY_CLIENT in console for mui/index/renderer and Something went wrong with ...


1

You need to add the payment and shipping method in your collection before showing them into the Grid. Adding Payment and Shipping in the collection $collection = Mage::getModel('sales/order')->getCollection(); $collection->join(array('payment'=>'sales/order_payment'),'main_table.entity_id=payment.parent_id','method'); $this->setCollection($...


1

Probably there is an old XML in the database, check the cms_page table in the custom_layout_update_xml. When you find and remove the XML changes directly from the database it will be solved and you might be able to save your CMS Page normally. It's happening because you updated your Magento and it was saved there before, this updated version didn't ...


1

In Magento 2.3 Commerce at least, you can disable Reviews in admin at Stores > Configuration > Catalog > Product Reviews


1

Create file in adminhtml app\code\Ketan\Buttons\etc\adminhtml\di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> <type name="Magento\Backend\Block\Widget\Button\Toolbar"> <plugin name="...


0

Create plugin to remove cancel button from order view page. namespace NameSpace\OrderManagement\Plugin\Sales\Block\Adminhtml\Order; use NameSpace\OrderManagement\Helper\Data; use Magento\Sales\Block\Adminhtml\Order\View; use Magento\Framework\View\LayoutInterface; class ViewPlugin { /** * @var Data */ protected $helper; public function __construct(...


0

For the record - you most likely have duplicate product names. I had the same problem. You can check the error in var/log/exception.log to see exact url. Copy it. Then you can check your database for duplicates with the following query: select entity_id, request_path, store_id from url_rewrite where request_path like '%kreinik-metallic-very-fine-4-siulai%';...


0

This happens because 'secret key' is missing when you just type in URL manually. Secret key feature is enabled by default and can be disabled here: Stores => Configuration => Advanced => Admin => Security => Add Secret Key to URLs . Then you should be able to reach your action.


0

[ Magento 2.x.x ] Yes I also done this When I make First time in Module acl.xml and I was check it whether it works or not. I try to create a Admin user one, two , three.... and no Admin user access, because I remove All Administrators's Role. then I done Below thing to get All Admin user's Role ( Reset Role ). Note:- use mysqldump to back up your ...


0

[ Magento 2.x.x ] Yes I also done this When I make First time in Module acl.xml and I was check it whether it works or not. I try to create a Admin user one, two , three.... and no Admin user access, because I remove All Administrators's Role. then I done Below thing to get All Admin user's Role ( Reset Role ). Note:- use mysqldump to back up your ...


1

Update your getData function in your DataProvider class with this public function getData() { $baseurl = $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA); if (isset($this->loadedData)) { return $this->loadedData; } $items = $...


0

In Database Execute This Query SET GLOBAL innodb_lock_wait_timeout = 120;


0

First add this code into your Form Block File Form.php $fieldset->addField( 'image', 'image', array( 'label' => 'Image', 'required' => false, 'name' => 'img', 'note' => 'Allow image type: jpg, jpeg, png', ...


0

Please check if there is already some process running and that is holding the table catalog_category_entity. you can do so by running show processlist from mysql console. If yes then you need to wait for that process to complete or kill that process if that is some unwanted script. If no then you can try increasing the wait timeout for mysql


2

After Magento 2.2 you can make sorting false using below code. <sortable>false</sortable> Complete column tag looks like this <column name="store_id" class="Magento\Store\Ui\Component\Listing\Column\Store"> <settings> <label translate="true">Purchase Point</label> <bodyTmpl>ui/grid/...


0

if you get 500 error after access 'yoursite/setup' please add following code after first php tag ini_set('display_errors', 1); ini_set('memory_limit', '2000M'); It will show you error. In my case I use redis to store cache, it causes the issue, I have to change session to file: 'session' => [ 'save' => 'files' ], In my case, I comment this line ...


1

Reasons for Magento page cache invalidated error Based on our experience dealing with Magento problems, we’ve seen 2 cases where Magento invalidates Page cache and users see this warning. Magento website owners often make changes or updates to products, categories, catalog price rules, static blocks, 3rd party extensions, etc. Website owners use cron jobs ...


0

In my case the error occurred due to an wrong declaration of the <virtualType> in the di.xml. The <virtualType> for the dataProvider can be declared the following: <virtualType name="[Vendor]\[Module]\Model\ResourceModel\[Model]\Grid\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult"> ...


0

use this _applyMyFilter function for filter_condition_callback protected function _applyMyFilter(Varien_Data_Collection_Db $collection, Mage_Adminhtml_Block_Widget_Grid_Column $column) { $select = $collection->getSelect(); $field = $column->getIndex(); $value = $column->getFilter()->getValue(); $select->where("invoice....


0

please follow this change _prepareCollection() function with this protected function _prepareCollection() { $collection = Mage::getResourceModel($this->_getCollectionClass()); $collection->getSelect()->join(array('invoice' => 'sales_flat_invoice'), 'invoice.entity_id = main_table.entity_id', null) ->columns('(...


0

Please check this link Try to override sales_order_grid.xml and change default date picker with date time picker.


Top 50 recent answers are included