30 votes

add to cart not working localhost Only in chrome (Magento 2 fresh install )

Change your base URL from localhost to 127.0.0.1. Using localhost as the domain in your base URL causes problems in Magento 2. Magento's base URL configuration is located in the core_config_data ...
Naveenbos's user avatar
  • 1,226
15 votes
Accepted

Local installation of Magento 2 doest not generate files in the pub/static folder

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

add to cart not working localhost Only in chrome (Magento 2 fresh install )

Please change localhost to 127.0.0.1, To change directly from database Goto -> core_config_data table Then change secure and unsecure base url http://localhost/ to http://127.0.0.1
Sheshgiri Anvekar's user avatar
10 votes
Accepted

Magento 2 running so slow on localhost development

I tried everything and the only thing it works is the virtual machine that provides bitnami. https://bitnami.com/stack/magento/virtual-machine Seriously, I don't know what has this vm, but goes ...
Marc Pont's user avatar
  • 1,453
8 votes
Accepted

Magento2 installation problem

Open php.ini file and find the line ;extension=php_intl.dll and remove semicolon (;) and save the file and then restart your xamp or wamp server and refresh the installation page.this error will be ...
Pradeep Sanku's user avatar
8 votes

add to cart not working localhost Only in chrome (Magento 2 fresh install )

Those who don't wish to change the localhost url for this problem. The problem is due to form_key mismatch. The form key which gets posted during add to cart action is getting mismatched with store ...
Franc's user avatar
  • 627
8 votes

Magento 2.4.2 Window10 localhost Xampp 404 not found

Step 1: - We need to set document root to pub, to do this go to file C:\xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/magento24/pub" ...
Sonal- TheCoachSMB's user avatar
7 votes

Magento2 installation problem

Yes, Magento 2 was released today. You're missing a PHP extension. I don't know your setup, but on Ubuntu with Apache you can install the missing extension with: sudo apt-get install php5-intl ...
Silvan's user avatar
  • 1,337
6 votes

Magento 2 install with baseUrl "http://localhost": Can't add product to the cart in Chrome

Just figured it out! Apparently Chrome doesn't play nice with cookies when they are single-level domain (like localhost). Changing my environment to localhost.dev and mapping it in my hosts-file and ...
Giel Berkers's user avatar
  • 12.2k
6 votes

Magento 2 running so slow on localhost development

disable CSS/JS merging and minifying: Stores > Configuration > CSS Settings (Javascript Settings) > Merge CSS (Merge JS) > NO Stores > Configuration > CSS Settings (Javascript ...
Konstantin Gerasimov's user avatar
6 votes

Magento 2 running so slow on localhost development

I found that developer mode disable everything - which was overkill. There's certain aspects I do wish to cache, such as translation. Thankfully in env.php you can still set which caches to use ...
MackieeE's user avatar
  • 232
6 votes
Accepted

How do I install Magento 2 on Mac OSX with Laravel Valet?

I have recently installed Magento 2 on Valet+ on my Mac. Here are the steps I have taken to successfully install it: Install Homebrew if you don't have it on your Mac already Install PHP 7 brew ...
Kalpesh's user avatar
  • 2,325
6 votes

Error Incomplete installation

This is very common in localhost installations. Follow the below to fix the issue Find validateURLScheme function in below file vendor\magento\framework\Image\Adapter\Gd2.php file at line 96. ...
Mayur Sisodiya's user avatar
5 votes

Local installation of Magento 2 doest not generate files in the pub/static folder

Try to run below command php bin/magento setup:static-content:deploy And if it gives any error while running this command, like file missing as you already said ,then compare your project file ...
Keyur Shah's user avatar
5 votes

Magento 2, website redirecting to localhost

update values using built-in console commands (substitute your domain name): php bin/magento setup:store-config:set --base-url="http://awesome-domain.dot/" php bin/magento setup:store-config:set --...
Zippp's user avatar
  • 151
5 votes

Magento 2, website redirecting to localhost

moving files and database I assume these two steps are obvious: copy all of your local files to production server dump your magento local db and import it into your production server db editing in ...
Denish Vachhani's user avatar
4 votes

Magento 2 running so slow on localhost development

Suggestions from Magento posted after this question was answered. Reading other answers I think this information could be a helpful addition http://devdocs.magento.com/guides/v2.2/extension-dev-...
Ian at SSU's user avatar
4 votes
Accepted

magento Error on mail send

Download cacert.pem file from following link https://curl.haxx.se/docs/caextract.html open php.ini file and paste following path in php.ini file openssl.cafile="c:/xampp/cacert.pem"
Chirag Gondaliya's user avatar
4 votes

Css and Js files are not loading in admin panel and storefront

Follow below steps: Make new static folder under pub folder and copy .htaccess file from old pub/static folder to new static folder. Run query in database : INSERT INTO core_config_data (scope, ...
mighty_hk's user avatar
  • 693
4 votes
Accepted

Magento 2: Templates are not working correctly

Check below solution, May be helpful to you. You have created Gregt/Hello/controller/index - index.php And Gregt/Hello/block - helloworld.php Also layout file wrong, It should be Gregt/Hello/view/...
Suresh Chikani's user avatar
4 votes

Magento 2: Templates are not working correctly

You did a small mistake <?php echo $this->getHelloWorldTxt(); ?> Should be <?php echo $block->getHelloWorldTxt(); ?> Also have to change name="helloworld" template="helloworld....
Amit Bera's user avatar
  • 77.2k
4 votes

Magento 2.3.0 - Multi Website Store URL Return 404 error

Check that you have enabled To include the store code in URLs as explained in user guide here. Try to either the .htaccess or index.php override. So you can remove, $params[\Magento\Store\Model\...
Milind Singh's user avatar
  • 1,554
3 votes

fatal error: Call to a member function getCode() on boolean

Maybe this problem is with local.xml configuration's file. I had the same problem I fixed creating a new one.
CesarScout's user avatar
3 votes

Magento 2: How to send emails from localhost?

You can use the SMTP for this. And for SMTP configuration you can use any extension. https://github.com/emizentech/custom-smtp-magento2 From this extension you can configure your SMTP detail in admin ...
Ashish Jagnani's user avatar
3 votes

Magento 2: Templates are not working correctly

Controller path should be like this: app/code/Gregt/Hello/Controller/Index/Index.php in execute() try to put inside return "Hello"; Call this path : domaine.com/helloworld and see If you see Hello
PЯINCƎ's user avatar
  • 11.6k
2 votes
Accepted

Magento products are not showing

use this System-> Configuration -> left menu you can find web-> under that Use Web Server Rewrites-> set no
Magento 2's user avatar
  • 3,834
2 votes

Magento Front-End Nothing Display.

Change the base Url for both secure and unsecure front end. Change the database connections in local.xml Try to clear the cache and session folder. If any licensed extension then change the license ...
chandra sekar's user avatar
2 votes

Magento 2, website redirecting to localhost

It seems Magento 2 has a default hostname "localhost" somewhere. Normally you should be able to run Magento 2 without setting the Base URL. But I've just encountered various instances (Magento 2.0.4) ...
Jisse Reitsma's user avatar
2 votes

Magento on localhost forwarding to live site

There are quite a few things to check for this, most have been covered, but the really tricky ones you won't find in most places. Most Common A redirect, such as an apache server hidden .htaccess or ...
KazaJhodo's user avatar
  • 303
2 votes

Local installation of Magento 2 doest not generate files in the pub/static folder

Looks like intl extension is not loaded in you console version of php. Please verify that you use same version/settings for apache and cli version of php. MacOsX has preinstalled version of php and ...
KAndy's user avatar
  • 20.8k

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