robertocommerce Posted July 5, 2019 Share Posted July 5, 2019 (edited) Hi everyone, I hope you can help me. I have prestashop 1.6.1.20 I saw in the register of my site the presence of an PHP error continuously inside a file of my theme mod_fcgid: stderr: PHP Notice: Undefined index: available_now in /var/www/vhosts/mysite.com/httpdocs/cache/smarty/compile/73/72/37/7372374338fac62c89d64bd39de5ced574b33365.file.product-slider.tpl.php on line 235 in the file on line 235 this is present: Can you help me understand what the problem is? Thanks to all Edited July 5, 2019 by robertocommerce (see edit history) Link to comment Share on other sites More sharing options...
Wuschel Posted July 5, 2019 Share Posted July 5, 2019 This is just a PHP notice, not an error. No need to worry about, just ignore it. Link to comment Share on other sites More sharing options...
Rhobur Posted July 7, 2019 Share Posted July 7, 2019 Just a notice saying that the available_now variable is used but not being previously declared; it shouldn't affect anything but in case i does you can go where it is used the first time and just a line/block above declare it. Link to comment Share on other sites More sharing options...
robertocommerce Posted July 9, 2019 Author Share Posted July 9, 2019 I posed myself the problem because in the registers it is displayed continuously .. and I was wondering if there was no way to stop it from being displayed with a correction... Link to comment Share on other sites More sharing options...
Rhobur Posted July 9, 2019 Share Posted July 9, 2019 yes it is, lust like I said above, you just need to go to that file and declare it yourself. Link to comment Share on other sites More sharing options...
robertocommerce Posted July 9, 2019 Author Share Posted July 9, 2019 can you please help me do it ?, I don't have much experience with these codes.. should I edit the product-slider.tpl file? Link to comment Share on other sites More sharing options...
Rhobur Posted July 9, 2019 Share Posted July 9, 2019 yes, you should; there is no product-slider.tpl in the default bootstrap them of 1.6.1.20 that I can check so I guess you are using a third party theme. If you know how, look for that available_now variable and initialize it somewhere above the line where it is used the first time. Link to comment Share on other sites More sharing options...
robertocommerce Posted July 9, 2019 Author Share Posted July 9, 2019 Yes, I don't use the original theme, can I send you the product-slider.tpl file to help me verify? Link to comment Share on other sites More sharing options...
Rhobur Posted July 9, 2019 Share Posted July 9, 2019 you can attach it here but I don't have time today maybe tomorrow, afternoon hopefully... Link to comment Share on other sites More sharing options...
robertocommerce Posted July 11, 2019 Author Share Posted July 11, 2019 Thanks for your help, when you can it will be ok for me, I am attaching the file product-slider.tpl Link to comment Share on other sites More sharing options...
Rhobur Posted July 11, 2019 Share Posted July 11, 2019 try with this one (remove the _ before the name, it is added just to not overwrite the original). _product-slider.tpl 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