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

doPublish has been deprecated in Versioned #62

Closed
lars-lemon8 opened this issue Jan 17, 2024 · 1 comment
Closed

doPublish has been deprecated in Versioned #62

lars-lemon8 opened this issue Jan 17, 2024 · 1 comment

Comments

@lars-lemon8
Copy link

A bit odd, but it seems doPublish() has been deprecated.

I can't seem to find this in the upgrade docs (besides https://docs.silverstripe.org/en/5/changelogs/alpha/5.0.0-alpha1/), but stuff breaks in SS5.1

Refer to https://forum.silverstripe.org/t/the-method-publish-does-not-exist-on-page/7822

I'm getting the "Uncaught BadMethodCallException: Object->__call(): the method 'doPublish' does not exist" when trying to archive a content block.

In the above thread, Guy advises to use copyVersionToStage() or publishRecursive() instead.

@wilr
Copy link
Collaborator

wilr commented Jan 17, 2024

Strange they'd remove doPublish() and keep doUnpublish() :) Updated now.

@wilr wilr closed this as completed Jan 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

No branches or pull requests

2 participants