Questions tagged [setup-upgrade]

Denotes questions regarding Magento Command-line upgrade

Filter by
Sorted by
Tagged with
0
votes
0answers
32 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
8 views

How 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
48 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
11 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
22 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
35 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
18 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
83 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
50 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
18 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
41 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
43 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
102 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
145 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
269 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
72 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
27 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
27 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
47 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
122 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
50 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 ...
4
votes
0answers
224 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
104 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
71 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
312 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
296 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
41 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
121 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
24 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
2answers
1k 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
151 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
29 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
594 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 ...
2
votes
1answer
478 views

Patch isn't working

i'm using magento 2 path system but it's not working, when i do a setup upgrade it doesn't reach my die, could you explain me why ? <?php namespace MyVendor\Company\Setup\Patch\Data; use Magento\...
2
votes
0answers
41 views

Preference for Magento\Setup Classes not working

TLDR - Is there a reason I can't use preference for classes in Magento\Setup namespace, specifically during the setup:upgrade processing, OR is there something I am missing with the following ...
0
votes
1answer
81 views

File Upload as Category Attribute - Magento2

I want to create a custom attribute for Category, which is File Attribute. I want to upload any kind of documents in it. Like PDF,txt, doc, etc,. Anyone helps me to do that via setup Upgrade? Same ...
1
vote
0answers
121 views

Magento upgrade from 2.2.3 to 2.3.0 just blew Cheeze balls .. help

just finshed updating composer update, bin/magento setup:upgrade Cache cleared successfully File system cleanup: /home/pricesplitters/public_html/generated/code/Composer /home/pricesplitters/...
1
vote
2answers
464 views

Error : Cache frontend 'default' is not recognized after upgrade Magento version in 2.2.5

When I ran Setup:upgrade command then below error showing InvalidArgumentException: Cache frontend 'default' is not recognized. in /vendor/magento/framework/App/Cache/Frontend/Pool.php:150 Stack trace:...
0
votes
1answer
104 views

Warning: set_error_handler() expects parameter 2 to be integer, string given in bin/magento on line 21

I have ungraded my Magento 2.2.x Store to Magento 2.3. After upgrade everything was working fine. I have observed a new issue in PHP CLI. Once I run any CLI command I am getting PHP Warning Like ...
1
vote
0answers
69 views

Error after removing database Prefix

I am in the process of upgrading our Magento 2.2.5 website to version 2.3. I have managed to do this and the website works fine, as far as I can tell. However, we have a third party extension for a ...
1
vote
3answers
343 views

setup upgrade in integration after deployment(Magento2 cloud)

When does command setup:upgrade run after the code is deployed to production environment Is there any option to enable this configuration, and schedule when to run this command or it will run ...
1
vote
3answers
256 views

Magento 2 error upon setup:upgrade command

I am trying to upgrade a Magento 2 extension. When I run setup:upgrade, I get the following error, Upgrading data.. No such entity with cartId = 356670 How can I debug where exactly this error is ...
1
vote
0answers
334 views

Magento 2 : Upgrade Data Version of custom module using setup:db-data:upgrade

I created a custom module which has below UpgradeData.php. <?php namespace Akhil\Database\Setup; use Magento\Framework\Setup\UpgradeDataInterface; use Magento\Framework\Setup\...
0
votes
1answer
334 views

How to avoid issue “Unable to find a physical ancestor for a theme”

I have already checked this topic and this one But both them not actually solve 100% my real problem. My theme is installed via composer and it will placed in vendor folder. It's not have any parent ...
0
votes
1answer
181 views

Magento 2.3 setup:upgrade error sql

I used magento 2.3 and meet problem when run command upgrade. It shows: Warning: PDOStatement::execute(): MySQL server has gone away in vendor/magento/zendframework1/library/Zend/Db/Statement/Pdo....
2
votes
3answers
2k views

Magento upgrade from 2.2.3 -> 2.3 error in module-configurable-product

Upgrading M2 from 2.2.3 to 2.3 gives me the following error during the magento setup:upgrade process: PHP Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, boolean given ...
1
vote
2answers
426 views

Magento 2 How to upgrade existing custom customer address attribute?

I have created a module, which creates one custom customer address attribute. In my attribute I have visible true, Now I need to visible false. I need to update that attribute. My code is as below: ...
1
vote
1answer
262 views

Constraint “email_order_to_sales_order” references table that does not exist

When upgrading a site from Magento 2.2.6 to 2.3.0, the following error occurs during setup:upgrade ... Module 'Magento_AdminNotification': Module 'Magento_Search': Module 'Magento_Amqp': Running ...