Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcreteCMS v9.1.3 Errors on Express Entities Import #42

Open
aohlrogge opened this issue May 28, 2024 · 0 comments
Open

ConcreteCMS v9.1.3 Errors on Express Entities Import #42

aohlrogge opened this issue May 28, 2024 · 0 comments

Comments

@aohlrogge
Copy link

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

  1. Export Express Entity from v8 Site (express_entity.xml provided above)
  2. Import Express Entity into v9 Site
  3. Export Express Entries from v8 Site
  4. Create Import Batch on v9 Site
  5. Upload express_entries.xml file to batch
  6. Map Content for v9 batch
  7. Rescan Batch
  8. Notice screen now shows "Load error!"

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" ] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant