Page 4 of 6
Re: Store Cookie In Internal Cache
Posted: Thu Dec 20, 2018 1:40 pm
by catimemoy
tubeman wrote: Thu Dec 20, 2018 9:52 am
Hi,
I'm still seeing these in php logs, it dosen't happen every minute but happens alot throughout the day:
[19-Dec-2018 02:50:45 America/New_York] PHP Warning: (null)(): 38685 is not a valid cURL handle resource in Unknown on line 0
[19-Dec-2018 03:01:06 America/New_York] PHP Notice:
ascensori Alessandria Tortona index: HTTP_HOST in /home/httpd/html/domain.com/public_html/scj/includes/libs/Cookie.class.php on line 10
In SSH I did the test to see if HTTP_HOST variable gets passed,and it passed. Its happening only for Cookie.class.php. Sites are working fine, don't see any errors on sites.Any idea what could be causing this?
Regards,
In PHP, the cookie is not actually set until the page reloads. You're creating the cookie then immediately trying to get a value from $_COOKIE, but that value doesn't exist yet in $_COOKIE
try to fix this
Re: Store Cookie In Internal Cache
Posted: Thu Dec 20, 2018 3:49 pm
by admin
it's not about setting $_COOKIE, sorry
Re: Store Cookie In Internal Cache
Posted: Fri Dec 21, 2018 9:30 am
by tubeman
Any idea as to how to fix this?
Re: Store Cookie In Internal Cache
Posted: Fri Dec 21, 2018 3:43 pm
by admin
fix what ?
Re: Store Cookie In Internal Cache
Posted: Fri Dec 21, 2018 5:50 pm
by tubeman
This type of notices in php logs for sites:
[19-Dec-2018 03:01:06 America/New_York] PHP Notice: Undefined index: HTTP_HOST in /home/httpd/html/domain.com/public_html/scj/includes/libs/Cookie.class.php on line 10
Re: Store Cookie In Internal Cache
Posted: Fri Dec 21, 2018 6:04 pm
by admin
that's an old one, before update
Re: Store Cookie In Internal Cache
Posted: Fri Dec 21, 2018 8:49 pm
by tubeman
Checked php logs still shows:
[21-Dec-2018 12:46:50 America/New_York] PHP Notice: Undefined index: HTTP_HOST in /home/httpd/html/domain.com/public_html/scj/includes/libs/Cookie.class.php on line 11
Re: Store Cookie In Internal Cache
Posted: Sat Dec 22, 2018 4:31 am
by admin
Ok, send me access to that where you see that notice
Re: Store Cookie In Internal Cache
Posted: Tue Jan 08, 2019 9:52 am
by tubeman
Hi,
If I use Store cookie in internal cache for a site:
1.)Where does the cookie get stored on the site/server.
2.) If I move site to another server do I need to copy any additional data for the cookies?
3.) Any settings in php to change if site traffic is high and using option to store cookie in internal cache.
Please let me know.
Regards,
Re: Store Cookie In Internal Cache
Posted: Tue Jan 08, 2019 12:03 pm
by admin
1. cache
2. no, the script will recreate it
3. no, just user modern cache engines