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

Skip to content

[Bug]: cannot publish documents that where created with pimcore 6.9 #11801

@jheimbach

Description

@jheimbach

Expected behavior

I want to publish a document which was created before the update to pimcore 10.x (currently on 10.2.5)

Only happens if the document was never published.

Actual behavior

I get the error cannot access property starting with \0.

The error is thrown here: https://github.com/pimcore/pimcore/blob/10.x/models/Element/Service.php#L1227
called from Pimcore\Model\Document\PageSnippet::checkMissingRequiredEditable

Steps to reproduce

(migration script was executed prior to pimcore 10 update)

I think it is because the version has a serialized Page Object which has still properties module action and elements but these where removed.

I'm not sure how to fix it, because I have no idea how to remove properties from an unserialized object of a class that does not have these properties (or serialized without some very janky regex foo). If someone has an idea, i can create a PR for that.

useful grep command for finding the affected versions: grep -rnw './var/versions/document' -e 'O:27:"Pimcore\\Model\\Document\\Page":36'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions