Store Cookie In Internal Cache

catimemoy
Posts: 1
Joined: Thu Dec 20, 2018 1:34 pm

Re: Store Cookie In Internal Cache

Post 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
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

it's not about setting $_COOKIE, sorry
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post by tubeman »

Any idea as to how to fix this?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

fix what ?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post 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
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

that's an old one, before update
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post 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
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

Ok, send me access to that where you see that notice
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Store Cookie In Internal Cache

Post 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,
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Store Cookie In Internal Cache

Post by admin »

1. cache
2. no, the script will recreate it
3. no, just user modern cache engines
Don't forget to run script update
Post Reply