hishak Posted September 2, 2016 Share Posted September 2, 2016 Hi, just added SSL certificate and this notice started showing up in the back office admin for 1.4.9.0. Notice: Use of undefined constant _PS_SSL_ENABLED - assumed '_PS_SSL_ENABLED' in /home2/mysitelogin/public_html/presta/psadmin/init.php on line 53 Here is line 53: Everything seems to be working. Wondering how to remove this notice. Preferences/Enable SSL/ was always set to YES. thx Link to comment Share on other sites More sharing options...
rocky Posted September 3, 2016 Share Posted September 3, 2016 It would seem there's a bug in PrestaShop v1.4.9 on line 53 of admin/init.php. It is convention to have a _ at the end of constants, so try using _PS_SSL_ENABLED_ instead of _PS_SSL_ENABLED Link to comment Share on other sites More sharing options...
hishak Posted September 3, 2016 Author Share Posted September 3, 2016 That worked, notice gone. Appreciate fast response. btw, even though the next line (54) of code is not throwing any notice/error, should it be updated also with the underscore? Here is line 54: Link to comment Share on other sites More sharing options...
rocky Posted September 4, 2016 Share Posted September 4, 2016 Better to change all _PS_SSL_ENABLED to _PS_SSL_ENABLED_ just in case. Link to comment Share on other sites More sharing options...
I_CaR Posted August 10, 2018 Share Posted August 10, 2018 On 03.09.2016 at 4:02 AM, hishak said: ... Notice: Use of undefined constant _PS_SSL_ENABLED - assumed '_PS_SSL_ENABLED' in /home2/mysitelogin/public_html/presta/psadmin/init.php on line 53 ... Take this parameter _PS_SSL_ENABLED in single quotes 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