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 [installer]

The tag has no usage guidance.

0
votes
2answers
47 views

Cretate new table to existing module in Magento2

I have created the module and installed. I forgot to include Setup/InstallSchema.php to create the table first time Once the module is created can we create new table using InstallSchema.php? I ...
0
votes
1answer
51 views

Product attribute create issue magento 2

I am using below script to create product attribute with options. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $setup = $objectManager->get('Magento\Framework\Setup\...
0
votes
0answers
42 views

Translate labels of options from attribute

I try to translate my options label for an attribute using installer. I try this code : $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product', 'my_attribute'...
1
vote
0answers
35 views

Update label option of attribute

I try to update labels options on my size label in an installer. I use the following code : $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByCode('catalog_product', '...
2
votes
1answer
30 views

How to activate a new module in magento 1 this module should create a table

I am trying to activate a new module in Magento 1. Here are my actions step-by-step: I created a new file in /app/etc/modules, called : Mage_ContactMessage.xml : I created a new folder in /app/code/...
0
votes
1answer
210 views

How to add a foreign key with onUpdate Cascade in an M2 installer script?

I want to add a table with a foreign key in an installer script. The foreign key should have ONDELETE CASCADE and ONUPDATE CASCADE set, - but the ->addForeignKey method supports only the ONDELETE ...
11
votes
2answers
6k views

How to setup Magento 2 with Docker

I want to setup Magento 2 with docker and system of containers are ubuntu. Can anyone help me, how to setup docker file?
0
votes
1answer
190 views

Creating custom customer attribute and getting its value issue in Magento 1

This is how i created my custom customer attribute $installer = new Mage_Customer_Model_Resource_Setup('core_setup'); $installer->startSetup(); //$installer->removeAttribute('customer', '...
0
votes
2answers
50 views

Running a data install script using php -f /data-install-0.1.0.php

I'm trying to run this script and I keep getting this error. vagrant@precise32:/var/www/app/code/local/Project/Config/data/project_config$ php -f data-install-0.1.0.php PHP Notice: Undefined ...
1
vote
0answers
54 views

Magento-2 installer not moving beyond step 5

I have been trying to install magento-2 since over a week now but each time the magento installer gets stuck at step-5 ( see attached picture of screen) The next button clicks, but is irresponsive. ...
1
vote
0answers
114 views

New module doesn't create table

My new module cant create a table while i clean core_resource table. Here is my config.xml file: <?xml version="1.0"?> <config> <modules> <Alkos_Flexibleimport>...
3
votes
3answers
2k views

Magento Installer - File Permission Check Fail

I had been struggling with Magento-CE-2_1_3 installation without success. The installation process is always terminated because of the File Permission Check "File Permission Check 4 file ...
1
vote
2answers
67 views

the installer script is not firing magento?

i have setup the resource like the following at config file, <?xml version="1.0" encoding="UTF-8"?> <config> <DigitalHorizons_Att> <version>0.1.0</version> ...
0
votes
1answer
240 views

Module Installer Script not working

Trying to create a custom module with an installer script, I followed this tutorial (with a few edits): http://inchoo.net/magento/magento-install-install-upgrade-data-and-data-upgrade-scripts/ I've ...
0
votes
1answer
970 views

Change Maximum Qty Allowed in Shopping Cart programmaticaly

When I go to System -> Configuration -> Catalog -> Inventory -> Product Stock Options, I can change Maximum Qty Allowed in Shopping Cart. I need to do that in setup script. How to do that via setup ...
6
votes
2answers
2k 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/...
3
votes
3answers
504 views

How to install Magento older version?

I am new to Magento. My theme supports 1.9.2.0 version. Can somebody please provide me with the download link or documentation to install 1.9.2.0 version?
1
vote
1answer
76 views

Magento 2.0.7 Web Configuration failure

When I am installing Magento 2.0.7 the Next button of the Web Configuration page is not working. When i click on Next it stay on the same page, no error message appearing on the page. What should I do?...
0
votes
2answers
324 views

Bitnami Magento 2 Installer - Installed on Azure VM Ubuntu

I'm a new guy on LAMP stack and trying to install Magento from a Bitnami insatller. (Bitnami Magento 2 installer for Ubuntu 14.04 on Azure VM). The installation went very well except that I have to ...
0
votes
1answer
101 views

mysql4_installer not working

following is my config file <config> <modules> <Opco_Planner> <version>1.0.0.0</version> </Opco_Planner> </modules> &...
1
vote
1answer
38 views

how do I bootstrap a mysql upgrade installer?

I would appreciate help on this, I'm having trouble bringing these two together. I am basically familiar with the mysql upgrade process in magento. In a folder's etc/config.xml file you update the ...
0
votes
2answers
33 views

Magento extension Installer automatically Installed on the Site?

I have found some unknown "Package manager extension" installed on the site automatically. If I go to that Extension site I have found that non of there extension is installed on my site, then how ...
1
vote
1answer
240 views

I'm tyring to add image attribute to product by installer

I'm trying to add an image attribute by the following code: <?php $installer = Mage::getResourceModel('catalog/setup', 'catalog_setup'); $installer->startSetup(); $installer->addAttribute('...
0
votes
1answer
215 views

Add multiselect attribute by installer: Wrong values

I am trying to add a multiselect by my install script. This is my code: $installer = Mage::getResourceModel('catalog/setup', 'catalog_setup'); $installer->startSetup(); $options = array(); ...
0
votes
1answer
32 views

Creating a new table in magento using the installer issue

I have created a module, but now i need to create a table in db. this is the content of the Mynamespace/Mymodule/sql/mynamespace_mymodule_setup/mysql4-install-0.1.0.php: <?php /* @var $installer ...
2
votes
4answers
4k views

Magento completely broken: Call to a member function getCode() on boolean & There was no 404 CMS page configured or found

Suddenly (without any changes or updates) our magento installation seems to be completely broken. Every day we're now getting some of this errors: There was no 404 CMS page configured or found when ...
1
vote
2answers
45 views

Magento on live site forwarding to localhost!

i have a problem with the re-setup magento. i download back-up site on Cpanel. and export DB. i want setup to localhost. But it just redirects to the live site. How it works on localhost. I've edited ...
1
vote
0answers
100 views

Installing local tar.gz of magento enterprise with n98-magerun tool

I have this in my .n98-magerun.yaml: commands: N98\Magento\Command\Installer\InstallCommand: magento-packages: - name: magento-ee-1.14.2.1 version: 1.14.2.1 dist: ...
0
votes
1answer
366 views

MySQL Function in installer script

Is it possible to create a function from within a Magento installer script? I currently have the following code: $installer = $this; $installer->startSetup(); $installer->run(" DROP ...
3
votes
2answers
309 views

What's going on in this install script? [duplicate]

I keep running this script and getting a MySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ...
2
votes
1answer
731 views

setup script remove atribute group from attribute set

I have setup script which create a new attribute set. And i need remove attribute groups "Gift Options" and "Recurring Profile" from created attribute set. How can I do this? <?php $installer=$...
6
votes
1answer
145 views

Usage of superfluous (and potentially dangerous) standard code in installer scripts

I always thought it's some kind of epidemic plague that users behave in a high risk manner introducing $installer->startSetup() and $installer->stopSetup() calls in installer scripts. Many of ...