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 ...
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 ...
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
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 ...
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 ...
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 ...
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"
...
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
...
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 --...
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 ...
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-...
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"
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, ...
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/...
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....
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\...
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.
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 ...
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
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
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 ...
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) ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
localhost × 168magento2 × 56
magento-1.9 × 33
database × 17
installation × 17
xampp × 17
magento2.3 × 13
wamp × 11
server-setup × 8
nginx × 6
ubuntu × 6
windows × 6
magento-2.1 × 5
error × 5
theme × 5
cache × 5
php-7 × 5
development × 5
apache × 5
magento-1.7 × 4
php × 4
magento-1.8 × 4
magento-1 × 4
email × 4
base-url × 4