Page 1 of 1

Warning: setcookie() expects parameter 3 error during install

Posted: Tue Oct 16, 2018 7:27 pm
by kisanjong
Hi Can anyone help me with the fix to this error please.

Warning: setcookie() expects parameter 3 to be integer, string given in /******/********/public_html/system/framework.php on line 108
oc1.gif

oc1.gif (41.92 KiB) Viewed 2242 times

after clicking continue i cant even view the install page as this error shows.
oc2.gif

oc2.gif (10.38 KiB) Viewed 2242 times

i have installed opencart version 1 and 2 over the years but never had this until i decided to install the new version 3

thanks

Re: Warning: setcookie() expects parameter 3 error during install

Posted: Wed Oct 17, 2018 9:14 pm
by synapseindia
Please check you server requirements based on below required settings/requirements -

http://docs.opencart.com/en-gb/requirements/

Re: Warning: setcookie() expects parameter 3 error during install

Posted: Thu Oct 18, 2018 1:30 pm
by kisanjong
Thanks I've already checked this and all the requirements are installed and active, to me this is a bug.

If install manually I get this error, if I use
cpanels Softaculous I get passed the second error install but still have the first error.

Development team can you check this please.

Thanks

Re: Warning: setcookie() expects parameter 3 error during install

Posted: Thu Oct 18, 2018 2:12 pm
by kisanjong
fwiw i tested installing opencart 2 and had no problems..

Re: Warning: setcookie() expects parameter 3 error during install

Posted: Thu Oct 18, 2018 7:57 pm
by ADD Creative
Check what your PHP setting 'session.cookie_lifetime' is. It should usually be 0.

You can use phpinfo to find out.
http://php.net/manual/en/function.phpinfo.php

Re: Warning: setcookie() expects parameter 3 error during install

Posted: Thu Oct 18, 2018 11:38 pm
by kisanjong
ADD Creative wrote:
Thu Oct 18, 2018 7:57 pm
Check what your PHP setting 'session.cookie_lifetime' is. It should usually be 0.

You can use phpinfo to find out.
http://php.net/manual/en/function.phpinfo.php
My hero :D that fixed it thank you :clap: