DeliDrgon Posted November 18, 2015 Share Posted November 18, 2015 (edited) 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: But administration got normal functionality on other pages (this one is when calling URL get from history index.php?controller=AdminPerformance&token=..&conf=4). Many thanks in advance. Edited November 18, 2015 by DeliDrgon (see edit history) Link to comment Share on other sites More sharing options...
nsweb Posted November 18, 2015 Share Posted November 18, 2015 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. Link to comment Share on other sites More sharing options...
DeliDrgon Posted November 19, 2015 Author Share Posted November 19, 2015 (edited) 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 November 19, 2015 by DeliDrgon (see edit history) Link to comment Share on other sites More sharing options...
nsweb Posted November 19, 2015 Share Posted November 19, 2015 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 More sharing options...
DeliDrgon Posted November 19, 2015 Author Share Posted November 19, 2015 (edited) 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 November 19, 2015 by DeliDrgon (see edit history) Link to comment Share on other sites More sharing options...
nsweb Posted November 19, 2015 Share Posted November 19, 2015 for "id_profile = 1" set all permissions to 1 Link to comment Share on other sites More sharing options...
DeliDrgon Posted November 19, 2015 Author Share Posted November 19, 2015 (edited) 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 November 19, 2015 by DeliDrgon (see edit history) Link to comment Share on other sites More sharing options...
DeliDrgon Posted November 21, 2015 Author Share Posted November 21, 2015 (edited) I really need help Edited November 21, 2015 by DeliDrgon (see edit history) Link to comment Share on other sites More sharing options...
nsweb Posted November 24, 2015 Share Posted November 24, 2015 post to pastebin "tab" table Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now