Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

Filter by
Sorted by
Tagged with
0
votes
1answer
39 views

Magento 2.3.4 error after setup:upgrade command

Fatal error: Uncaught ReflectionException: Class Magento\Framework\App\ResourceConnection\Proxy does not exist in /var/www/html/magento2/vendor/magento/framework/Code/Reader/ClassReader.php:26 Stack ...
0
votes
1answer
73 views

Magento_Amqp and Magento_MysqlMq errors during setup:upgrade

I have M2.3.4 and Porto 3.2.3 installed. I've recently changed Quickview modules and now when I run setup:upgrade, i get 2 errors: Magento_Amqp: Topic "inventory.source.items.cleanup" is not ...
0
votes
1answer
25 views

Error running setup:upgrade : Base table or view not found: 1146 Table 'db.inventory_low_stock_notification_configuration' doesn't exist

I'm using Magento 2.3.4 and i disabled all Magento 2 inventory extensions, when running php bin/magento setup:upgrade, i encountered this error: Schema creation/updates: SQLSTATE[42S02]: Base table ...
0
votes
3answers
54 views

Zero downtime deployments

I'm using Magento 2.3.4 open source and I am looking into how I can achieve zero downtime The build commands I normally use are: php bin/magento maintenance:enable composer install --no-interaction ...
0
votes
1answer
22 views

Why does Magento Setup:Upgrade fail when ConfigurableSampleData module is updating?

I have attempted installing Magento in several ways. With and without sample data. This last time I have installed primarily using the CLI method however when I attempt to install sample data and I ...
1
vote
1answer
112 views

Upgrading from v2.3.0 to 2.3.4

I need to upgrade a Magento instance from v2.3.0 to v2.3.5 later this month. I'm wondering if I need to upgrade to v2.3.1 and run setup:upgrade first, and then repeat for v2.3.2, v2.3.3, v2.3.4 ...
0
votes
0answers
36 views

Patch Not Working

Patch File: Bedard/CustomGloves/Setup/Patch/Data <?php namespace Bedard\CustomGloves\Setup\Patch\Data; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\Patch\...
0
votes
0answers
11 views

Running data recurring [duplicate]

crated data patch but it stucks on setup:upgrade Running data recurring... my code is <?php declare(strict_types=1); namespace DevAll\ExtensionSettingConfig\Setup\Patch\Data; use Magento\...
0
votes
0answers
23 views

I created data patch, setup:upgrade never finishes

I have created data patch, After I run setup:upgrade it does the job but never finishes setup upgrade command . https://i.imgur.com/Mhilmgd.png https://i.imgur.com/GtUDbLV.png the Data patch itself ...
0
votes
0answers
34 views

Getting error : Missing required argument $typeFactories

While Updating Magento 2.2.7 to 2.3.0 through composer when I am running below command bin/magento setup:upgrade I am getting below error : Updating modules: Missing required argument $...
0
votes
2answers
19 views

Installation error on linux 2 aws?

Updating modules: Connection "default" is not defined When I run Upgrade command I am getting this error?
2
votes
2answers
81 views

Magento 2 Setup:Upgrade giving error of Cannot add foreign key constraint

I have moved my website files and DB from one server to another. Now, When I am running setup:upgrade command. I am getting below error: Updating modules: Schema creation/updates: SQLSTATE[HY000]: ...
0
votes
0answers
21 views

Magento 2: “Area code is not set” after setup:upgrade

I updated composer modules via composer:update and wanted to update magento by using setup:upgrade command. It fails with this error message: Updating modules: Area code is not set [Magento\...
0
votes
1answer
27 views

Magento 2 - Trigger “php bin/magento setup:upgrade” from backend

Is it possible to trigger php bin/magento setup:upgrade from the backend? I need to give the company "Amasty" access to our project, so that they can debug a bug in their module, but I am not ...
0
votes
2answers
121 views

Magento 2.3.2: Database prefix error running setup:upgrade

I tried to install MailChimp extension through Composer, but when running setup:upgrade I received a database error. Assuming that the problem was in the extension, I restored the backup I made just ...
0
votes
0answers
67 views

Magento 2.3.3 Setup upgrade throwing error

I am using Magento 2.3.3 and i am facing the following issue while setup:upgrade SQLSTATE[42000]: Syntax error or access violation: 1068 Multiple primary key defined, query was: ALTER TABLE ...
0
votes
0answers
37 views

How to change quote table customer_note column type to text

I tried to update the quote table customer_note column type to text using setup script and schema patch. Column type updated after run setup:upgrade but when I run setup:upgrade the second time then ...
0
votes
1answer
65 views

Magento EE upgrade from 2.2.9 to 2.3.4 issue

I have upgraded Magento from version 2.2.9 to 2.3.4 using the composer. And run the setup: upgrade, then I am getting below error. SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add ...
0
votes
0answers
17 views

Enabling additional debug info in exception/debug log during setup upgrade (CLI)

Please, I am looking for a solution to have some advanced logging in the exception log. In context: I am encountering an error in CLI during setup: upgrade: SQLSTATE[42S02]: Base table or view not ...
0
votes
1answer
35 views

Modification to .phtml does not render

In content/page homepage I insert a widget from the porto theme: {{block class="Smartwave\Filterproducts\Block\Home\LatestList" name="latest_product" product_type="4" product_count="50" category_id="...
1
vote
2answers
43 views

Magento 2 - I am facing this every time I run upgrade and deploy command after applying changes

Each time I deploy some changes and run, upgrade compile deploy reindex cache clean commands I face these issues? Anyone ?? I have deployed child theme and after that, I have run these commands
0
votes
1answer
19 views

installing project on clean database

I have created data patch It was working fine locally Unable to apply data patch Devall\SpecialPrice\Setup\Patch\Data\AddLabaCenaAttribute for module Devall_SpecialPrice. Original exception message: ...
1
vote
2answers
150 views

How to create multiple customer attributes in magento 2?

How to create multiple customer attributes in Magento 2 using InstallData or UpgradeData? <?php namespace DeviMage\CustomerAttribute\Setup; use Magento\Customer\Model\Customer; use Magento\...
1
vote
1answer
55 views

Setup:upgrade error after upgrade to Magento 2.3.3

I just upgrade my Magento 2.2.5 to 2.3.3 , and After running bin/magento setup:upgrade i got the following error: Warning: Illegal string offset 'max_items' in vendor/magento/framework/App/Config/...
1
vote
0answers
24 views

Magento 2.3.3 Duplicate entry '15-Images' after upgrade

I'm currently trying to upgrade data and one of my modules is throwing an obscure error about duplicated entry eav_attribute_group when I'm trying to install some product attribute, I have installed ...
1
vote
0answers
63 views

When try to use bin/magento setup:upgrade Getting Error

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Setup\Declaration\Schema\Diff\SchemaDiff::diff()must be an instance of Magento\Framework\Setup\Declaration\Schema\Dto\...
1
vote
0answers
57 views

Cannot process definition to array for type json after updating magento 2.2.3 to 2.3.3

I am upgrading magento 2.2.3 to 2.3.3 via command line after running this command php bin/magento setup:upgrade but I am getting this error: Cannot process definition to array for type json what ...
0
votes
0answers
172 views

Unable to apply data patch: elasticsearch6

Unable to apply data patch Magento\CatalogSearch\Setup\Patch\Data\SetInitialSearchWeightForAttributes for module Magento_CatalogSearch. Original exception message: Indexer handler is not available: ...
0
votes
1answer
178 views

Magento 2.3.3 Install sample data error on setup upgrade

I got the following error on setup:upgrade after installing sample data in Magento 2.3.3 Error is thrown on Module Magento_CatalogSampleData PHP Fatal error: Uncaught Exception: User Error: Some ...
1
vote
1answer
427 views

Integrity constraint violation on setup:upgrade Magento 2.3.3

After updating to 2.3.3. I get the following error for the Temando_Shipping module. I disabled the module but that gives errors when editing products. When I try to enable and run 'magento setup:...
0
votes
1answer
109 views

After upgrade to 2.3.3, got SQLSTATE[23000]: Integrity constraint violation: 1022 when trying to run bin/magento setup:upgrade

I just upgrade to Magento 2.3.3 from Magento 2.2.9 following these steps (https://magento.stackexchange.com/questions/251778/how-to-upgrade-magento-version-from-2-2-x-to-2-3-0). However, at the step ...
1
vote
0answers
28 views

Upgrading Magento and missing files

If I do the following php bin/magento maintenance:enable composer require magento/product-community-edition 2.3.3 --no-update composer update rm -rf var/di var/generation php bin/magento cache:flush ...
0
votes
0answers
20 views

Git - bin/magento setup:upgrade ruining my branches

each time I create a new module, I understand I have to run bin/magento setup:upgrade to make it work. Thing is, this modifies a ton of files in my branch making it unusable. It is filled with ...
0
votes
0answers
28 views

setup:upgrade command is not running

I am using magento 2.3.2 and installed the theme and enable the theme module but i am not able to run the php bin/magento setup:upgrade command. please check the below image Any Solution please Note:...
0
votes
2answers
54 views

Magento 2: Error in setup:upgrade in magento 2

I am getting the following error during setup:upgrade: EDIT SQLSTATE[42S22]: Column not found: 1054 Unknown column 'entity_id' in 'NEW', query was: CREATE TRIGGER ...
0
votes
1answer
157 views

Magento 2.3.x setup:upgrade fails after sample-data installed

I have a clean Magento 2.3.2 in docker container. After I installed sample data with bin/magento sampledata:deploy I cannot run setup:upgrade anymore even with --keep-generated parameter: Module '...
0
votes
2answers
64 views

SQL error when run command line upgrade Magento 2

When I run the following commmand: php bin/magento s:up; It throws the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'admin_magen34.mg7a_sm_products_filter' doesn't ...
5
votes
0answers
409 views

setup:db:status still reports “Declarative Schema is not up to date” after update

Since an update to Magento 2.3 I am experiencing the following issue: bin/magento setup:db:status Declarative Schema is not up to date Run setup:upgrade to update your DB schema and data. Although ...
2
votes
2answers
117 views

No region found within the locale 'en' while running UpgradeData.php

I'm trying to set up 2 stores I created using InstallData script, but When I run php bin/magento setup:upgrade, I'm getting an error No region found within the locale 'en' and the process stops. What ...
1
vote
1answer
79 views

Magento2.3 module upgrade not working

I just upgraded from Magento2.2.5 to 2.3.2 and now when I try to go to the site I get a bunch of errors written to the exceptions log file about modules versions being incorrect. For example ...
0
votes
0answers
371 views

PHP Fatal error: Uncaught Error: Cannot instantiate interface in magento 2

I'm getting an error while running bin/magento setup:upgrade or any command from CLI. PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework \Cache\FrontendInterface ...
0
votes
1answer
343 views

Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE `catalog_category_product_index_tmp`

Integrity constraint violation: 1062 Duplicate entry '3-2-9' for key 'PRIMARY', query was: ALTER TABLE catalog_category_product_index_tmp ADD CONSTRAINT PRIMARY KEY (category_id,product_id,store_id), ...
0
votes
1answer
43 views

Error on creating UpgradeSchema.php

<?php namespace Essence\Slider\Setup; use Magento\Framework\Setup\UpgradeSchemaInterface; use Magento\Framework\Setup\SchemaSetupInterface; use Magento\Framework\Setup\...
0
votes
1answer
169 views

Unknown column 'entity_id' in 'OLD' in setup:upgrade after 2.3.2 migration

Recently I migrate a site to Magento 2.3.2. composer update run fine and without a problem. But, when I run a php bin/magento setup:upgrade it throws this error: Column not found: 1054 Unknown column ...
3
votes
5answers
2k views

php bin/magento setup:upgrade issue

Type Error occurred when creating object: Magento\Framework\Locale\Resolver when I run this command this error shows. I am using third party theme. Already tried deleting generated and var/di
0
votes
1answer
28 views

Remove category attribute script not working in magento 2.3.1

Hi I am trying to remove the category attribute using Uninstall script but it is not working. Here is my code. Setup\Uninstall.php <?php namespace Company\Module\Setup; use Magento\Eav\Setup\...
2
votes
4answers
2k views

Magento 2: Error undefined index while upgrading M 2.2.5 > M 2.3.1

While running bin/Magento setup: upgrade command I am facing this error. Schema creation/updates: Notice: Undefined index: core_store in /data/websites/website_url/public_html/vendor/magento/...
1
vote
2answers
162 views

Upgradeschema.php and UpgradeData.php scenarios

Points: 1.In my case i created a 'Customer Provident' product using upgradeData.php with version 1.0.3 and module version also 1.0.3 and it's created successfully. 2.Second time i wrote ...
1
vote
1answer
31 views

Cron script error on readness check

> Check Cron Scripts Cron script readiness check failed. Hide detail > > Error from Updater Application Cron Script: > > Found non-writable path(s): /var/www/html/pub/media/.htaccess &...
4
votes
1answer
893 views

Changing encryption key on Magento 2.3 | secret key size should be SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_KEYBYTES bytes

Magento 2.3 has introduced a new encryption method and requires the encryption key to be 32 characters long / 32 bytes in size. If you run a setup:upgrade with a wrongly sized encryption key you will ...