Skip to main content
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
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

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
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

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
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.6k
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,594
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

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: 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.7k
2 votes

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

If all else fails, prune these directories: rm -rf pub/static/* # DO NOT DELETE .htaccess rm -rf var/view_preprocessed/* php bin/magento setup:static-content:deploy This will work if you've got ...
snez's user avatar
  • 744
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

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

After my test, Magento 2 cannot work properly in single domain name, like http://localhost/, http://mysite/, http://localsite/ etc. Other than use the 127.0.0.1 directly, we could change our site ...
Key Shang's user avatar
  • 3,425
2 votes

Tips and tricks for fast Magento2 localhost development

Maximum performance you gets definitely on Linux. OS X also good enough (except case insensitive file system by default). I don't recommend use Windows. Is not supported for Magento and require use ...
KAndy's user avatar
  • 20.9k
2 votes

Zend_Db_Adapter_Pdo_Mysql

Step 1. Navigate to the includes/config.php and comment following lines by adding the # at the beginning of the line. define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src'); ...
Charlie's user avatar
  • 3,136
2 votes
Accepted

Using vagrant and vm for a magento localhost on windows 8.1

First of all ,did you created your virtual host on apache (on vagrant) ? You have to set the documentRoot to your app in your virtual host. Basically u don't need to create your local.xml for an ...
Sony's user avatar
  • 1,154
2 votes
Accepted

Magento 2: How to send emails from localhost?

If highest voted answer's repo doesn't show up than you can use below free extension by MagePlaza to send emails on xampp. https://www.mageplaza.com/magento-2-smtp/
anonymous's user avatar
  • 3,752
2 votes
Accepted

Entire database is not exporting from phpmyadmin in Xampp

I have added the following lines at the bottom of php.ini file on my project max_input_vars = 5000 suhosin.request.max_vars = 5000 suhosin.post.max_vars = 5000 After added this, You must restart ...
Teja Bhagavan Kollepara's user avatar
2 votes

Reinstallation of Magento

Simply log in to cPanel and go to File Manager. Open app/etc/local.xml and note down database name, username, password, and host. Go to PHPMyAdmin and drop all tables under database, which was being ...
Mohit Kumar Arora's user avatar
2 votes
Accepted

How to work localhost correctly? (Magento 2)

Based on your command you are place your project in wrong location. Change: sudo chown myuser:www-data /var/www/magento -R Into: sudo chown myuser:www-data /var/www/html/magento -R Or Else you do ...
Pramod Kharade's user avatar
2 votes
Accepted

Magento 2 : How to check MEQP2 for My Extension

I think it creates an Issue because you are passing cd(change directory) in your command. try to execute without it. And one more thing If you are using Window OS then you need to make sure about ...
Keyur Shah's user avatar
  • 18.1k

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