Jump to content

Error message on entering the admin [1.7.0.2]


leafface

Recommended Posts

Hello,

 

I have just installed Prestashop 1.7.0.2.

As I enter the admin page, a dialog box appears with 4 times the same error message:

 

Warning on line 66 in file /web/sdc/soulinteriors.hu/__ps/config/smartyadmin.config.inc.php
[2] Cannot use a scalar value as an array

 

You can also take a look at this in the attachment.

 

Line 66 looks like this:

$sprintf['legacy'] = $htmlEntities ? 'htmlspecialchars': 'addslashes';

I added the following code before this line, which is supposed to do no harm:

if (!is_array($sprintf)) $sprintf = array();

This of course removes the error messages, but it will get deleted the first time Prestashop is updated.

 

Does anyone have a better solution for this?

Thanks.

post-846434-0-11792800-1480520823_thumb.png

Edited by leafface (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...