If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / Blank pages because of long (session?) urls

Blank pages because of long (session?) urls

Started by einarso on 4 Jan 2013, 7:07 PM · Views: 2,017

Results 1 to 16 of 16
4 Jan 2013, 7:07 PM
#1
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Blank pages because of long (session?) urls

Hi,
I am struggling with a problem on my site. It seems that when I arrive on the site, and choose a product directly from one of the highlighted/random products (the middle area), I get a blank page and a very, very long URL. One example of the URL is:
http://www.altikost.no/index.php?main_page=product_info&cPath=65&products_id=206&zenid=ftul8a4clll2q5j7lm1qtpo09rhj6p9f950psvjo927dcj29bbm9b31i0svldikscc5rn8o4uqit2si2hev9cg0ouevrcmj74kuser2

If I click the banner first, I am able to chose products from the front page at will - until my next session it seems.

Can anyone help me with this?

4 Jan 2013, 7:48 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank pages because of long (session?) urls

This is on php v5.5, correct?

And, you previously changed the length of your sesskey to 128, correct?

if you know the location of your php.ini, can you please post here the values for:
session.hash_bits_per_character
session.hash_function

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jan 2013, 8:23 PM
#3
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

I believe I am running php 5.3.15.

You are correct that I recently changed the length of my sesskey to 128.

Here are the full lines I can find in php.ini:

; session.hash_bits_per_character
; Default Value: 4
; Development Value: 5
; Production Value: 5

session.hash_bits_per_character = 5

session.hash_function = sha512

4 Jan 2013, 8:40 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank pages because of long (session?) urls

Could you go into your Zen Cart Admin ... and into the Tools ... Server Info ... and check the exact php version that shows?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jan 2013, 9:00 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank pages because of long (session?) urls

What happens if you change the length from 128 to 255?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Jan 2013, 10:13 PM
#6
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

Server Information

Server OS: Darwin 12.2.0 Database: MySQL 5.5.29
Server Date: 01/04/2013 23:06:40 Database Date: 01/04/2013 23:06:40
Server Up Time: 23:06 up 13:57, 1 user, load averages: 1.22 0.91 0.71 HTTP Server: Apache/2.2.22 (Unix) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.3.15 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2
PHP Version: 5.3.15 (Zend: 2.3.0) PHP Memory Limit: 128M PHP Safe Mode: Off
PHP File Uploads: On Max Size: 2M POST Max Size: 8M

4 Jan 2013, 10:19 PM
#7
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

Ajeh:

What happens if you change the length from 128 to 255?

...not very much I think. Site seems to work the same way.

4 Jan 2013, 11:47 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Blank pages because of long (session?) urls

Is this a clean install or an upgrade?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Jan 2013, 6:19 AM
#9
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

It is an upgrade, but it had been running without any problems for a year before I upgraded my server from Lion to Mountain lion and had to restore my database. See theses threads:
http://www.zen-cart.com/showthread.php?204264-Need-help-with-a-mysterious-problem
http://www.zen-cart.com/showthread.php?204308-Full-menu-not-showing-in-Zen-Cart-admin

My php-info file:
http://www.altikost.no/info.php

5 Jan 2013, 7:38 PM
#10
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,949
Plugin Contributions:
3

Re: Blank pages because of long (session?) urls

k,

I notice you have suhosin running. It may be having some affect, or not.

To see if it is.

can you edit your php.ini

and see if there is a line like

suhosin.simulation = xxxx

change the line to (or add the line if its not already there) to

suhosin.simulation = on

restart apache and try again

you can also get the same affect by editing the .htaccess in the root of your shop and adding this line

php_flag suhosin.simulation On

5 Jan 2013, 7:49 PM
#11
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,949
Plugin Contributions:
3

Re: Blank pages because of long (session?) urls

You might also want to check your syslog to see if suhosin is generating errors

Normally this is /var/log/messages

but might be

/var/log/system.log on your Mac

5 Jan 2013, 10:22 PM
#12
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

The suhosin line was not in the php.ini file, so I added it and restarted apache. Does not seem to have had any effect :(

6 Jan 2013, 9:13 AM
#13
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

wilt:

You might also want to check your syslog to see if suhosin is generating errors

/var/log/system.log on your Mac

I can not find any suhosin errors, but the file certainly contains error. See:
http://www.altikost.no/system.txt

...don't know if anything is of interest relating to this matter though....

6 Jan 2013, 5:32 PM
#14
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,949
Plugin Contributions:
3

Re: Blank pages because of long (session?) urls

k,

I have been looking in all the wrong places for the problem :)

Its actually cause by some security code in application_top.php

      if (isset($_GET[$key]) && strlen($_GET[$key]) > 43) {
        $contaminated = true;
        break;
      }

change the 43 to something like 199 and you should be OK.

This is on our workboard to address for v1.6

6 Jan 2013, 7:27 PM
#15
einarso avatar

einarso

New Zenner

Join Date:
Nov 2011
Posts:
45
Plugin Contributions:
0

Re: Blank pages because of long (session?) urls

Fantastic! Seems like the site is back on track :)

Should I keep the sesskey at 255 or change it back to 128?

6 Jan 2013, 7:28 PM
#16
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,949
Plugin Contributions:
3

Re: Blank pages because of long (session?) urls

I would leave it at 255.

While it may seem excessive at the moment, 128 would have seemed excessive a year or 2 ago :blink: