Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

1
vote
5answers
2k views

Getting Error in Magento 2.1 add to Product in Admin

I have created a new product in Magento 2.1 admin. I am getting the error shown below: Warning: Illegal string offset 'is_in_stock' in [...]/vendor/magento/module-catalog-inventory/Ui/DataProvider/...
5
votes
1answer
1k views

Something went wrong with the subscription alert in Magento2

I have a clean Magento 2.1.0 installation running on my server, and for some reason the newsletter subscription box keeps displaying the following error: "Something went wrong with the subscription." ...
7
votes
3answers
2k views

Magento 2.1 admin logged in issue in session

If I logged in admin side by chrome.then if when I logged-in successfully in Mozilla for same magento instance in magento2.1 then I automatically log out in chrome and throw message Someone logged ...
1
vote
1answer
2k views

Console Command: Area code must be set before starting a session

I am trying to get a list of orders from the OrderRepository (Magento 2.1) via a console command and am using code as follows... ... public function __construct( \Magento\Framework\Model\Context ...
3
votes
3answers
2k views

Magento 2.1 Theme option not available in Store > Configuration > General > Design

I installed Magento 2.1 successfully.But When I go Store > Configuration > Design,theme option not avaiable.I tried pub deploy and flush cache and reindex command but theme option not available in ...
2
votes
1answer
5k views

Magento 2 “Recoverable Error: Argument 2 passed” when trying to define model in constructor

I am trying to define 2 models inside controller constructor to use it later inside execute function. This is my code: namespace Company\Modul\Controller\Adminhtml\Index; use Magento\Backend\App\...
0
votes
0answers
1k views

extending Adminhtml Product edit page in Magento 2

In Previous Magento released versions (2.0.*) I have successfully extended and it's working fine. When comes to Magento 2.1.0 the same functionality not working. I have tried below code. If I went to ...
0
votes
1answer
1k views

Magento 2.1 Web setup wizard missing in backend

Running Ubuntu 16,04, Nginx, Mariadb, phpmyadmin, redis and Magento 2.1 GA Why am I missing web setup wizard in backend?
0
votes
1answer
886 views

How to display some module (<block>) at a particular page (main)

Problem There is properly working custom module (as far as I'm concerned), that outputs map. I need to display it only at main page at the content container. Now it outputs at every page content ...
15
votes
1answer
5k views

The configuration parameter “componentType” is a required for “advanced_pricing_button” component. | Upgrade Magento 2.0.7 => 2.1.0

After a lot of issues I managed to update Magento 2.0.7 => Magento 2.1.0 After checking the upgrade I see 2 issues: 1. The frontend is not displaying any products. 2. When I want to edit the products ...
1
vote
2answers
271 views

Custom Attribute no longer available in the TopMenu since Magento 2.1

In a Module I configured my custom attribute redirect_url for categories to be included in the collection using catalog_attributes.xml This seems to no longer work in Magento 2.1 My module defines ...
0
votes
1answer
203 views

Call to undefined method Mock_AbstractDb_87c49d8f::setStoreId() on getCollection() in Test

I am trying to create a test to see if What is the equivalent of the config node category/collection/attributes in Magento 2 to add an attribute to the category collection works. I use a ...
21
votes
1answer
4k views

Magento 2: what are the Interceptors file in var/generation?

So I noticed some Interceptor.php files in var/generation I know that this folder contains generated classes created on the fly for the following: Factories Proxies Plugins I assume that ...
1
vote
2answers
7k views

404 Error. Magento2 admin page not working

Problem Was creating a module. Everything was good, but at some point admin page just stopped working. Can't say on what paticular moment, cause I used bin/magento to flush caches, compile and deploy....
3
votes
1answer
806 views

Magento2 REST auth help needed

I'm hanging on this issues for nearly a week and cannot find any sollution. I'm trying to send a REST request to my new Magento2 store. It worked allready, but then the oauth/token forced ...
10
votes
2answers
3k views

Magento2.1 Category custom attribute dropdown

Steps to reproduce 1. Module UpgradeData.php script contains: $categorySetup->addAttribute(Category::ENTITY, 'roflcopter', [ 'type' => 'int', 'label' =&...
1
vote
2answers
943 views

Upgrading from Magento 2.0.7 to 2.1.0 can no longer run the CLI

While the upgrade process worked fine on my development system, when I attempted to perform the upgrade on the live database I could only get as far as updating composer. After this was successfully ...
0
votes
2answers
911 views

Error When Installing Data Migration Tool

I am getting the following error when trying to install the data migration tool composer require magento/data-migration-tool:2.1 Problem 1 - The requested package magento/data-migration-tool 2.1 ...
1
vote
0answers
142 views

Magento 2.1 - Cancel an order [ configurable product ] issue

I'm so confused about cancelling orders in Magento. I made an issue post in Magento2 github repository explaining my problems. 1st issue : NB : All the products are configurable The test products :...
5
votes
1answer
3k views

How is product data passed from a Block to knockout template?

I'm investigating loading some product images via knockout templates. While looking for an example from the core I saw the minicart has this behaviour but right now I don't fully understand how the ...
3
votes
1answer
1k views

Magento 2.0.7 to 2.1 - Error in Review Order Page - “We cant place the order”

Steps to reproduce Install Magento 2.1 Add any product to cart Hit Go TO Checkout Select Checkout with Paypal Option Login and Hit PayNow Expected result After Hitting PayPal Pay Now button - ...
4
votes
2answers
3k views

magento 2.1 checkout tab “shipping” missing

I have two sites: local under windows/xampp and remote server under linux with magento 2.1 updated. Local site has two tabs at checkout - "Shipping" and "Rewiew and payment" And server site has only ...
8
votes
2answers
1k views

Magento 2: virtual types plugins

I'm confused by Magento 2 documentation regarding plugins: It is first said that: Plugins cannot be used with virtual types But then it is said that: You can specify a class, interface, or ...
0
votes
1answer
2k views

How do I determine why Sitemap isn't being generated?

I have a mostly vanilla instance of Magento 2.1 (previously Magento 2.0.x - where the problem also existed). I have setup the Sitemap file to generate - and it is not doing so. So far, for debugging ...
8
votes
2answers
5k views

Magento2 Need to build Grid with multiple table collection using UI Components

Started on building custom module, it has feature to display the GRID view for which need to join multiple tables in collection and render them on GRID and filters. I have used UI Component from ...
4
votes
1answer
1k views

how to migrate custom code from magento 1.9.2 to magento 2.1

I have created custom modules in Magento 1.9.2,Now I am moving into Magento 2.1. So I need to transfer custom code from Magento 1.9.2 to Magento 2.1. Please help me.
1
vote
1answer
2k views

install Magento 2.1 Error 404 after success installation

Installation from the download Page and the right ownership from there Ubuntu 16.04 PHP 7.0.8 MySQL 5.7.12 Apache 2.4.18 with configured VirtualHost And after installation I see the success page. ...
2
votes
1answer
131 views

Release Download Rest-API broken?

I am trying to download the current magento 2.1.0 release: curl https://MAGEID:TOKEN@www.magentocommerce.com/products/downloads/info/filter/version/2.1.* Output: Magento Community Edition 2.1.0.zip ...
1
vote
1answer
1k views

Upgrade to 2.1 breaks grunt theme fallback?

Since the upgrade to 2.1 I get the following error on grunt exec:mytheme: $ grunt exec:mytheme Running "exec:mytheme" (exec) task Running "clean:mytheme" (clean) task >> 231 paths cleaned. ...
0
votes
1answer
125 views

Why magento2 use UI components in Recent release of magento2,1[product edit page]?

In recent version of magento (Magento2.1), they have totally changed structure of product edit page (Backend). I mean they had replaced with UI components.(While in previous version of magento2.X they ...
4
votes
3answers
1k views

How to change the number of items per row in products grid?

How to modify magento 2 to show 3 items per row in product grid instead of the default 4? I tried to play with /var/www/magento2/vendor/magento/theme-frontend-luma/Magento_Catalog/web/css/source/...
2
votes
2answers
3k views

Adding custom product customizable option in Magento 2.1

I am looking into the way the new custom options works in Magento 2.1, looking through it, their doesn't seem to be an obvious way to inject your own uiComponents into this, since it is all written in ...
2
votes
2answers
1k views

Logging to custom file is not working from module helper

I wanted to wrap the logging functionality in my module helper. I have defined Custom Logger as: File: app/code/MagePsycho/CustomLogger/etc/di.xml <?xml version="1.0"?> <!-- /** * @...
1
vote
1answer
384 views

Can not excute command line in magento 2.1 with xampp php 7.0.6 on window

I have installed magento 2.1.0 with latest xampp window 7.0.6. The strange thing is I can not run command line after successful installation magento 2.1. It happens due to wrong PHP_VERSION_ID (on ...
9
votes
4answers
12k views

Magento 2.1 missing Web Setup Wizard link

Installed fresh Magento 2.1 store (php 7.0.8), with /pub as root web directory from command line and using tar.gz file. Everything seems to be fine, but when I go to admin panel under: System -> Tools ...
1
vote
0answers
308 views

Magento 2.1 EntityManager getList without Collection

From my understanding, the classic Magento Models will be deprecated in favor of the new EntityManager. Loading and Saving Simple Objects is no problem so far, but currently, I'm stuck with loading ...
31
votes
2answers
3k views

Magento 2 - Why is Magento\Checkout\Model\Cart deprecated?

Since Magento 2.1, Cart has a @deprecated tag. Nevertheless, it is still used by Magento itself to store products when shopping. Is the deprecation intended, and if so, and what should we use instead?
3
votes
1answer
1k views

magento 2.1 how to switch to default design “luma” or “blank”?

I have installed custom theme in magento and need to check working of fuctionality inside clean magento. But I couldn't find how to change design. At the image attached you can see "Search Robots" ...
3
votes
0answers
136 views

products became “out of stock” after update from 2.0.7 to 2.1.0

After updating from 2.0.7 to 2.1.0 all the products in catalog became "out of stock". That's how they displaying in my bestseller widget (pic.1). But in admin panel they always have positive ...
2
votes
3answers
1k views

Composer Update Error: magento/product-community-edition 2.1.0 requires php ~5.6.0|7.0.2|~7.0.6

Trying to do an update to Magento 2.1.0 via composer and getting this weird error. Php version is 7.04 running on Ubuntu x64 composer require magento/product-community-edition 2.1.0 --no-update ./...
1
vote
2answers
2k views

Unable to upgrade to Magento 2.1.0 GA via command line

I've already applied the patch MDVA-532. When I run composer update magento/magento-composer-installer I got this error: Your requirements could not be resolved to an installable set of packages....
10
votes
1answer
4k views

How to change theme in Magento 2.1rc3?

I tried both Magento v2.1rc3 and Magento2 develop version from git repository. Problem is that when I tried to change Magento 2 theme, I followed below steps: Open BO -> Stores -> ...
5
votes
2answers
3k views

Magento 2: How to use Grunt properly for CSS changes

I'm trying to figure out the clusterf-ck which is the Magento 2 front-end theming workflow. And I've read and understood all documentation, read all the blogs about it and are up to date on the latest ...
0
votes
2answers
2k views

Magento 2.1 - Just (simply) call categories in PHTML

Before we could do something like this: $_categories = Mage::helper('catalog/category')->getStoreCategories(); foreach($_categories as $_category): echo $_category->getName(); endforeach; ...
4
votes
3answers
943 views

Magento 2: why 2.0 sample data are not compatible with 2.1?

Magento 2.1 Release Candidate 2 was released yesterday: http://devdocs.magento.com/guides/v2.0/release-notes/ReleaseNotes2.1_RC2CE.html And according to the release notes: You cannot update from ...
4
votes
3answers
985 views

How to upgrade magento to 2.1.0-rc1 via composer?

I need to upgrade version of my magento base inside store. All the vendors I'm getting via composer and git contains only my /app/code and /web/composer.json. Current version is 2.0.7 and needed ...
1
vote
1answer
939 views

Magento 2.1-rc1 How to customize Topmenu Html Markup

Like in Magento1, the Topmenu html structure is still pretty hardcoded. To change the html markup of the submenus in 2.0, I added a plugin which altered the getHtml Method of Magento\Theme\Block\Html\...
3
votes
4answers
3k views

Magento 2.0 vs 2.1: what are the major/breaking changes?

As you may be aware, 2.1 RC1 was released last week as well as 2.0.7 yesterday. I know 2.1 implies a lot of changes. My question is, as a developer, which are the changes I should be aware of and ...
0
votes
1answer
693 views

How to upgrade to Magento 2.1 RC 1 when Magento 2 is installed via GitHub

Ok so I'm running Magento 2.0.6 and I have installed it via the GitHub repo. So as I cannot use the backend upgrade tool, when I upgrade Magento 2 I'm used to run the following: git pull origin ...
9
votes
2answers
5k views

Why doesn't Magento 2.1 support PHP 7.0.3 to 7.0.5?

As you may know Magento 2.1.0 is out. According to the release notes, only PHP 7.0.2 AND PHP 7.0.6 are supported Why aren't PHP 7.0.3 / 7.0.4 / 7.0.5 supported ? Edit: 2.1.2 now supports PHP 7.0.4