Questions tagged [setup]

Denotes question related to Magento installation

Filter by
Sorted by
Tagged with
41
votes
7answers
4k views

What are good ways of monitoring a live shop?

Preface: We want to extend the monitoring of one of our webshops as the provider had troubles with the PHP configuration and parts of the live webshop crashed (backend & checkout not working). I ...
22
votes
4answers
19k views

How to use setup scripts for your module?

I realize, you can use setup scripts for your own module by declaring them in the etc/config.xml file of your module within the <global> space like this: <resources> <catalog_setup&...
16
votes
1answer
3k views

Create database table from CSV

I am working on a module that requires access to some tabular data provided from an external source. It's only two columns but has roughly 40000 rows. Currently, my module is just parsing the CSV in ...
15
votes
5answers
2k views

What is the preferred structure of a Magento 2 project under VCS?

When I start a new M2 project, the first thing I would do is to install the core via composer: composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition I ...
13
votes
3answers
23k views

Magento 2 Add “VARCHAR” type field into custom table

Please look at the current core database adapter file(Table.php) located at: magento-2/vendor/magento/framework/DB/Ddl: <?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING....
13
votes
2answers
38k views

When exactly to use php bin/magento setup:upgrade

There are lots of situations in which I change some files in my module in the developer mode but the changes didn't take place in frontend until I run php bin/magento setup:upgrade Just wanted to know ...
12
votes
1answer
1k views

Magento 2: What are `resources.xml` Files Used For?

In Magento 2, one of the XML configuration files a module may have is resources.xml file. For example, the sales module has one #File: vendor/magento/module-sales/etc/resources.xml <?xml version="...
11
votes
2answers
1k views

Magento 2: Upgrading a “Meta Package” Install

A while back, I installed Magento 2 via the composer meta-package. This is also known as the integrator install. This appears to have installed Magento CE 2.0.1. Is there a way to upgrade this ...
10
votes
1answer
22k views

Create Magento 2 Upgrade Script to add/update new field into custom module table

Anybody have any idea/suggestion about creating Magento 2(CE Stable version) Upgrade Script(in custom-module) for adding/updating new field into custom table ? I know about "InstallSchema" but is ...
8
votes
3answers
27k views

Fatal error “Allowed memory size” while run setup:static-content:deploy

I am trying to setup Magento 2.0 (community) in a WAMP server and I am getting the error below all the time while I run the command for deploy the assets static due to symlink issues at Windows ...
8
votes
1answer
9k views

When schema_version & data version will be different?

For example i don't have setup scripts in My module,can i ignore setup_version tag in module.xml file. In m1 automatically modules installed,now it's first throwing an error(if we don't run setup ...
7
votes
3answers
7k views

Best Practice for staging/development site

I am new to magento and have been working a my first site and it is now ready to go live. I have been advised that once live to also build a staging or development site so that i can in the future ...
7
votes
1answer
4k views

Add an image product attribute in Magento 2 in module setup

I've been trying to find an article/question related to the creation of an 'image' type attribute for a product in Magento 2. That is: having just a browse field where the user can upload an image (...
6
votes
2answers
4k views

Magento 2: programmatically run setup upgrade

My Client wants me to write code to : programmatically upload a customized module and then enable the module(php bin/magento module:enable VENDORNAME_MODULENAME) and then upgrade the system(php bin/...
6
votes
2answers
580 views

Gruntfile.js, Autoprefixer and bin/magento setup:static-content:deploy

The vanilla checkout of Magento2 contains a Grunt boilerplate including the autoprefixer task. It works all sweet and dandy (according to our frontend devs). However now as I need to make the whole ...
5
votes
3answers
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 ...
5
votes
6answers
16k views

There are no commands defined in the “setup:static-content” namespace

There are no commands defined in the "setup:static-content" namespace. Did you mean one of these? setup setup:config setup:cron setup:db-data setup:db-schema setup:db setup:di setup:...
5
votes
2answers
7k views

Magento 2 - Setup page not displaying correctly

I am trying to install a magento 2 on an OVH shared hosting with a private sql server. I copied a magento 2 new package and I am currently encountering the following error when trying to launch the ...
5
votes
1answer
5k views

Magento 2 : Upgrade Script Alter Column with Foreign Key via API

In a Magento 2 upgrade script, I wanted to modify (alter) a column to change its comment. Now that column has a foreign key. Whenever I call the modify column method of the setup class, Mysql reports ...
5
votes
1answer
1k views

Set attribute for customer registration form on frontend

I use this code to set the "promotion code " attribute but in some way this attribute is aviable only from admin panel. This is the code : <?php namespace Riccardo\Plugin\Setup; use Magento\...
4
votes
2answers
5k views

Magento 2.3 : How to create product attribute via declarative schema?

How to create a product attribute in Magento 2.3 via declarative schema. I have tried below code but the input element is not visible on the form. <?php namespace Rokanthemes\Updates\Setup\Patch\...
4
votes
1answer
2k views

Blank page instead of setup When install Magento2

Blank page instead of setup When install Magento2 Error : Here
4
votes
1answer
398 views

Setup script can't read base_url

I need to programmatically set a config based on the Magento instances' base_url. I cannot seem to access the base_url from my install/setup script: $installer = $this; $installer->startSetup(); ...
4
votes
2answers
6k views

Magento 2.2.2 Web Setup Wizard not visible in backend

Magento 2.2.2 Web Setup Wizard not visible in backend on Nginx and php7
4
votes
3answers
4k views

show error message through plugin Magento2

Hi i have use a plugin feature in my module to check the zipcode is available in the module or not .Which works fine but on validating i have set the error message like <?php namespace Company\...
4
votes
2answers
1k views

Magento 2: Setup Magento project after clone git repository

I want to set up a git project on my local machine. I have successfully set up the database. I have run git clone command and clone the project from git but some repository is blank. so how can I ...
4
votes
0answers
207 views

How to solve Magento 2.3 Setup Version Errors

When running the command n98-magerun2 sys:setup:compare-versions I'm receiving the following errors: +-------------------------------------+---------+---------+---------+--------+ | Setup ...
4
votes
3answers
4k views

Magento 2.2.4 Web Setup Wizard 'This page isn't working'

I have freshly installed Magento 2.2.4 through softaculous installer in cPanel. After finish installing, Admin > System Web Setup Wizard not working. The link redirects me to ..../setup and it shows '...
3
votes
4answers
2k views

do I have to pay for a private server to get magento to work?

I'm new to magento and am confused about installing it (community ed.). My web provider (123 reg) are saying I need to buy a virtual private server because the memory requirement needs to be on a ...
3
votes
2answers
1k views

InnoDB on MySQL 5.6 with OSX/CE1.7

I am getting this error Database server does not support the InnoDB storage engine. with MySQL 5.6 on my MAC OSX Maverick mysql> show engines; +--------------------+---------+------------------...
3
votes
3answers
19k views

Magento 2 on shared hosting, Vendor autoload is not found. Please run 'composer install'

I am trying to install magento2 on shared hosting environment this is what i did. Downloaded magento .zip archive and uploaded it to server in public_html/magento2 directory. Tried running it in ...
3
votes
1answer
3k views

Magento 2 Get Module Version Outside of the Setup Directory

I am trying to get the version of my Magento 2 module outside of the Setup folder to display in the admin store config area under "current version". I have some code like this. I've tried this using ...
3
votes
2answers
471 views

When did data install/upgrade scripts get introduced

What version of Magento first allowed data install/setup scripts i.e. mymodule/data/mymodule_setup... It looks like in 1.5 CE data scripts do not work - but a cursory look at the core resource setup ...
3
votes
1answer
978 views

phpcs Use ::class notation instead warning on attribute source field

I've created a setup script to load from a source model $eavSetup->addAttribute( \Magento\Catalog\Model\Category::ENTITY, 'location_reference', [ 'type' => 'varchar', ...
3
votes
1answer
999 views

Specific order for patch

I'm new in Magento 2. I create several Patchs in Project/Module/Setup/Patch : Patch 1 Patch 2 Patch 3 I set all my patchs, one by one, with : php bin/magento setup:upgrade In DB, all it's OK : ...
3
votes
3answers
1k views

How To Download Magento 2.2.0 RC Setup using Composer?

I know how to install Magento 2 using composer. Magento lattest release of beta version Magento 2.2.0 - Dev.I don't know how to download or Installation Using Composer. I try to run direct "...
3
votes
1answer
837 views

How to convert install/upgrade schema scripts to db_schema.xml files?

I'm following the guide from Magento DevDocs about the Declarative Schema I created a new module with old setup way (InstallSchema.php, InstallData.php) to test the convert install/upgrade schema ...
3
votes
4answers
3k views

Magento 2.4 Best way setup with Docker environment

What is the best way to Configure Docker environment with Magento 2.4. If some know please give me a solution.
3
votes
1answer
2k views

Why can't I reinstall Module Magento?

I have a module in magento, and the script setup module. Now I want to re-run this script and this module. I deleted the setup of this module in core_resource, and access magento. But the module is ...
3
votes
1answer
1k views

Setup:upgrade doesn't work

I copied my website from localhost to server. For the first 3 days shop worked properly, but now there is an error. http://demo2.ninethemes.net/fastor/magento2/ Please upgrade your database: Run "...
3
votes
2answers
580 views

Magento2 install stuck on file permissions

I am using a fresh version of Magento 2.1 Apache 2.2 I have set my file permissions to 777 on the entire folder I can see that Apache is writing as apache:apache I have chown'd the entire folder to ...
3
votes
1answer
126 views

Minimal Magento2 installation a CMS framework

Just want to setup Magento2 as a minimal CMS framework for an internal project, I am only interested in the following modules: Backend Authentication ACL ORM API I tried to define the magento ...
3
votes
1answer
1k views

add attribute to set when creating during upgrade script

When creating an attribute inside an upgrade script (using class Mage_Catalog_Model_Resource_Setup) Is it possible to also assign the attribute to a specific attribute set only? My code is: $...
3
votes
1answer
250 views

Multistore - Magento 2 Setup

I tried these steps, but nothing happened. I got 500 internal server error https://www.cloudways.com/blog/create-and-configure-multistore-magento-2/ I have 3 domains. The main is beste.nl. The ...
3
votes
4answers
5k views

php bin/magento setup:upgrade

when I install a new theme I do this commands via Putty: php bin/magento setup:upgrade how can I fix this problem? I'm working on Magento 2.1.0 PHP Warning: Uncaught Exception: Warning: ...
2
votes
2answers
3k views

Creating and placing a widget through install script

Can I create a widget instance and assign it to a specific page to appear through install script? I'd like to have some functionality similar to sample contents, but with widgets. To be more specific, ...
2
votes
1answer
4k views

Magento 2 : Running magento 2 on windows using windows subsystem for Linux

Is there some good guide on how to use Linux subsystem provided with Windows 10 to set up and run Magento 2?
2
votes
3answers
4k views

Magento 2 add data to core_config_data

I'm having problems with programmatically configuring Magento 2.1. How can I add data to core_config_data? public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context) { ...
2
votes
1answer
2k views

Changing Domain

I have a live Magento in development. I am connecting to that site by typing the IP address of the site. Now, I just want to make sure if I edit core_config table and switch the base_url and secure ...
2
votes
1answer
109 views

Unable to install magento 2

I downloaded magento2 latest version from https://www.mageplaza.com/download-magento/#download. I pasted the unzipped folder to the htdocs of /Applications/MAMP/ When I started the mamp servers and ...