FerrA Posted February 19 Share Posted February 19 Hi to all guys, when I enable de debug mode my products page not open more, I will see the follow errors. Anyone can help me and tell me how to fix it? If I disable the debug mode the product page will open correctly ( ! ) Warning: Undefined array key "available_now" in .../controllers/front/ProductController.php on line 705 ( ! ) Warning: Undefined array key "available_later" in .../controllers/front/ProductController.php on line 706 I am using PS 8.1.2 on dedicated server apache+nginx with php 8.1 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 19 Share Posted February 19 Hi, this is just a warning not an error. If you really want to avoid it, you need to open an issue on Prestashop GitHub if not already exists. Link to comment Share on other sites More sharing options...
FerrA Posted February 19 Author Share Posted February 19 Ues I know, but how I can fix it? Link to comment Share on other sites More sharing options...
Prestashop Addict Posted February 19 Share Posted February 19 il y a 1 minute, FerrA a dit : Ues I know, but how I can fix it? You need to code in php to check if the key exists in array with if( isset(... But it will be better to made a pull request with your modification to the community project 😉 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