magento2: New CMS Page Not working

Steps to reproduce

  1. Install Magento 2.1 from any source.
  2. Set Enable Single-Store Mode to Yes
  3. Create a new CMS Page

Expected result

  1. CMS Page is created
  2. New Page can be accessible from the frontend

Actual result

  1. CMS Page is created
  2. 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

Most upvoted comments

Steps reproduce

  1. Set Enable Single-Store Mode to Yes
  2. Create a new CMS Page

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