PDA

View Full Version : Problem with cookies


subnet_rx
09-21-2007, 08:19 AM
I having a problem with visitors accessing my site. vbDrupal is my home page and if you try to access the home page first, then you have to wait 20-30 seconds for it to load. It doesn't download content that entire time, it just sits, then instantly pops up. I also have normal caching enabled. Some users say they just get a blank white page. If you access other areas of the site first, this problem doesn't occur. My web host tells me it is a problem with the script and cookies. vBDrupal keeps me logged in, so it finds the cookie, is it possible that it has to search for it every time?

Here's the site: My Hattiesburg (http://www.myhattiesburg.com/)

elmuerte
09-30-2007, 08:25 AM
yes it is a cookie issue (e.g. disabling cookies breaks the site).
this is probably cause by something accessing the cookie data when it doesn't exist (happens when you're new to the site or have cookies disabled).

vbDrupal doesn't directly read the cookie data, so it's probably a 3rd party script that is causing the problem. To figure out what is causing the issue you will need to look at the webserver's error.log and/or PHP error messages. Since you're host already identified the cookie issue they might be able to provide you with the error message (or at least the info the used to figure out it was a cookie issue).

subnet_rx
10-01-2007, 08:35 AM
Thanks for pointing me in the direction of the error logs. What is this?

[Mon Oct 1 07:03:00 2007] [error] PHP Fatal error: Call to undefined function drupal_get_headers() in /public_html/includes/vbdrupal/session.inc on line 190

Christoph
10-05-2007, 03:31 AM
Hi, I got the same problem with my vbdrupal 5.2.2 installation. It seems that the drupal_get_headers() function isn't always available if drupal uses a cached version (normal cache mode) of a page.

john.s
10-10-2007, 11:06 PM
try going into "cookies and http header options"
turn on "add no-cache http headers"

see if that works for you.

Christoph
10-11-2007, 03:52 AM
I'll try it, but why should that setting have any influence? It's clearly a server side (php problem) and not a client side caching issue.

elmuerte
10-14-2007, 10:50 AM
ah thank for the error report, will fix it asap

As a quick fix download this file (https://vbdrupal.svn.sourceforge.net/viewvc/*checkout*/vbdrupal/trunk/vbdrupal-ng/drupal/includes/vbdrupal/session.inc?revision=655)and save it in drupal/includes/vbdrupal

this fix will be included in vbDrupal 5.2.3

Tom-E
10-17-2007, 12:09 AM
thanks for the quick fix :-), also needed it