magento2: New CMS Page Not working
Steps to reproduce
- Install Magento 2.1 from any source.
- Set Enable Single-Store Mode to Yes
- Create a new CMS Page
Expected result
- CMS Page is created
- New Page can be accessible from the frontend
Actual result
- CMS Page is created
- Returns 404 when trying to access the page from the frontend
Issue
On the database the cms_page_store
doesn’t create the registers when the Single-Store Mode is enable.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 17 (4 by maintainers)
Commits related to this issue
- Merge pull request #5711 from magento-epam/MC-33884 [epam] MC-33884: De-couple Braintree payment method integration from core in 2.4.0 — committed to magento/magento2 by zakdma 4 years ago
Steps reproduce
Expected result
CMS page will saw in frontend
Actual result
CMS page will not display
Review below file
https://github.com/magento/magento2/blob/develop/app/code/Magento/Cms/Model/ResourceModel/Page.php#L152
i have print value of two variable
echo 'field : ’ . $field echo 'value: ’ . $value
output : field : identifier value : no-route
That means when we create new CMS page in Single store mode identifier not fetch correct.
Solution
Open cms pages list , click on cms page ( grid view pullout that row and ask for ( cancel and save ) , now click on save.
now open you CMS page , its will display…
Can confirm this issue in 2.1.1 also
This is still an issue in 2.1.1