96 votes
Accepted

How do I set Developer Mode in Magento 2

you can enable it from the cli bin/magento deploy:mode:set developer
Oshan Rube's user avatar
  • 1,076
75 votes
Accepted

How to install a specific Magento 2 version with Composer?

You can try below command: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.1.7 /installation/directory/path
Jarnail S's user avatar
  • 4,687
60 votes
Accepted

Magento 2 CSS and JavaScript not loading from correct folder

SOLUTION # 1 (IF YOU WANT TO EDIT XML FILE) I would like you to download Magento 2 zip from magentocommerce.com/download with sample data, create a new db in phpmyadmin, extract zip in htdocs folder. ...
Fayyaz Khattak's user avatar
48 votes
Accepted

500 after install - Class Magento\Framework\App\ResourceConnection\Proxy does not exist

chown -R www-data:www-data /var/www/magento2/ chmod 777 -R var generated app/etc rm -rf var/cache/* var/page_cache/* var/generation/* and php bin/magento setup:di:compile; If you're using Docker, ...
stnc's user avatar
  • 628
41 votes

Magento 2.4.1 setup:install problem : "the default website isn't defined. Set the website and try again."

It appears that this error might appear when a MySQL database is empty, but the env.php file is present. (Possibly because you had setup Magento, but for some reason, database was deleted.) To fix ...
Aleksandrs Rivkinds's user avatar
38 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

I had same problem manipulating databases, this answer resolved my problem ERR_TOO_MANY_REDIRECTS : https://magento.stackexchange.com/a/84756/50635 To correct this, please try to set Use Secure ...
DependencyHell's user avatar
36 votes

How do I set Developer Mode in Magento 2

Another way, we can enable developer mode Goto app/etc/ and open env.php and change current application mode by MAGE_MODE' => 'default' to MAGE_MODE' => 'developer' Then,please flush the cache
Amit Bera's user avatar
  • 77.2k
36 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

In my case, I was importing an already existing Magento 2 database. The reason I was getting the error was because of the cookie domain in the database. Go to your database and look in the table ...
Paul's user avatar
  • 1,491
34 votes
Accepted

Installation at 51% Module 'Magento_Theme' Error in Magento 2

You need to perfact solution please edit below function on line no 96 follow this- vendor\magento\framework\Image\Adapter\Gd2.php-- private function validateURLScheme(string $filename) : bool { ...
Pushpendra Singh's user avatar
28 votes

CSS and Javascript files are not loading after Magento 2 installation

If you facing problem of css and design after installation in Windows please follow the following steps: step 1. php bin/magento setup:static-content:deploy step 2. php bin/magento indexer:reindex ...
samumaretiya's user avatar
26 votes
Accepted

No images or JS on new Magento 2 installation

Try this Before that take Backup Remove everything, except .htaccess file from pub/static folder Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\...
Magento 2's user avatar
  • 3,834
24 votes
Accepted

Magento 2.1.1 not compatibile with PHP 7.1.0

Update - September 2017: Magento 2.2 now officially supports PHP 7.1, so that's the Magento version you should aim for from now on if PHP 7.1 is something you want or need on your platform. Original ...
TiEul's user avatar
  • 1,297
24 votes
Accepted

500 Internal Server Error when installing magento2.2.2

Ok Finally.... here is the process i did follow to get rid from this. Step1:: Please make sure that LoadModule version_module modules/mod_version.so is loaded from httpd.conf file to resolve Invalid ...
Zaheerabbas's user avatar
  • 2,068
22 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

I refer to your magento store domain as example.com in this post. If its www.example.com or store.example.com or whatever, substitute accordingly. I just ran into this issue and here are the ...
Ryan Wilson's user avatar
21 votes
Accepted

I am getting Fatal error: Class 'IntlDateFormatter' not found in Magento2

Just need to clear comment before this line in php.ini file: ;extension=php_intl.dll to extension=php_intl.dll
Pradeep Kumar's user avatar
21 votes

Magento2 exception during installation: 'LogicException' with message 'Unknown module in the requested list: 'Magento_BundleSampleData'

Most of the time these type of errors come when you try to install magento2 previously and it was failed due to some reason. and you have started your installation process again after removing all of ...
Amit Dwivedi's user avatar
  • 1,540
21 votes

Magento 2 Installation Fatal Error - Cannot instantiate interface

Make sure the PHP module intl is installed, clear var/generation (or generation/* if you're using Magento 2.2+) and var/cache, enable Magento modules (bin/magento module:enable --all), compile DI (bin/...
Erfan's user avatar
  • 3,107
20 votes
Accepted

How to reinstall magento 2 extension properly?

To run your extension again you need to remove your extension entry from setup_module table also remove your table which are created by your extension script then run below command php bin/magento ...
Hardik Patel's user avatar
17 votes

No images or JS on new Magento 2 installation

You can run below command from magento root folder. php bin/magento setup:static-content:deploy This will download the content perfectly in respective folders.
Shyam's user avatar
  • 1,680
17 votes

Magento 2 CSS and JavaScript not loading from correct folder

you just need to update the apache2.conf file. On Ubuntu 16.04 Open and edit the file /etc/apache2/apache2.conf Navigate to the place in the apache2.conf file <Directory /var/www/> Change "...
S.A's user avatar
  • 171
17 votes
Accepted

Magento 2 Installation Fatal Error - Cannot instantiate interface

If you use nginx configuration from the official sample and running Magento in the default/developer mode this situation might happen with document root global value set as root $MAGE_ROOT/pub; The ...
Yaroslav Rogoza's user avatar
16 votes

Magento 2 Error ERR_TOO_MANY_REDIRECTS

In my case, I copied website from client's server, and was setting up it on my local system. I simply removed cookie/domain from core_config_data table and then flushed cache, it worked for me! ...
Jitendra Mandloi's user avatar
14 votes

Magento 2 CSS and JavaScript not loading from correct folder

For me it was simply because mod_rewrite wasn't enabled. sudo a2enmod rewrite and service apache2 restart
Haim's user avatar
  • 2,114
14 votes
Accepted

How to setup Magento 2 with Docker

I've been using for the last 6 months the docker images created by Fabrizio Balliano It works nicely on ubuntu. And you have a readme file explaining what you need to do to get it running.
Marius's user avatar
  • 198k
13 votes

Magento 2 CSS and JavaScript not loading from correct folder

Here is the simplest solution if showing version name in css path like : pub/static/version323334/ then run this query in mysql INSERT INTO core_config_data (path, value) VALUES ('dev/static/sign',...
Surendra Kumar Ahir's user avatar
13 votes
Accepted

Magento 2 : Running magento 2 on windows using windows subsystem for Linux (WSL)

Introduction: The Windows Subsystem for Linux (WSL) is a new Windows 10 feature that enables you to run native Linux command-line tools directly on Windows, alongside your traditional Windows desktop ...
Vivek Kumar's user avatar
  • 4,965
12 votes

magento install gets to a 500 error

Magento 1.x is not fully compatible with PHP 7, see: Is Magento ready for PHP 7? This specific bug can be fixed, by overriding Mage_Core_Model_Layout and change line 555 from: $out .= $this->...
Fabian Schmengler's user avatar
12 votes
Accepted

Why is my 'magento' directory missing from lib/internal?

I think you did the setup using composer. In a composer installation of magento2 there is no lib/internal/Magento folder instead it is in the vendor folder, "vendor/magento/framework" to be precise. ...
Atish Goswami's user avatar
12 votes
Accepted

enable multiple modules for same namespace

You cannot use wildcards but you can enable all of them from one command like this: php bin/magento module:enable Vendor_MyModule1 Vendor_MyModule2 Vendor_MyModule3
Marius's user avatar
  • 198k
12 votes

enable multiple modules for same namespace

Short answer: Yes, you can. But it is *nix command trick, Magento 2 does not support it by default as Marius answer. You can execute the following command and it can do what you want. php bin/...
Toan Nguyen's user avatar
  • 3,019

Only top scored, non community-wiki answers of a minimum length are eligible