Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

How to change Magento's "var" directory to other place in Magento 2?

I have installed Magento 2 in ubuntu guest / windows host in vagrant, but it is extremely slow. I think a simple change can improve performance, How can I move my Magento's "var" directory to "/tmp/...
user avatar
14 votes
10 answers
8k views

Magento 2 StyleSheet not loading

I have installed magento 2 successfully but frontend side and admin side style is not loading. Even after login to admin it gives not found(404) page Base url in core_config_data:http://localhost.com/...
user avatar
6 votes
4 answers
9k views

Sample data for Magento 2 - PHP memory problem while installing from Composer

Recently I tried to install Magento 2 with sample data and failed. I added the proper package to the composer.json file and when I run composer update it always fails just before finishing downloading:...
user avatar
33 votes
3 answers
16k views

Magento 2: Is there a Profiler?

Does Magento 2 have a profiler? The Stores -> Settings -> Configuration -> Developer -> Debug panel still exists, but there's no settings for a profiler there. If Magento 2 does have a ...
user avatar
  • 43.5k
0 votes
1 answer
3k views

Install Magento 2 with MAMP [closed]

I have MAMP & MAMP PRO. I tried to install Magento 2 beta. When i write "composer install" the system returns me this error: Your requirements could not be resolved to an installable set of ...
user avatar
22 votes
2 answers
6k views

Missing CSS and JS files In magento2 Git Repository

I have Successfully Install the Magento2 But when I try to run Homepage I getting below Errors in the console. Then I have checked in Magento git Ripo https://github.com/magento/magento2/tree/master/...
user avatar
  • 7,189
13 votes
3 answers
11k views

Magento 2 Installation: getting stuck without error at "Installing user configuration."

I have installed Composer and followed the steps to install Magento2. It will be stuck at 93%. It isn't giving any proper error... Please check the image: Also, it will display in configuration, as ...
user avatar
  • 7,189
5 votes
3 answers
38k views

Install Magento 2 on localhost of Wamp at Window System [closed]

As you may be aware about developer beta release of Magento 2. So today I want to install Magento 2 on my WAMP server at Window system, I am failing to install it. I have Googled but I always get ...
user avatar
3 votes
5 answers
14k views

Magento 2 custom module not loading

I installed a local copy of Magento 2 into my XAMPP and have been getting to know the new structure. I have however run into a problem when trying to setup a basic module. I have created the ...
user avatar
  • 1,982
0 votes
2 answers
4k views

Magento2 Installation: Composer PHP version errors on Windows

I tried to install Magento2 on Windows which runs PHP 5.5.19 and MySQL 5.6.X versions (from xampp package) through Composer, but I received the following errors after running composer install (please ...
user avatar
  • 2,071
4 votes
5 answers
13k views

Magento 2 Installation: css/js/images not loading

I am trying to install Magento2(0.1.0-alpha107 ) in my localhost powered by OSX 10.10 + brew installed php-fpm + mysql + nginx. Steps that I followed for installation: mkdir /path/to/magento2 &&...
user avatar
  • 4,592
0 votes
2 answers
971 views

how to place "Orders and Returns" on navigation menu instead of a footer link

i would like to know if theres anyway i can place the "order and return" link and place it in the menu on the navigation bar. Here is my site. Thank you If you notice the order and return link is at ...
user avatar
2 votes
1 answer
800 views

Exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1293 Incorrect table definition when setup Magento 2.0 (0.1.0-alpha107)

Today I set up a version of Magento 2.0 (build 0.1.0-alpha107). But the process has stuck at 23% with error: Exception 'PDOException' with the message 'SQLSTATE[HY000]: General error: 1293 Incorrect ...
user avatar
  • 123
0 votes
2 answers
3k views

Magento2 Installation error - Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' [closed]

I have been trying to install the Magento 2 framework ahead of the upcoming webinar but I have been getting errors. Has anyone been able to install via CLI or the web UI? Here is the error: Parse ...
user avatar
  • 2,443
1 vote
1 answer
1k views

Magento2 Dynamic System->Configuration Comments

In Magento 1.x you could have dynamic comments on system->configuration fields by declaring your field in system.xml like this: <field_code_here translate="label"> <label>Label ...
user avatar
  • 195k
3 votes
1 answer
10k views

How to get URL rewrite Target Path programmatically

I need to get programmatically the "Target Path" field that I have set in the Magento 1.8 Admin Panel, using Catalog -> URL rewrite management. How do I get it?
user avatar
0 votes
1 answer
238 views

Magento2: So close, but Admin won't run

Magento2 has installed successfully. At least IT says so. Calling the localhost domain launches the website properly and everything there looks good. However, when I run localhost/admin I get a 404. ...
user avatar
  • 672
2 votes
2 answers
728 views

Error when using magento2 /setup [closed]

i downloaded magento 2 in github:https://github.com/magento/magento2. when i run setup, it's give me a message: Whoops, it looks like setup tool dependencies are not installed. Please run '...
user avatar
  • 385
6 votes
4 answers
4k views

Magento 2 composer install

Anybody do a successful install of magento 2 only via composer ? I found a nice article here : http://magenticians.com/installing-magento-2-composer but sadly it's outdated. I tried it and I get ...
user avatar
  • 73
1 vote
2 answers
6k views

Magento 2 installation display blank page [closed]

step 1-> magento2 download from https://github.com/magento/magento2 version 0.1.0-alpha101all step 2-> install composer globally using composer windows installer. step 3-> run composer install ...
user avatar
  • 989
7 votes
4 answers
4k views

Magento2 install error iteration

After successfully running composer install under the setup directory and then calling 127.0.0.1:8080/setup in my browser, the Magento Installer runs and I am able to successfully complete the first ...
user avatar
  • 672
2 votes
1 answer
7k views

Errors installing Magento2 [closed]

I'm getting the following error when trying to run the Magento2 installer on my dev host (apache running on :8080 It's a fresh clone of the dev alpha rev 99. Oddly, I installed an earlier rev (...
user avatar
  • 672
103 votes
12 answers
35k views

How can I bootstrap Magento 2 in a test.php script?

In magento 1 I could create a file where I only needed to instantiate the Mage_Core_Model_App class and then I could add my "dirty" code for test purposes. Something like this test.php: <?php //...
user avatar
  • 195k
7 votes
2 answers
3k views

Magento 2 javascript text translations

[EDIT] This is outdated. The translation is not done anymore as described below [/EDIT] In Magento 1 the translatable texts needed in javascript were added in the jstranslate.xml file in the etc ...
user avatar
  • 195k
21 votes
4 answers
19k views

Why aren't Magento developers using Zend Framework 2 for Magento 2?

Magento will continue to mostly use the original Zend Framework (version 1) for Magento 2 (source: Magento 2 and Zend Framework 2 ) Seeing as how Magento 2 will not be backwards compatible with ...
user avatar
5 votes
2 answers
7k views

Admin roles role_type table column

In the admin_role table there is a column role_type that can have 2 values: 'G' - Mage_Admin_Model_Acl::ROLE_TYPE_GROUP 'U' - Mage_Admin_Model_Acl::ROLE_TYPE_USER By their names I jump do the ...
user avatar
  • 195k
3 votes
1 answer
1k views

Unable to Add widget for New products in Hompage Using Magento 2 release alpha96 [closed]

Anybody can guide me on how to display products in homepage in Magento 2? In Magento 2 Backend, Content->Pages->Home Page->Content, I am trying to insert Widget for New products on homepage but I am ...
user avatar
  • 43
1 vote
4 answers
2k views

Product Page - Add Span Class - Price Symbol

I wish to add a simple span class on the product view page for the price. <span class="price-symbol">$</span> <span class="price">$99.90</span>
user avatar
  • 387
10 votes
3 answers
882 views

What (type of) classes are generated in Magento 2?

In Magento 2 there are a set of classes that are generated automatically and stored in var/generation and they are used in the core code. While trying to create a custom module by replicating one of ...
user avatar
  • 195k
2 votes
1 answer
2k views

Magento2 Installation Parse error unexpected T_OBJECT_OPERATOR

I tried installing Magento2 today to try it out. I ftp'd the zipped codebase from github to my server and unpacked it, but when I try to run the installer I get the below error. Parse error: ...
user avatar
  • 4,613
13 votes
2 answers
2k views

Magento 2 product list sorting [closed]

I see that in Magento 2 something changed in the way the page behaves when sorting a product list page or when the number of products visible per page is changed. In Magento 1 there were parameters ...
user avatar
  • 195k
2 votes
3 answers
3k views

How to disable Product Image Popup

In my product detail page, My product image can be Zoom/in and Popup(large image). I only want product image to be "zoom/in" option. How can I disable the popup image ?
user avatar
  • 43
3 votes
1 answer
431 views

Magento 2 schema and pre-schema

I see that in Magento 2 all the xml (config, system, layout files, ...) files have a xsd associated for validation. This seams nice. Now you know what you are allowed to put in each file. But I see ...
user avatar
  • 195k
9 votes
2 answers
2k views

Magento 2 instantiating classes through object manager factory

In magento 2 the classes are instantiated using an object manager factory: \Magento\Framework\ObjectManager\Factory\Factory::create(). So far so goo. But there is something that I don't understand ...
user avatar
  • 195k
48 votes
2 answers
6k views

Magento Event Observers: Singleton versus Model

So Magento offers 2 ways of declaring an observer. Singleton and Model (new instance) by specifying the <type> tag in Magento 1.x and by specifying the shared attribute in Magento 2. Magento 1 ...
user avatar
  • 195k
2 votes
1 answer
3k views

How do I add a css file to the head block in Magento 2 [closed]

I'm building a Magento 2 module for learning purposes. I'm trying to add a css file to all configurable product pages but I'm failing miserably. Here is what I tried. In app/code/Namespace/Module/...
user avatar
  • 195k
5 votes
3 answers
5k views

Magento 2 and Zend Framework 2

Since Magento is planning on using Zend Framework 2, does that mean that all the current extensions that utilize ZF1 are going to break? From what I know about ZF2 and ZF1 is that they are very ...
user avatar
  • 425
19 votes
2 answers
1k views

Magento 2 DI best practices

Let's say I'm building a Magento 2 extension that does....well...not important. Let's say it does super awesome stuff. But I want to make sure that this is build using the proper standards so other ...
user avatar
  • 195k
54 votes
3 answers
23k views

What is the difference between type and virtualType

In the di.xml that comes with Magento2 there is a node type and a node virtualType. My questions is what is this virtualType and in what case should it be used instead of type? In some places it ...
user avatar
9 votes
3 answers
1k views

Does interception in magento2 replace observers in magento1?

Is interception intended to be the preferred method when dealing with changing the behavior of an original method in Magento2 as observers was in magento1? https://wiki.magento.com/display/MAGE2DOC/...
user avatar
  • 607
4 votes
1 answer
1k views

How to return store admin variables in magento2

how simple would it be to do as in magento1 Mage::getStoreConfig('general/store_information/name')
user avatar
  • 607
11 votes
2 answers
21k views

How to instantiate a block in magento2

Is there a simple way as in magento1 : $crumbs = Mage::app()->getLayout->getBlock('breadcrumbs');
user avatar
  • 607
14 votes
3 answers
9k views

How to instantiate a model in magento2?

Is there a way of doing something simple as in magento2? call function like this in magento 2, $model = Mage::getModel('cms/page');
user avatar
  • 607
9 votes
1 answer
16k views

Magento 2 Fatal Error :: Maximum Functions Nesting Level of '100' reached

I got this error after installing Magento 2 on my local machine over wamp software: Fatal error: Maximum function nesting level of ’100′ reached, aborting! in \magento2\lib\internal\Magento\...
user avatar
12 votes
4 answers
7k views

Magento 2 Helper instance

When I think I got my head wrapped around the DI system from Magento 2 something comes up and un-wraps it. I see in the core code different ways to access a helper. For example in Magento\Catalog\...
user avatar
  • 195k
4 votes
1 answer
2k views

SASS in 1.9 - LESS in 2 - Why?

As I familiarize myself with Magento's implementation of SASS, I recalled this bit from the Magento 2 wiki: https://wiki.magento.com/display/MAGE2DOC/CSS+Preprocessing+in+Magento+2#...
user avatar
  • 4,628
0 votes
2 answers
566 views

How to export all the products that are not assigned to any category?

I am looking for a way to export all the products that are not assigned to any category. I know it can be done using XML, but I don't have enough knowledge in XML to create an Action so is there any ...
user avatar
  • 169
4 votes
1 answer
334 views

In what order are theme files processed?

Please note this question is about the yet-to-be-released Magento 2, which I'm still trying to get to grips with. Each module contributes to each layout handle separately. For example, the default ...
user avatar
30 votes
9 answers
47k views

How to change the Admin session time in Magento?

It is possible that sometimes the time that the admin session is active is too short. How to change the time it takes to auto-logoff the user from the back-end?
user avatar
1 vote
3 answers
1k views

Does Magento2 work only on Linux OS?

I am trying to install Magento2 on my local machine but it is not working properly It throws the following error: Fatal error: Maximum function nesting level of '100' reached, aborting! in \lib\...
user avatar
  • 131