leafface Posted November 30, 2016 Share Posted November 30, 2016 (edited) 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. Edited November 30, 2016 by leafface (see edit history) Link to comment Share on other sites More sharing options...
leafface Posted December 4, 2016 Author Share Posted December 4, 2016 I reinstalled Prestashop, and this issue was gone. This is SOLVED. 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