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

Fix Undefined property: $mappers #40

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

wordish
Copy link
Contributor

@wordish wordish commented May 14, 2024

Import Express and you'll get this error from the XHR request to /dashboard/system/migration/import/validate_batch:

Undefined property: PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Pipeline\\Stage\\ValidateExpressAttributesStage::$mappers

Sample XML to reproduce the error:

<concrete5-cif version="1.0">
  <expressentries>
    <entry entity="supporter">
      <attributes>
        <attributekey handle="supporter_name">
          <value>Friday Design</value>
        </attributekey>
        <attributekey handle="supporter_subtitle">
          <value/>
        </attributekey>
        <attributekey handle="supporter_link">
          <value>https://www.example.com</value>
        </attributekey>
        <attributekey handle="supporter_level">
          <value>
            <option>300</option>
          </value>
        </attributekey>
      </attributes>
    </entry>
  </expressentries>
</concrete5-cif>

Import Express and you'll get this error from the XHR request to `/dashboard/system/migration/import/validate_batch`:

    Undefined property: PortlandLabs\\Concrete5\\MigrationTool\\Batch\\Validator\\Pipeline\\Stage\\ValidateExpressAttributesStage::$mappers

Sample XML to reproduce the error:

    <concrete5-cif version="1.0">
      <expressentries>
        <entry entity="supporter">
          <attributes>
            <attributekey handle="supporter_name">
              <value>Friday Design</value>
            </attributekey>
            <attributekey handle="supporter_subtitle">
              <value/>
            </attributekey>
            <attributekey handle="supporter_link">
              <value>https://www.example.com</value>
            </attributekey>
            <attributekey handle="supporter_level">
              <value>
                <option>300</option>
              </value>
            </attributekey>
          </attributes>
        </entry>
      </expressentries>
    </concrete5-cif>
@aembler aembler merged commit 359418f into concretecms:master May 17, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants