Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3e6103

Browse files
authored
Merge pull request magento#8811 from magento/pull/8811
UCT: add "Troubleshooting" section
2 parents d9d42d8 + 7479050 commit f3e6103

File tree

1 file changed

+31
-3
lines changed
  • src/upgrade-compatibility-tool

1 file changed

+31
-3
lines changed

src/upgrade-compatibility-tool/run.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The Upgrade Compatibility Tool provides a report identifying the affected non-Ma
8888

8989
#### Example with a list of errors/warnings
9090

91-
```php
91+
```terminal
9292
File: /app/code/Custom/CatalogExtension/Controller/Index/Index.php
9393
------------------------------------------------------------------
9494
@@ -114,7 +114,7 @@ The lower this number is, the easier is to perform the upgrade.
114114

115115
#### Example of a summary report
116116

117-
```php
117+
```terminal
118118
------------------------ --------
119119
Installed version 2.3.5
120120
Magento version 2.4.1
@@ -134,9 +134,37 @@ Regarding the GraphQL schema compatibility comparison, the output would be very
134134

135135
#### Example with a list of errors/warnings for GraphQL
136136

137-
```php
137+
```terminal
138138
* [ERROR] FIELD_CHANGED_KIND: ConfigurableProduct.gender changed type from Int to String.
139139
* [WARNING] OPTIONAL_INPUT_FIELD_ADDED: An optional field sku on input type ProductAttributeSortInput was added.
140140
```
141141

142142
See [Developer information]({{site.baseurl}}/upgrade-compatibility-tool/developer.html) for more information.
143+
144+
## Troubleshooting
145+
146+
### Empty output
147+
148+
{:.bs-callout-info}
149+
The `M2_VERSION` is the target Magento 2 version you want to compare to your Magento instance.
150+
151+
If after running this command:
152+
153+
```bash
154+
bin/uct upgrade:check INSTALLATION_DIR -c M2_VERSION
155+
```
156+
157+
the only output is `Upgrade compatibility tool`:
158+
159+
```terminal
160+
bin/uct upgrade:check /var/www/project/magento/ -c 2.4.1
161+
Upgrade compatibility tool
162+
```
163+
{:.no-copy}
164+
165+
the likely cause is a PHP memory limitation.
166+
Override the memory limitation by setting `memory_limit` to `-1`:
167+
168+
```bash
169+
php -d memory_limit=-1 /bin/uct upgrade:check INSTALLATION_DIR -c M2_VERSION
170+
```

0 commit comments

Comments
 (0)