Jump to content

PHP NOTICE & WARNING


Gigi76

Recommended Posts

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

20eee688fd01d1bc41ae6d1578e4492410fbb529_0.file.page_header_toolbar.tpl.jpg

ps_mbo.jpg

Link to comment
Share on other sites

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 by Janett (see edit history)
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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

  • 2 months later...

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...