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
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
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. ...
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, ...
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 ...
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 ...
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
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 ...
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
{
...
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
...
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\...
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 ...
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 ...
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 ...
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
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 ...
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/...
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 ...
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.
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 "...
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 ...
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!
...
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
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.
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',...
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 ...
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->...
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.
...
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
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/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
installation × 856magento2 × 392
magento-1.9 × 78
error × 77
composer × 69
database × 59
magento2.3 × 45
extensions × 44
magento-2.1 × 39
module × 35
php × 30
setup × 30
theme × 28
upgrade × 25
magento2.4 × 24
php-7 × 21
sample-data × 21
magento-1.8 × 18
admin × 18
magento-1 × 18
docker × 18
permissions × 17
localhost × 17
magento2.2 × 16
css × 15