Jump to content

Missing admin left menu entries (only Stats shown), after login moved into 404


Recommended Posts

My cooperator did some work on our prestashop (he is 90% sure he didn't install or update anything) and since that prestashop is strange. (This problem is for administration only - pages for customers works normally).

 

First issue we got is with login - on successfuly login we are moved into /admin.../&token=... - so we can go back and refresh page or replace & with ? and we are in.

 

However, the real problem appear now. Instead of normal deskboard, we get red error message "Access denied.", and admin menu contains only "Stats" entry. This affect all emloyee accounts. Posting screenshot after first login:

8pUfDf8.png

 

But administration got normal functionality on other pages (this one is when calling URL get from history index.php?controller=AdminPerformance&token=..&conf=4).

voSXXbm.png

 

Many thanks in advance.

Edited by DeliDrgon (see edit history)
Link to comment
Share on other sites

There is something wrong in your story. With first screenshot "Access denied", on second you have access?? Maybe screenshot of second page from browser cache?

Anyway, login to back office as Super Admin and check permissions.

These screenshots I got when I was loged in as super admin (created when installed prestashop). Cache is disabled (see second image for red value).

 

The first "Access denied." screenshot is from dashboard index.php?controller=AdminDashboard&token=...

Just cleared cache amd disabled "non PrestaShop modules" and overrides, but still nothing.

 

BTW: Whats the URL for accessing employees? I didnt have menu.

Edited by DeliDrgon (see edit history)
Link to comment
Share on other sites

check your db tables

1) "tab" must have around 100 records

2) "access" must have same number of records as "tab" with "id_profile = 1", "id_tab" corresponding to "tab" table ids and "view, add, edit, delete = 1"

 

Employees controller = AdminEmployees

Permissions controller = AdminAccess

Link to comment
Share on other sites

check your db tables

1) "tab" must have around 100 records

2) "access" must have same number of records as "tab" with "id_profile = 1", "id_tab" corresponding to "tab" table ids and "view, add, edit, delete = 1"

 

Employees controller = AdminEmployees

Permissions controller = AdminAccess

tab = 94 records

access is mixed

access.sql: http://pastebin.com/DeKA9rze

 

Edit: Using "SELECT * FROM `access` INNER JOIN tab ON access.id_tab = tab.id_tab WHERE access.id_profile = 1" I got some entries (not only id_parent=-1) where some permissions were zero

Edited by DeliDrgon (see edit history)
Link to comment
Share on other sites

Done, but nothing changed. The database for id_profile 1 does contains only 1111, but same "Access denied." is showing in dashboard and menu is still incomplete (still only Stats are visible)

EDIT: Employees: only (id 1) SuperAdmin and (id 2) Salesman, both active.

Checked permissions of Salesman, added show permissions for few menus, but they didn't appear. Still, I see only "Stats" in menu

Edited by DeliDrgon (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...