Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Deleting default post page throw an uncaught exception #971

Closed
bydrei opened this issue Jan 14, 2016 · 5 comments
Closed

Deleting default post page throw an uncaught exception #971

bydrei opened this issue Jan 14, 2016 · 5 comments

Comments

@bydrei
Copy link

bydrei commented Jan 14, 2016

Hi Guys,

I've noticed if you delete the post page the throws an uncaught exception. This happens even if you have other pages.
Heres there trace
#0 /Volumes/Sandbox/sites/wordpress/anchor/routes/site.php(12): System\Error::native(8, 'Trying to get p...', '/Volumes/Sandbo...', 12, Array)
#1 /Volumes/Sandbox/sites/wordpress/anchor/run.php(56): require('/Volumes/Sandbo...')
#2 /Volumes/Sandbox/sites/wordpress/system/start.php(21): require('/Volumes/Sandbo...')
#3 /Volumes/Sandbox/sites/wordpress/index.php(33): require('/Volumes/Sandbo...')
#4 {main}

@daviddarnes
Copy link
Member

@ferrazzzz did you set another page as the post page?

@bydrei
Copy link
Author

bydrei commented Jan 14, 2016

@daviddarnes Well I've noticed it will start working in you set the id of another page to 1 on the db. Further investigation the it seems like the default page as the id of always one. Its really not a problem to me, just wanted to make you guys aware 👍

@TheBrenny
Copy link
Member

@daviddarnes We should probably add something in [this route][https://github.com/anchorcms/anchor-cms/blob/master/anchor/routes/pages.php#L220] to make the default posts page a different page. 😵

@daviddarnes
Copy link
Member

@TheBrenny we just need a stopper in place to stop users deleting the posts page, unless they move the posts page to another page.

@CraigChilds94
Copy link
Member

@TheBrenny @ferrazzzz You can't delete the posts/home page in the version of Anchor that is present in pre-1.0-develop which will hopefully soon be released. So this HAS been fixed for a while, just not released.

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

No branches or pull requests

4 participants