Gigi76 Posted April 4, 2019 Share Posted April 4, 2019 Hi everyone , I ask help community because I am a newbie in PrestaShop. My configuration is: Windows Server 2019 Microsoft-IIS 10.0 PHP 7.2.16 PhpMyAdmin 4.8.5 (update from 4.1.9) MySQL 5.6.16.0 Prestashop 1.7.5.1 I have terminate the installation but when I use the Control Panel I have two problem: First Design -> Positions Appear white page with message: PHP Notice: Undefined index: icon in C:\inetpub\wwwroot\var\cache\prod\smarty\compile\20\ee\e6\20eee688fd01d1bc41ae6d1578e4492410fbb529_0.file.page_header_toolbar.tpl.php on line 232 If I open the file “20eee688fd01d1bc41ae6d1578e4492410fbb529_0.file.page_header_toolbar.tpl.php” on line 232 is indicated: <i class="material-icons"><?php echo $_smarty_tpl->tpl_vars['btn']->value['icon'];?> Second Payment -> Payment methods Appear white page with message: PHP Warning: Use of undefined constant ADMIN_LEGACY_CONTEXT - assumed 'ADMIN_LEGACY_CONTEXT' (this will throw an Error in a future version of PHP) in C:\inetpub\wwwroot\modules\ps_mbo\ps_mbo.php on line 320 If I open the file “ps_mbo.php” on line 320 I see: if (ADMIN_LEGACY_CONTEXT === true) { Can you help me? Thanks in advance for any help! Kind regards Link to comment Share on other sites More sharing options...
Janett Posted April 4, 2019 Share Posted April 4, 2019 (edited) 1. You can edit YOUR-ADMIN-FOLDER/themes/new-theme/template/page_header_toolbar.tpl Search <i class="material-icons">{$btn.icon}</i> REPLACE BY {if !empty($btn.icon)}<i class="material-icons">{$btn.icon}</i>{/if} 2 . You can uninstall the module ps_mbo without risk, its just a marketing module of PrestaShop for Addons Marketplace. Edited April 4, 2019 by Janett (see edit history) 1 1 Link to comment Share on other sites More sharing options...
Gigi76 Posted April 4, 2019 Author Share Posted April 4, 2019 7 minuti fa, Janett dice: You can uninstall the module ps_mbo without risk, its just a marketing module of PrestaShop for Addons Marketplace. Hi Janett, thank you for your suggestion! I'll update you after I do the test 1 Link to comment Share on other sites More sharing options...
Gigi76 Posted April 6, 2019 Author Share Posted April 6, 2019 On 4/4/2019 at 9:43 AM, Janett dice: 1. You can edit YOUR-ADMIN-FOLDER/themes/new-theme/template/page_header_toolbar.tpl Search <i class="material-icons">{$btn.icon}</i> REPLACE BY {if !empty($btn.icon)}<i class="material-icons">{$btn.icon}</i>{/if} 2 . You can uninstall the module ps_mbo without risk, its just a marketing module of PrestaShop for Addons Marketplace. Hi Janett, your suggestion went to fruition. Thank you so much for the help! Link to comment Share on other sites More sharing options...
Payalba Posted June 14, 2019 Share Posted June 14, 2019 Hi, I replace the lien if (ADMIN_LEGACY_CONTEXT === true) { by if ($this->isAdminLegacyContext()) { Regards, PYT 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