wernerkrauss / silverstripe-onepage

An extension for simpe one-page sites
MIT License
5 stars 3 forks source link

Error - undefined method #15

Open pinkp opened 1 year ago

pinkp commented 1 year ago

After installing via composer and created the holder page when I load the child page in the CMS I got the following error:

[Emergency] Uncaught Error: Call to undefined method SilverStripe\Versioned\Versioned::current_stage() GET /brewvodka/home/range/?stage=Stage&CMSPreview=1

Line 180 in /Users/joelang/Sites/brewvodka/vendor/wernerkrauss/silverstripe-onepage/src/Extensions/OnePageSlide.php

jakmax76 commented 1 year ago

Hi @pinkp have you tried to clear cache after install or flush the database?

https://yousite.name/?flush=1 in dev mode https://yousite.name/dev/build/?flush=1 in dev mode

pinkp commented 1 year ago

Yes all flushed! Still the same.

jakmax76 commented 1 year ago

The current_stage() method doesn't exist on Versioned class anymore. I'm assuming that one is deprecated and removed as well. Try Versioned::get_stage();