You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/_includes/upgrade/uct-error-reference.md
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -96,10 +96,10 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
96
96
| - | - | - |
97
97
| 5001 | Call-time pass-by-reference calls are prohibited | Passing by reference is not supported after PHP 5.6. |
98
98
| 5002 | The opening PHP tag must be the first content in the file | Ensure there is no content in the file before the PHP opening tag. |
99
-
| 5003 | Function has been deprecated |Please use a replacement suggested in the error message. If the message does not provide the replacement suggestion, this case requires a close review to select an alternative safe function or implementation. |
99
+
| 5003 | Function has been deprecated |Use a replacement suggested in the error message. If the message does not provide the replacement suggestion, this case requires a close review to select an alternative safe function or implementation. |
100
100
| 5005 | PHP syntax error | The code requires to be updated to comply with the PHP interpretation. |
101
101
| 5006 | Proxies and interceptors MUST never be explicitly requested in constructors | The original class should be declared as a type of the constructor parameter, the Interceptor/Proxy class will be passed by the framework dependency injection implementation. |
102
-
| 5007 | The use of certain functions is discouraged |Please avoid using these functions. |
102
+
| 5007 | The use of certain functions is discouraged |Avoid using these functions. |
103
103
| 5008 | Possible Magento 2 design violation. Detected typical Magento 1.x construction | The code requires review and refactoring. Magento 1 constructions may no longer be supported by Magento 2 framework. |
104
104
| 5009 | Template directives may not invoke methods. Only scalar array access is allowed | Remove method invocations from the template. |
| 5055 |`helper` attribute does not contain `::`| Add `::` to helper attribute. |
151
-
| 5056 | Install scripts are obsolete |Please use declarative schema approach in module\'s etc/db_schema.xml file. |
152
-
| 5057 | InstallSchema scripts are obsolete |Please use declarative schema approach in module\'s etc/db_schema.xml file. |
153
-
| 5058 | InstallData scripts are obsolete |Please use data patches approach in module\'s Setup/Patch/Data dir. |
154
-
| 5059 | Install scripts are obsolete |Please create class InstallData in module\'s Setup folder. |
155
-
| 5060 | Upgrade scripts are obsolete |Please use declarative schema approach in module\'s etc/db_schema.xml file. |
156
-
| 5061 | UpgradeSchema scripts are obsolete |Please use declarative schema approach in module\'s etc/db_schema.xml file. |
157
-
| 5062 | UpgradeData scripts are obsolete |Please use data patches approach in module\'s Setup/Patch/Data dir. |
158
-
| 5063 | Upgrade scripts are obsolete |Please use data patches approach in module\'s Setup/Patch/Data dir. |
159
-
| 5064 | Recurring scripts are obsolete |Please create class Recurring in module\'s Setup folder. |
151
+
| 5056 | Install scripts are obsolete |Use declarative schema approach in module\'s etc/db_schema.xml file. |
152
+
| 5057 | InstallSchema scripts are obsolete |Use declarative schema approach in module\'s etc/db_schema.xml file. |
153
+
| 5058 | InstallData scripts are obsolete |Use data patches approach in module\'s Setup/Patch/Data dir. |
154
+
| 5059 | Install scripts are obsolete |Create a class InstallData in the module\'s Setup folder. |
155
+
| 5060 | Upgrade scripts are obsolete |Use declarative schema approach in module\'s etc/db_schema.xml file. |
156
+
| 5061 | UpgradeSchema scripts are obsolete |Use declarative schema approach in module\'s etc/db_schema.xml file. |
157
+
| 5062 | UpgradeData scripts are obsolete |Use data patches approach in module\'s Setup/Patch/Data dir. |
158
+
| 5063 | Upgrade scripts are obsolete |Use data patches approach in the module\'s Setup/Patch/Data dir. |
159
+
| 5064 | Recurring scripts are obsolete |Create class Recurring in the module\'s Setup folder. |
160
160
| 5065 | 'data' is in an invalid directory | Create a data patch within module's Setup/Patch/Data folder for data upgrades or use declarative schema approach in module's etc/db_schema.xml file for schema changes. |
161
161
| 5066 | 'sql' is in an invalid directory | Create a data patch within module's Setup/Patch/Data folder for data upgrades or use declarative schema approach in module's etc/db_schema.xml file for schema changes. |
162
162
| 5067 | Nodes identified by XPath are obsolete | Obsolete XML pointed out in the error should be updated. Follow the suggestions from the error message. |
@@ -176,7 +176,7 @@ Custom code errors are raised when custom code is using the Adobe Commerce entry
176
176
| 5081 | The use of helpers in templates is discouraged | Use ViewModel instead. |
177
177
| 5082 | The use of $this in templates is deprecated | Use $block instead. |
178
178
| 5083 | Constants are not allowed as the first argument of translation function | Use string literal instead. |
179
-
| 5084 |Please do not initialize JS component in php | Initialize JS component in a template. |
179
+
| 5084 |Do not initialize JS component in php | Initialize JS component in a template. |
180
180
| 5085 | The use of certain functions is discouraged | Use the alternative function advised on the message instead. |
181
181
| 6001 |`jQuery.andSelf()` removed | Use `jQuery.addBack()`. |
182
182
| 6002 | jQuery `$.bind` and `$.unbind` are deprecated | Use `$.on` and `$.off` instead. |
0 commit comments