Guido Corbesier Posted August 22, 2022 Share Posted August 22, 2022 (edited) 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 August 22, 2022 by Guido Corbesier (see edit history) Link to comment Share on other sites More sharing options...
Guillaume_KS Posted November 23, 2022 Share Posted November 23, 2022 I have the same issue, is anyone had a solution ? Link to comment Share on other sites More sharing options...
Nickz Posted November 23, 2022 Share Posted November 23, 2022 15 minutes ago, Guillaume_KS said: I have the same issue, is anyone had a solution ? As the first post you need to give more info. Php version, upgrades, theme changes etc.. Link to comment Share on other sites More sharing options...
Guillaume_KS Posted November 23, 2022 Share Posted November 23, 2022 I found the solution, it was on a stock feed, and I send an empty array to be parsed while I had to ignore it: I had to change return [ ]; with continue; 1 1 Link to comment Share on other sites More sharing options...
Guido C. Posted November 29, 2022 Share Posted November 29, 2022 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. 2 Link to comment Share on other sites More sharing options...
TheCHE Posted December 14, 2022 Share Posted December 14, 2022 Hi guys. Can you share the solution please? I have the same error when I try to generate a refund invoice Link to comment Share on other sites More sharing options...
Guillaume_KS Posted December 14, 2022 Share Posted December 14, 2022 You can check if you don't send an empty array in your function. It was my bad Link to comment Share on other sites More sharing options...
Guido Corbesier Posted December 14, 2022 Author Share Posted December 14, 2022 In what function that would be? Link to comment Share on other sites More sharing options...
Guillaume_KS Posted December 14, 2022 Share Posted December 14, 2022 It can be anyone, for me, I was doing a specific development so it wasn't in a native function 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