Questions tagged [installer]
The installer tag has no usage guidance.
34 questions
0
votes
4
answers
473
views
Not able to install Google Pay module(unboundcommerce/module-googlepay)
As per the requirement I need to integrate Google Pay in my Magento 2 site. But I am getting an error added below.
Command
php -dmemory_limit=6G vendor/bin/composer require unboundcommerce/module-...
3
votes
4
answers
9k
views
Unable to apply patch Magento\InventorySales\Setup\Patch\Schema\InitializeWebsiteDefaultSock
When running a fresh install I am presented with this error.
This is using the lastest composer package, as per the Magento docs.
[Progress: 113 / 1106]
Module 'Magento_InventorySales':
In ...
0
votes
1
answer
50
views
Extension not installing database values
I installed a free magento extension on two magento sites. both sites are working fine after install, but one site i notice missing some features (the tab in edit category page and it's page)
Then i ...
0
votes
1
answer
263
views
How to override a file in root/setup/src/Magento/ in Magento?
I'm working on a solution that requires adding a bit of functionality to the magento installation process. How do I override a file in root/setup/src/Magento/...
How would i override setup/src/...
3
votes
2
answers
2k
views
Create new table to existing module in Magento2
I have created a new module and installed it, but did not include Setup/InstallSchema.php to create the table first time.
Once the module is created can we create new table using InstallSchema.php?
...
0
votes
1
answer
196
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\...
1
vote
0
answers
78
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
1
answer
445
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/...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
309
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
2
answers
63
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
0
answers
57
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
0
answers
132
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
3
answers
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
2
answers
93
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
1
answer
612
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
1
answer
1k
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
2
answers
6k
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
4
answers
993
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
1
answer
79
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
2
answers
532
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
1
answer
118
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
1
answer
46
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
2
answers
36
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
1
answer
258
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
1
answer
239
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
1
answer
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
4
answers
5k
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
2
answers
52
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
0
answers
121
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
1
answer
584
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
2
answers
316
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
1
answer
905
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
1
answer
153
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 ...