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
When trying to move Express Entities from a v8 site to a v9 site using this tool I get this error
Exception Occurred: /app/packages/migration_tool/src/PortlandLabs/Concrete5/MigrationTool/Batch/Validator/Object/StandardAttributeValidator.php:15 Argument 1 passed to PortlandLabs\Concrete5\MigrationTool\Batch\Validator\Object\StandardAttributeValidator::validate() must implement interface PortlandLabs\Concrete5\MigrationTool\Batch\Validator\ValidatorSubjectInterface, instance of PortlandLabs\Concrete5\MigrationTool\Entity\Import\AttributeValue\StandardAttributeValue given, called in /app/packages/migration_tool/src/PortlandLabs/Concrete5/MigrationTool/Batch/Validator/Pipeline/Stage/ValidateExpressAttributesStage.php on line 42
When trying to move Express Entities from a v8 site to a v9 site using this tool I get this error
Exception Occurred: /app/packages/migration_tool/src/PortlandLabs/Concrete5/MigrationTool/Batch/Validator/Object/StandardAttributeValidator.php:15 Argument 1 passed to PortlandLabs\Concrete5\MigrationTool\Batch\Validator\Object\StandardAttributeValidator::validate() must implement interface PortlandLabs\Concrete5\MigrationTool\Batch\Validator\ValidatorSubjectInterface, instance of PortlandLabs\Concrete5\MigrationTool\Entity\Import\AttributeValue\StandardAttributeValue given, called in /app/packages/migration_tool/src/PortlandLabs/Concrete5/MigrationTool/Batch/Validator/Pipeline/Stage/ValidateExpressAttributesStage.php on line 42
Files To Reproduce (renamed to .txt to allow upload)
express_entity.xml.txt
express_entries.xml.txt
Steps To Reproduce
Full Error Output
{ "error": { "type": "TypeError", "message": "Argument 1 passed to PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Object\\StandardAttributeValidator::validate() must implement interface PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\ValidatorSubjectInterface, instance of PortlandLabs\\Concrete5\\MigrationTool\\Entity\\Import\\AttributeValue\\StandardAttributeValue given, called in \/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Pipeline\/Stage\/ValidateExpressAttributesStage.php on line 42", "code": 0, "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Object\/StandardAttributeValidator.php", "line": 15, "trace": [ { "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Object\/StandardAttributeValidator.php", "line": 15, "function": null, "class": "TypeError", "args": [ "Argument 1 passed to PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Object\\StandardAttributeValidator::validate() must implement interface PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\ValidatorSubjectInterface, instance of PortlandLabs\\Concrete5\\MigrationTool\\Entity\\Import\\AttributeValue\\StandardAttributeValue given, called in \/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Pipeline\/Stage\/ValidateExpressAttributesStage.php on line 42" ] }, { "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Pipeline\/Stage\/ValidateExpressAttributesStage.php", "line": 42, "function": "validate", "class": "PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Object\\StandardAttributeValidator", "args": [ {} ] }, { "file": "\/app\/concrete\/vendor\/league\/pipeline\/src\/FingersCrossedProcessor.php", "line": 11, "function": "__invoke", "class": "PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Pipeline\\Stage\\ValidateExpressAttributesStage", "args": [ { "messages": [] } ] }, { "file": "\/app\/concrete\/vendor\/league\/pipeline\/src\/Pipeline.php", "line": 34, "function": "process", "class": "League\\Pipeline\\FingersCrossedProcessor", "args": [ { "messages": [] }, {} ] }, { "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/AbstractPipelineSupportingValidator.php", "line": 41, "function": "process", "class": "League\\Pipeline\\Pipeline", "args": [ { "messages": [] } ] }, { "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Pipeline\/Stage\/ValidateBatchRecordsStage.php", "line": 26, "function": "validate", "class": "PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\AbstractPipelineSupportingValidator", "args": [ {} ] }, { "file": "\/app\/concrete\/vendor\/league\/pipeline\/src\/FingersCrossedProcessor.php", "line": 11, "function": "__invoke", "class": "PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Pipeline\\Stage\\ValidateBatchRecordsStage", "args": [ { "messages": [] } ] }, { "file": "\/app\/concrete\/vendor\/league\/pipeline\/src\/Pipeline.php", "line": 34, "function": "process", "class": "League\\Pipeline\\FingersCrossedProcessor", "args": [ { "messages": [] }, {} ] }, { "file": "\/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/AbstractPipelineSupportingValidator.php", "line": 41, "function": "process", "class": "League\\Pipeline\\Pipeline", "args": [ { "messages": [] } ] }, { "file": "\/app\/packages\/migration_tool\/controllers\/single_page\/dashboard\/system\/migration\/import.php", "line": 486, "function": "validate", "class": "PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\AbstractPipelineSupportingValidator", "args": [ {} ] }, { "file": "\/app\/concrete\/src\/Controller\/AbstractController.php", "line": 318, "function": "validate_batch", "class": "Concrete\\Package\\MigrationTool\\Controller\\SinglePage\\Dashboard\\System\\Migration\\Import", "args": [] }, { "file": "\/app\/concrete\/src\/Controller\/AbstractController.php", "line": 318, "function": "call_user_func_array", "class": null, "args": [ [ { "token": {}, "c": { "siteTree": null, "cCheckedOutUID": null, "pkgID": "6", "pkgHandle": "migration_tool", "cPointerID": "0", "cIsDraft": "0", "cIsActive": "1", "cFilename": "\/dashboard\/system\/migration\/import\/view.php", "ptID": "0", "cDisplayOrder": "0", "cInheritPermissionsFrom": "PARENT", "cOverrideTemplatePermissions": "1", "cIsTemplate": "0", "uID": "1", "cPath": "\/dashboard\/system\/migration\/import", "cParentID": "257", "cChildren": "1", "cCacheFullPageContent": "-1", "cID": "258", "error": false, "cPathFetchIsCanonical": true } }, "validate_batch" ], [] ] }, { "file": "\/app\/concrete\/src\/Http\/ResponseFactory.php", "line": 193, "function": "runAction", "class": "Concrete\\Core\\Controller\\AbstractController", "args": [ "validate_batch", [] ] }, { "file": "\/app\/concrete\/src\/Http\/ResponseFactory.php", "line": 372, "function": "controller", "class": "Concrete\\Core\\Http\\ResponseFactory", "args": [ { "token": {}, "c": { "siteTree": null, "cCheckedOutUID": null, "pkgID": "6", "pkgHandle": "migration_tool", "cPointerID": "0", "cIsDraft": "0", "cIsActive": "1", "cFilename": "\/dashboard\/system\/migration\/import\/view.php", "ptID": "0", "cDisplayOrder": "0", "cInheritPermissionsFrom": "PARENT", "cOverrideTemplatePermissions": "1", "cIsTemplate": "0", "uID": "1", "cPath": "\/dashboard\/system\/migration\/import", "cParentID": "257", "cChildren": "1", "cCacheFullPageContent": "-1", "cID": "258", "error": false, "cPathFetchIsCanonical": true } } ] }, { "file": "\/app\/concrete\/src\/Http\/DefaultDispatcher.php", "line": 132, "function": "collection", "class": "Concrete\\Core\\Http\\ResponseFactory", "args": [ { "siteTree": null, "cCheckedOutUID": null, "pkgID": "6", "pkgHandle": "migration_tool", "cPointerID": "0", "cIsDraft": "0", "cIsActive": "1", "cFilename": "\/dashboard\/system\/migration\/import\/view.php", "ptID": "0", "cDisplayOrder": "0", "cInheritPermissionsFrom": "PARENT", "cOverrideTemplatePermissions": "1", "cIsTemplate": "0", "uID": "1", "cPath": "\/dashboard\/system\/migration\/import", "cParentID": "257", "cChildren": "1", "cCacheFullPageContent": "-1", "cID": "258", "error": false, "cPathFetchIsCanonical": true } ] }, { "file": "\/app\/concrete\/src\/Http\/DefaultDispatcher.php", "line": 60, "function": "handleDispatch", "class": "Concrete\\Core\\Http\\DefaultDispatcher", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/DispatcherDelegate.php", "line": 39, "function": "dispatch", "class": "Concrete\\Core\\Http\\DefaultDispatcher", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/FrameOptionsMiddleware.php", "line": 39, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\DispatcherDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareDelegate.php", "line": 50, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\FrameOptionsMiddleware", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} }, {} ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/StrictTransportSecurityMiddleware.php", "line": 36, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareDelegate.php", "line": 50, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\StrictTransportSecurityMiddleware", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} }, {} ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/ContentSecurityPolicyMiddleware.php", "line": 36, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareDelegate.php", "line": 50, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\ContentSecurityPolicyMiddleware", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} }, {} ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/CookieMiddleware.php", "line": 35, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareDelegate.php", "line": 50, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\CookieMiddleware", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} }, {} ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/ApplicationMiddleware.php", "line": 29, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareDelegate.php", "line": 50, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\ApplicationMiddleware", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} }, {} ] }, { "file": "\/app\/concrete\/src\/Http\/Middleware\/MiddlewareStack.php", "line": 86, "function": "next", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareDelegate", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Http\/DefaultServer.php", "line": 85, "function": "process", "class": "Concrete\\Core\\Http\\Middleware\\MiddlewareStack", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Foundation\/Runtime\/Run\/DefaultRunner.php", "line": 128, "function": "handleRequest", "class": "Concrete\\Core\\Http\\DefaultServer", "args": [ { "attributes": {}, "request": {}, "query": {}, "server": {}, "files": {}, "cookies": {}, "headers": {} } ] }, { "file": "\/app\/concrete\/src\/Foundation\/Runtime\/DefaultRuntime.php", "line": 102, "function": "run", "class": "Concrete\\Core\\Foundation\\Runtime\\Run\\DefaultRunner", "args": [] }, { "file": "\/app\/concrete\/dispatcher.php", "line": 45, "function": "run", "class": "Concrete\\Core\\Foundation\\Runtime\\DefaultRuntime", "args": [] }, { "file": "\/app\/index.php", "line": 2, "function": "require", "class": null, "args": [ "\/app\/concrete\/dispatcher.php" ] } ] }, "errors": [ "Argument 1 passed to PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Object\\StandardAttributeValidator::validate() must implement interface PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\ValidatorSubjectInterface, instance of PortlandLabs\\Concrete5\\MigrationTool\\Entity\\Import\\AttributeValue\\StandardAttributeValue given, called in \/app\/packages\/migration_tool\/src\/PortlandLabs\/Concrete5\/MigrationTool\/Batch\/Validator\/Pipeline\/Stage\/ValidateExpressAttributesStage.php on line 42" ] }
The text was updated successfully, but these errors were encountered: