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

Clicking CMS page takes you to the dashboard #816

Closed
robfico opened this issue Dec 18, 2014 · 11 comments
Closed

Clicking CMS page takes you to the dashboard #816

robfico opened this issue Dec 18, 2014 · 11 comments

Comments

@robfico
Copy link
Contributor

robfico commented Dec 18, 2014

In admin under: Content -> Pages, clicking any page does not allow it to be edited. It just redirects me to the main admin dashboard page. By design, or a bug? Magento ver. 0.42.0-beta1

system.log does not show any errors besides this for each admin page click:
2014-12-17T23:12:06-05:00 CRIT (2): Invalid template file: ''

@maksek
Copy link
Contributor

maksek commented Dec 18, 2014

Just checked on fresh installation and can't reproduce the issue.
You see such behavior only when click on Content-Pages or any other menu in admin? Maybe issue with wrong URL during setup.
Check this troubleshooting - http://devdocs.magento.com/guides/v1.0/install-gde/trouble/tshoot_admin.html

@robfico
Copy link
Contributor Author

robfico commented Dec 18, 2014

I did a generic install per the docs, no errors. I can use every other feature in the admin panel, just when clicking on a cms page to edit, it sends me to the main dashboard page. I cleared all caches, restarted php-fpm, etc... The first time I go to the list of cms pages, it says 4 records found, but the table is empty. If I click pages again, it populates, but I cannot edit.

Environment:
centOS 6, 64-bit
Apache 2.2.27
PHP 5.4..35 (using mod_fastcgi [SNAP-0811090952] for php-fpm integration)
MySQL 5.6.22

Maybe an issue with php-fpm using mod_fastcgi in Apache?

The only errors in system.log are these lines that output after any admin function is clicked:

2014-12-18T08:20:23-05:00 CRIT (2): Invalid template file: ''
2014-12-18T08:20:46-05:00 CRIT (2): Invalid template file: ''
2014-12-18T08:20:54-05:00 CRIT (2): Invalid template file: ''
2014-12-18T08:21:09-05:00 CRIT (2): Invalid template file: ''
2014-12-18T08:21:18-05:00 CRIT (2): Invalid template file: ''

2014-12-18T08:22:42-05:00 CRIT (2): Invalid template file: ''

@vkorotun
Copy link
Contributor

Those system.log records are not relevant here.

Can you double check that your browser cache is not the cause that outdated JS files are used:

  • empty " /pub/static/" folder to get all static files refreshed
  • remove or disable for a moment your browser cache

@robfico
Copy link
Contributor Author

robfico commented Dec 18, 2014

Emptied pub/static folder
Used new browser (firefox) that I had never logged into admin before.

  • First time I went to cms pages list, ajax spinning icon did not stop, no list.
  • Second time I went to cms pages list, only listed partial info in columns
  • Third time it listed all cms pages and columns, click on page, takes me to the dashboard

I can use any other feature in admin panel, add new block, edit block, etc...

If you need/want admin access to see this, just let me know where to send info (vps container)

Only errors in system.log on initial admin login after emptying pub/static


2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'logo' element cannot be added as child to 'header', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'logo' tries to reorder itself towards '', but their parents are different: 'header' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'user' element cannot be added as child to 'header', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'user' tries to reorder itself towards '', but their parents are different: 'header' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'menu' element cannot be added as child to 'page.menu', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'breadcrumbs' element cannot be added as child to 'page.breadcrumbs', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'formkey' element cannot be added as child to 'page.formkey', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'js_translate' element cannot be added as child to 'page.js.translate', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'page-title' element cannot be added as child to 'main.top', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'messages' element cannot be added as child to 'page.messages', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'page.actions.toolbar' element cannot be added as child to 'page.main.actions', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'page.actions.toolbar' tries to reorder itself towards '', but their parents are different: 'page.main.actions' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'locale.switcher' element cannot be added as child to 'footer', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'legal' element cannot be added as child to 'footer', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'page.loader' element cannot be added as child to 'backend.page', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'page.loader' tries to reorder itself towards '', but their parents are different: 'backend.page' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'system_messages' element cannot be added as child to 'notifications', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'system_messages' tries to reorder itself towards '', but their parents are different: 'notifications' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'unread_system_messages' element cannot be added as child to 'notifications', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'unread_system_messages' tries to reorder itself towards 'system_messages', but their parents are different: 'notifications' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'header_schedule_block0' element cannot be added as child to 'header', because the latter doesn't exist
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'header_schedule_block0' tries to reorder itself towards 'user', but their parents are different: 'header' and '' respectively.
2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'ui.global.config' element cannot be added as child to 'footer', because the latter doesn't exist

2014-12-18T09:07:08-05:00 CRIT (2): Broken reference: the 'ui.global.config' tries to reorder itself towards '', but their parents are different: 'footer' and '' respectively.

@robfico
Copy link
Contributor Author

robfico commented Dec 18, 2014

fyi - i wiped the install, did another clean install (used web based setup, no errors), and still the only feature that does not work in the admin is trying to edit a content page. It just sends me to the admin dashboard page when clicked:
/magento2/admin/admin/dashboard/index/key/

@robfico
Copy link
Contributor Author

robfico commented Dec 18, 2014

I turned off secret keys in URLs. After doing that, when I click a content page to edit, the page shows "404 Error - Page Not Found". The URL it tries to go to is:
/magento2/admin/admin/cms_page/edit/page_id/3/

However, if I manually change the URL to:
/magento2/admin/cms/page/edit/page_id/3/
(note the extra /admni is removed and cms_page is changed to "cms/page")

the edit works. Seems somehow the URL is being altered incorrectly in the admin area. Hope this helps. I can edit any block or frontend widget just fine in the admin. It's just the content pages.

@ghost
Copy link

ghost commented Dec 19, 2014

FWIW having the EXACT same issue.

@nyov
Copy link

nyov commented Dec 19, 2014

I'm not quite sure why there are so many urls with a hardcoded extra 'admin/' in the backend,
but it's obvious when you change the backend path during installation to something else, such as 'backend', that a lot URLs look like

.../index.php/backend/admin/system_config/...
.../index.php/backend/admin/dashboard/...
.../index.php/backend/admin/widget_instance/...

Anyway, since those links worked before and looked like a regression, I dug through the changes, and though it's probably wrong, this diff reverts a file and fixed the problem for me:

diff --git a/app/code/Magento/Cms/Ui/DataProvider/Page/Row/Actions.php b/app/code/Magento/Cms/Ui/DataProvider/Page/Row/Actions.php
index 8c10225..08c8309 100644
--- a/app/code/Magento/Cms/Ui/DataProvider/Page/Row/Actions.php
+++ b/app/code/Magento/Cms/Ui/DataProvider/Page/Row/Actions.php
@@ -16,7 +16,7 @@ class Actions implements RowInterface
     /**
      * Url path
      */
-    const URL_PATH = 'adminhtml/cms_page/edit';
+    const URL_PATH = '*/*/edit';

     /**
      * @var UrlBuilder

@ghost
Copy link

ghost commented Dec 20, 2014

@nyov Thanks for this. It worked for me as well. Now we wait to see if the issue persists in the next update.

@maksek
Copy link
Contributor

maksek commented Dec 25, 2014

PR #858 is merged. Issue may be closed. Thank you @robfico and @nyov.

@maksek
Copy link
Contributor

maksek commented Dec 29, 2014

Issue was resolved after merging #858. IF there is another error, feel free to reopen with additional details. Thanks.

@maksek maksek closed this as completed Dec 29, 2014
mmansoor-magento pushed a commit that referenced this issue Feb 9, 2017
Tasks:
* MAGETWO-59184: [GITHUB] Prevent double shipping method selection #5928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants