Jump to content

FATAL error: Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0


Recommended Posts

After upgrading from 1.7.4.2 to 1.7.8.7 one of my custom php scripts gives

 ├------[FATAL ERROR]-->
Array
(
    [type] => 16384
    [message] => Not specifying the optional ShopConstraint parameter is deprecated since version 1.7.8.0
    [file] => /var/www/computercentrale/src/Adapter/Configuration.php
    [line] => 418
)

The script fails on the last line:

        require_once('../config/config.inc.php');
        require_once("lib/images.inc.php");
        define("ID_SHOP", 1 );
        define("ID_SHOP_GROUP", 1 );
        require_once("lib/ps/Prestashop15.class.php");

without any other information. In this last function it does not execute anything, it fails allready in the function __construct()

I have other scripts working fine.

Does anyone have the same issue, and how to resolve this. What exactly do you need to specify and where?

Any help is much appreciated!

Edited by Guido Corbesier (see edit history)
Link to comment
Share on other sites

  • 3 months later...

What Guillaume_KS mentions might be helpful, some code in prestashop has been changed, something with an array, could not find anything in documentation.

in my case, problem was a stock feed as well. I did the dirty fix in <prestashopinstall>/src/Adapter/Configuration.php to override the issue. If it would be helpful, i can share.

  • Like 2
Link to comment
Share on other sites

  • 2 weeks 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...