Most Popular
1500 questions
98
votes
5 answers
GIT and deployment strategy Magento2 projects
With Magento 1 I used a deploy tool that pulled in the GIT repo, ran commands like modman deploy-all and made sure the var directory was writable. For the .gitignore I used this one which worked pretty well.
But what about Magento 2?
What…
Sander Mangel
- 37,528
- 5
- 80
- 148
95
votes
15 answers
Where can I find a complete list of Magento events?
I know that Magento has a hook-like system called events. Does anyone have a complete list or a script which can be used to determine which events can be called?
benmarks
- 16,675
- 4
- 41
- 108
91
votes
31 answers
Required parameter 'theme_dir' was not passed
What is the error message:
Required parameter 'theme_dir' was not passed
Is it related to in Magento 2? And how can this problem be fixed?
hakre
- 2,831
- 4
- 27
- 50
89
votes
13 answers
Magento 2 Reindexing - One or more indexers are invalid. Make sure your Magento cron job is running
I couldn't find the way to do reindexing in mass actions on magento 2.
Seems like you need to run it from cronjob. Is there an alternative way to reindex data in magento 2 from backend or command line just like it used to be in Magento 1.x (php…
Harit
- 1,293
- 2
- 10
- 9
89
votes
17 answers
How to create custom Log file in Magento 2?
In Magento 1, it was common to segment logs into different files (to separate logs for payment methods, etc.). That's as easy as changing the $file parameter of Mage::log.
Magento 2 has changed to use Monolog.
It appears that Monolog (or Magento2's…
Ryan Hoerr
- 12,271
- 7
- 47
- 54
88
votes
6 answers
Difference between getSize() and count() on collection
I have heard many times that they both are the same. But I am facing a weird issue, in the product collection of CatalogSearch module, count() is returning correct product count while getSize() is returning zero.
So, basically this is what I am…
MagExt
- 1,833
- 2
- 16
- 24
86
votes
2 answers
Access Denied errors after installing SUPEE-6285
After installing the SUPEE-6285 patch on our Magento 1.7.0.2 store the system is showing an "Access Denied" error when attempting to access all custom modules for users who have selective permissions (not all permissions). Screenshot below.
The…
Chris
- 1,389
- 2
- 15
- 25
84
votes
6 answers
What is the best deploy strategy?
Setting up a Magento store is not only a matter of developing self-installable extensions but requires also a lot of "manual entry" operations such as creating end editing attributes, categories, products, price rules CMS pages and so on, not to…
Alessandro Ronchi
- 3,746
- 1
- 23
- 28
81
votes
4 answers
Fundamentals for debugging a Magento store
How can I debug my Magento store
This is a question that isn't all too relevant to us now, but had a Magento SE site existed 5 years ago, it probably would have been our first question. For those just getting into Magento, or unfamiliar with it -…
Ben Lessani
- 17,630
- 4
- 44
- 68
80
votes
22 answers
How to check if customer is logged in or not?
How to find if a customer is logged in or not in Magento 2.
If the customer is logged in then how to get customer data from a session?
Rakesh Jesadiya
- 42,221
- 18
- 132
- 183
79
votes
14 answers
Magento 2 folder/file permissions
I suspect that the permissions might have gotten messed up on my Magento 2 installation. On the old versions I would run the following command to make folders 755 and files 644:
find . -type f -exec chmod -c 644 {} \; && find . -type d -exec chmod…
Neekoy
- 1,001
- 1
- 8
- 10
78
votes
13 answers
Magento 1.9.2.0 static block display issues
I have a website with multiple static blocks which was working in 1.9.1.0, but with 1.9.2.0 the static blocks start displaying sporadically, as they sometimes show the wrong block rather than the correct block. Sometimes they display as desired.…
w.k
- 883
- 1
- 9
- 15
77
votes
13 answers
Clearing Magento after testing
I am currently doing a lot of tests in Magento so I can get familiar with it. Unfortunately the database is extremely cluttered with my tests. I wish to clear up the database so I can start over again. This means doing the following:
Clearing all…
Deep Frozen
- 1,033
- 1
- 11
- 19
76
votes
2 answers
Magento 2 @escapeNotVerified
I see a lot of occurences of this comment /* @escapeNotVerified */ in the template files for Magento2.
Does it have a special meaning?
Is there any use for this? …
Marius
- 197,939
- 53
- 422
- 830
73
votes
9 answers
Magento 2 How to unlock reindex process
I'm making some tests in Magento reindex process and I locked the stock index process.
How can I unlock this process?
Design Config Grid index has been rebuilt successfully in 00:00:02
Customer Grid index has been rebuilt successfully in…
Douglas Ianitsky
- 1,028
- 1
- 7
- 18