All Questions

Filter by
Sorted by
Tagged with
38
votes
3answers
30k views

Enable exception printing on the webpage in Magento2

I was installing Magento 2 and got the following error. There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record ...
38
votes
3answers
32k views

Most efficient way to get all ID's from a collection

In the past to get all ID's of a product collection, I have always used getAllIds on the collection, believing this was a method that prevented the full collection load with data etc. But, I actually ...
37
votes
10answers
33k views

Where is Template Path Hints in Magento 2?

Just started playing about with Magento 2. Can anyone tell me where I can find the "Template Path Hints" option that used to be in System > Configuration > Developer > Debug?
37
votes
7answers
53k views

Magento 2: How can I deploy my theme only

I was using this for deploy the content but it is taking too much time. php bin/magento setup:static-content:deploy then I figure out adding the language make fast but it still deploy all the ...
37
votes
2answers
12k views

Magento 2 - Object manager tries to instantiate Abstract class. ( Fatal error )

Playing around with Magento 2 but run into a problem I can not wrap my head around. The object manager tries to instantiate Abstract class, this gives an Fatal Error. Does someone know what might ...
37
votes
6answers
42k views

Debugging layout XML loading

TL;DR: is there a way I can debug the loading of the layout? As I believe one module's layout is conflicting with another. Related to a previous question I made: How to make a module layout to be ...
37
votes
9answers
16k views

Security Patch SUPEE-10415 - Possible Issues?

New Magento 1 patch has been released, SUPEE-10415. This patch provides protection against several types of security-related issues Info page: https://magento.com/security/patches/supee-10415 ...
37
votes
4answers
70k views

magento 2 how to call any block function in phtml

How can I call any block function in any phtml? For example if I want to call my custom block function in product list.phtml?
37
votes
2answers
30k views

Magento Cache - confusion about Varnish, Redis, APC, Memcache

I'm try to improve Magento performances ( soon or later "MageDev" hit this point :) I did some research and I found a lot of good, but not homogeneous, guides. What I got is that: MemCache or ...
37
votes
2answers
9k views

Error after successfull patch SUPEE-5994: Class 'Mage_Install_Controller_Router_Install' not found

I successfully installed the SUPEE-5994 patch : [root@x]# sh PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02.sh Checking if patch can be applied/reverted successfully... Patch was applied/...
37
votes
1answer
27k views

Recurring Profiles - How do they work?

I'm trying to understand how Magento manages Recurring Profiles and orders associated with them. I have some open questions about that: Order: How the subsequent "order" is created from a Magento ...
36
votes
7answers
76k views

How to load product by SKU in magento 2

It's pretty basic, but I can’t find a working example on Stackexchange or google. I want to load a product from a helper or block. I already tried some things like: $objectManager = \Magento\...
36
votes
3answers
14k views

What is mview in Magento 2?

First of all what I know : Index management is useful for increasing store performance. EAV has one disadvantage.it will store data in different tables. So that retrieving data is time-consuming. So ...
36
votes
6answers
6k views

How to create an EAV entity?

How to create an EAV entity? This is a question that pops up a lot on the web. There are some good blog articles that explain how to do that, but none of them are satisfying for me. So I decided to ...
36
votes
3answers
14k views

Magento 2: template security: which method to use?

I'm aware Magento 2 has several methods available to secure the template: $block->escapeHtml() $block->escapeQuote() $block->escapeUrl() $block->escapeXssInUrl() But I'm wondering when ...
36
votes
11answers
12k views

Security Patch SUPEE-10266 - Possible issues?

A new security patch is out for Magento 1, addressing 13 APPSEC issues https://magento.com/security/patches/supee-10266 What common issues do you have to watch out for when applying this patch? ...
36
votes
7answers
46k views

Why Magento 2 is extremely slow?

I used Magento 1.9 and it was okay.It wasnt as fast as a simple joomla site but i had many customers with no problem. Now i wanted to upgrade my site to Magento 2,i bought a new host (same as i ...
36
votes
4answers
25k views

Magento 2: Run `setup:di:compile` **only** a Specific Module?

Is it possible to pre-generate code for one specific module? I.E. -- I can generate all the code in the system with php bin/magento setup:di:compile However, this can take a long time. I'd like to ...
36
votes
2answers
2k views

How can I change an existing modal in Magento 2?

I'm trying to change the behavior of a Modal (not Model) in Magento 2. The modal in question is advanced_inventory_modal, declared in module-catalog-inventory/view/adminhtml/ui_component/product_form....
35
votes
7answers
81k views

Magento 2 - Form Validation

is there a overview for the new form validation attributes in Magento 2?
35
votes
4answers
33k views

Get original image file from a cache URL

Is there any function that given a cache image product file return the original one? Example : => Cache URL: {BASEURL}/media/catalog/product/cache/2/image/9df78eab33525d08d6e5fb8d27136e95/a/l/IMAGE....
35
votes
4answers
73k views

How to add a custom CSS file in Magento 2

Is there a way to create my own CSS file that loads last in the cascade? If so, how and where do I add my custom CSS file?
35
votes
5answers
9k views

Are Symlinks on templates a security problem, and if yes, why?

Magento recommends to not use templates via symlinks: Advanced > Developer > Template Settings > Allow Symlinks Warning! Enabling this feature is not recommended on production ...
35
votes
22answers
81k views

Refused to apply style “because its MIME type ('text/html') is not a supported stylesheet MIME type”

Suddenly CSS is not loading on my Magento 2 admin panel. The frontend is working fine. Error details: 1. "Refused to apply style from 'https://www.ornativa.com/pub/static/version1502029409/...
35
votes
7answers
36k views

Move all Javascript includes to before </body>

Does anyone know how to have all of Magento's JS script tags e.g. <script type="text/javascript" src="http://sitename.com/js/prototype/prototype.js"></script> render out before the closing ...
35
votes
5answers
16k views

Solution to Magento Downloader 1.9.2 unknown cipher list

We fixed this by commenting out line 377 in downloader/lib/Mage/HTTP/Client/Curl.php //$this->curlOption(CURLOPT_SSL_CIPHER_LIST, 'TLSv1') There may be a setting that lets this pass through but ...
35
votes
2answers
25k views

Magento 1.9.1 Email Queue not working/buggy - how to troubleshoot and what is considered the best patch?

First of all yes, this is yet another question/topic about the 1.9.1 email queue. But it is not about about any cron problems (like this or this) or about the new queue feature not being used (like ...
34
votes
17answers
79k views

Magento 2 Allowed Memory exhausted error when compile code

I have error when i add module.. Please re-run Magento compile command so i run below command but also display error that below when run command from root, php magento setup:di:compile Compilation ...
34
votes
11answers
47k views

Magento 2 - What is the correct way to change default Order Id?

Magento 2. After fresh install the new Order id will be 100000001, 100000002 and so on. What is the correct way to change that increment id so it would be a higher number? For example 155555552, ...
34
votes
2answers
72k views

Magento 1 - How to check whether user has logged in or not in magento?

I am doing mobile apps and I would like to know how to check whether user is already logged in or not. Is there any observer event to track? If it is detected that the account is logged in, the user ...
34
votes
5answers
28k views

How to fix mysql error 1031 - Table storage engine for 'catalog_product_relation' doesn't have this option?

I'm trying to make a new development version of our Magento store. I made a clean install of El Capitan and got apache running with PHP, Mysql(version 5.7.10) etc. I also have phpmyadmin running and ...
34
votes
7answers
38k views

Magento2 - programmatically add product attribute options

What is the right(official) way to programmatically add product attribute option in M2? E.g. for manufacturer product attribute. Obviously existing option would be matched by "Admin" title value.
34
votes
3answers
23k views

How to update admin routers of custom module for patch SUPEE-6788

I'm not sure how to update custom modules to work with the SUPEE-6788 patch, the instructions are not very clear. Based on Alan Storm's tutorial, I created a simple module in the generator www....
34
votes
5answers
20k views

How to set a store ID on Mage_Catalog_Model_Resource_Product_Collection?

The task is trivial. I need to get list of products for particular store view with a flat catalog enabled. The most obvious solution is the following: $collection = Mage::getResourceModel('catalog/...
33
votes
11answers
41k views

Adding a non-category link to the navigation links in magento 2

I'm not sure what I'm doing wrong here. The block which holds the category links in is referenced to as navigation.sections. I thought by directing the following arguments toward the container I would ...
33
votes
3answers
28k views

How indexing works in magento

How indexing works in Magento What exactly it does? Why it is required?
33
votes
4answers
15k views

Magento 2 xml validation

For a while Magento 2 had a way to validate (and autocomplete) any xml by using an XSD file. For examplemodule.xml looked like this: <?xml version="1.0"> <config xmlns:xsi="http://www.w3.org/...
33
votes
4answers
41k views

Magento 2: How to get controller, module, action and router name?

Magento 2: How to get controller, module, action and router name?
33
votes
7answers
14k views

Questions to expect in an interview for a Junior Magento Developer Position

Firstly I would like to say that I hope I am not posting in the wrong place with this question and if I am please advice me of where (if anywhere in the stackexchange world is appropriate) I should ...
33
votes
2answers
30k views

Magento 2: Default Values for `system.xml` Configuration

In Magento 1, it was possible to Configuration a user interface for the System Configuration section in etc/system.xml files Set default values for those fields in the etc/config.xml files Behind ...
33
votes
3answers
32k views

Conditionally show/hide blocks in layout XML

How to conditionally add a block (depending on the configuration in the admin panel) in Magento's layout XML? We can check if config is true on actions. In the example below, if sample/config/...
33
votes
3answers
16k views

Magento 2: Is there a Profiler?

Does Magento 2 have a profiler? The Stores -> Settings -> Configuration -> Developer -> Debug panel still exists, but there's no settings for a profiler there. If Magento 2 does have a ...
33
votes
3answers
39k views

How can I disable cache for particular section or block

I have developed a top bar cart functionality for store front that displays latest three products added to the cart this works great when cache is disabled but when i enable the cache it showing weird ...
33
votes
1answer
4k views

Why is Magento 2.1.0 released before 2.0.9?

Magento has released 2.1.0 on June 23 but has released 2.0.8 (July) and 2.0.9 (Aug) after that. (https://github.com/magento/magento2/releases) Why are they releasing lower versions? If anybody knows ...
33
votes
2answers
22k views

In Magento2 what is <script type=“text/x-magento-init”>?

I am new to Magento2 and our organisation has just get the EE licence. I have installed it on my local machine and the default template spits out the following mixed in with HMTL: <script type="...
33
votes
1answer
7k views

Magento 2 - Theme Type 0:physical, 1:virtual, 2:staging. When to use?

In the theme table there is a type field with 3 possible values: physical, virtual and staging. When to use physical virtual and staging theme? When I extended luma theme my new theme appear in ...
32
votes
15answers
86k views

magento 2 admin url not working and loaded frontend is all messy

Admin url is showing 404 error after installing magento 2 on wamp server and frontend design is all messy and css is not linked to it.Error visuals are shown below. Frontend error:
32
votes
2answers
110k views

Get Order Details by Order Id

I need to retrieve an order in Magento by its Id. How do I load a specific order by Id? So far I've gotten the initial query constructed: Mage::getModel('sales/order');
32
votes
5answers
18k views

Why can't one switch back to the default mode on Magento 2?

So I have switched to the developer mode while developing on a Magento 2 project using the following command: php bin/magento deploy:mode:set developer All good, I got this message and I developed ...
32
votes
3answers
60k views

How can I change the default product images sizes on Magento 2?

In magento 1.x.x, we could change default thumbnail images in admin : System > Configuration > Catalog But in magento 2.0, how can I change theses value I can not seem to find any configs to allow ...

15 30 50 per page