dabcorp Posted July 29, 2017 Share Posted July 29, 2017 Hello, After upgrade version 1.7.1.1 to 1.7.2.0 , Front is Ok but BO Dead : Exception in xxx\classes\Access.php line 73: The slug ROLE_MOD_TAB__READ is invalid in Access.php line 73 at AccessCore::isGranted(array('ROLE_MOD_TAB__READ'), '1') in AdminController.php line 742 at AdminControllerCore->access('view', false) in AdminController.php line 757 at AdminControllerCore->viewAccess() in AdminController.php line 2074 at AdminControllerCore->initContent() in Controller.php line 220 at Controller->run() in Dispatcher.php line 379 at DispatcherCore->dispatch() in index.php line 95 Please help me 3 Link to comment Share on other sites More sharing options...
webeshop Posted August 9, 2017 Share Posted August 9, 2017 I have same problem... 1 Link to comment Share on other sites More sharing options...
easyweb.ec Posted August 16, 2017 Share Posted August 16, 2017 I have the same problems and please is urg.... Link to comment Share on other sites More sharing options...
Traxxas Posted August 22, 2017 Share Posted August 22, 2017 I have the same problem after upgrading from 1.6.1.16 to 1.7.2.1 Link to comment Share on other sites More sharing options...
xsonic Posted August 22, 2017 Share Posted August 22, 2017 Same problem. Anybody got a solution already? Link to comment Share on other sites More sharing options...
Ferico Posted August 30, 2017 Share Posted August 30, 2017 (edited) It was Mentioned from the PrestaShop Team, that it is Problematic to Upgrade Directly from 1.6 Versions. So i guess that Problem you described is the Reason why its Problematic. The best Solution would be to Rollback from a Backup... !? From Prestashop developer blog: Is it be easy to upgrade from previous versions of PrestaShop to v1.7? In short: no, it won’t. You can upgrade, but be prepared to have to adapt or replace many of your addons (theme, modules). Now for the longer answer. PrestaShop 1.7 is a major version not only because it packs a lot of sweet changes, but it is also major in the SemVer sense of the term: it breaks some of the backward compatibility. If it didn’t, we probably would have called it 1.6.2.0 For starters, 1.6 themes will not work on 1.7. That’s a definite. We rewrote the way themes are made, and theme designers will be delighted to find in the new Starter Theme a solid foundation for their own themes. With this foundation, new themes can be created in half the time it took to create a 1.6 theme. Now, about modules. All well-written 1.6 modules should work with little to no changes in 1.7, except: Those which target the theme/front office – because we rewrote the way themes are written. Those which target the Product page – because the DOM of this page has changed. Those which target the Modules page – again, because the DOM of this page has changed. What this means for any upgrade is that in order for a PS 1.6 to migrate to PS 1.7, you (or your agency) will have to: Rewrite the theme, ideally using the Starter Theme or the default theme. Adapt the Product page modules (CSS and JavaScript). Adapt the Modules page modules (CSS and JavaScript). Test all the other modules – as you would for any new release. In any case, we advise you to make sure that your module does work in PrestaShop 1.7 before you upgrade. Edited August 30, 2017 by Ferico (see edit history) Link to comment Share on other sites More sharing options...
webeshop Posted August 30, 2017 Share Posted August 30, 2017 Problem is in database. Tables ps_access and ps_authorization_role are empty... I think the problem is in autoupgrade module. Link to comment Share on other sites More sharing options...
P010 Digital Media Posted April 12, 2018 Share Posted April 12, 2018 I recently had this problem during a series of updates, and it bothered me that - apart from a complete roleback, no fix can be found on this mather. First from 1.6 to 1.7, everything went well. Second 1.7.0 to 1.7.3 - in the middle of updating I obtain an jqXhr error and from this moment PrestaShop start being broken: Symptoms - blank page on login. - /[admin]/index.php?controller=adminselfupgrade still reachable, but says it's already updated to the latest version. - The following errors in the error.log: PHP message: PHP Fatal error: Uncaught Exception: The slug ROLE_MOD_TAB__READ is invalid in The real problem: In order to reproduce the process, I setup a backup on another server, and walked trough the process of upgrading from 1.6 to 1.7. After this has been done, I walk trough the databases to compare the correct 1.7 and the errorous 1.7.3 to check for any differences. As mentioned above, `ps_access` and `ps_authorisation_role` are empty. But so are `ps_tab` and `ps_tab_role`. Especially the last two are causing PrestaShop to fail on startup. Solution: As an alternative for a full backup: Retreiving a copy of these 4 tables from your backup data and placing them back should fix your PrestaShop interface. Good luck! Link to comment Share on other sites More sharing options...
chihabi.rach Posted May 15, 2018 Share Posted May 15, 2018 Put this line in your class's constructor method : $this->tabAccess = Profile::getProfileAccess($this->context->employee->id_profile, Tab::getIdFromClassName('DEFAULT')); Link to comment Share on other sites More sharing options...
Kogkalidis Posted August 11, 2018 Share Posted August 11, 2018 In my case I had misconfigured function postProcess in one of my custom module’s admin controllers. When I commented out the specific function, back to normality. Link to comment Share on other sites More sharing options...
Tiendas Multisports Posted April 26, 2020 Share Posted April 26, 2020 On 5/15/2018 at 12:26 PM, chihabi.rach said: Put this line in your class's constructor method : $this->tabAccess = Profile::getProfileAccess($this->context->employee->id_profile, Tab::getIdFromClassName('DEFAULT')); Could you explain how to do this? 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