Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default zen id and blank pages for first view...

    Hi,

    We are getting an issue with our website, when you initially visit the site, the first time you move from the home page the ZEN ID shows in the address bar and the page is blank! Reloading the page won't fix it either, you need to go back and then click the link again. It's obviously something to do with the sessions, but I'm not sure how to go about fixing it, any ideas?

    I am running v1.3.6 patch 1

    Thanks!

  2. #2

    Default Re: zen id and blank pages for first view...

    Can you post the url so people can see the problem in action.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: zen id and blank pages for first view...

    You *really* need to upgrade ASAP. Your old version was released in October 2006, and has well-known security vulnerabilities.
    Plus, most troubleshooting advice is geared around current versions, making it hard to assist you. Such as this one ... which points you to troubleshooting tools that are built-in since 2010 when v1.3.9 was released: http://www.zen-cart.com/content.php?124-blank-page
    And hundreds of bugfixes have been included in versions released after yours.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: zen id and blank pages for first view...

    Quote Originally Posted by DrByte View Post
    You *really* need to upgrade ASAP. Your old version was released in October 2006, and has well-known security vulnerabilities.
    Plus, most troubleshooting advice is geared around current versions, making it hard to assist you. Such as this one ... which points you to troubleshooting tools that are built-in since 2010 when v1.3.9 was released: http://www.zen-cart.com/content.php?124-blank-page
    And hundreds of bugfixes have been included in versions released after yours.
    I would love to but we have made WAY too many small modifications to our site, updating would simply break our site and undo everything. We will rebuild the whole site next year in any case. I'm just looking for a fix in the mean time.
    Last edited by gabiosz; 19 Dec 2012 at 02:48 PM.

  5. #5
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: zen id and blank pages for first view...

    It's actually not entirely a blank page but a 406 error. I noticed this while trying it in IE9 rather than Firefox.

    Having hear that there are a lot of security vunerabilities, I'm not reluctant to share my URL

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: zen id and blank pages for first view...

    Quote Originally Posted by gabiosz View Post
    It's actually not entirely a blank page but a 406 error. I noticed this while trying it in IE9 rather than Firefox.
    406 errors are often the result of something triggering Apache's mod_security rules.
    The best (only?) way to solve this is to work with you host to see exactly what it is that is triggering the error.

    Quote Originally Posted by gabiosz View Post
    Having hear that there are a lot of security vunerabilities, I'm not reluctant to share my URL
    I assume you meant to say that you ARE reluctant to share your URL, and in this case I fully agree with you. The script kiddies do follow these forums looking for vulnerable sites that are publicly advertised as such. If you must share your URL do so in PM only. Personally I don't think it'll be of any help to us anyway.

    As DrByte stated, your version is really old, which is going to make it very difficult to debug without a lot of information that isn't available to us (and some will only be available to your host).

    The important thing in finding a fix though, is trying to determine what got changed to have caused to problem. You may well be using old code, but it isn't as though the code will 'wear out' - *something* must have changed recently in order to cause this (assumedly) recent problem. If you didn't change anything, then your host did. Ask them!

    Cheers
    Rod

  7. #7
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: zen id and blank pages for first view...

    Quote Originally Posted by RodG View Post
    406 errors are often the result of something triggering Apache's mod_security rules.
    The best (only?) way to solve this is to work with you host to see exactly what it is that is triggering the error.



    I assume you meant to say that you ARE reluctant to share your URL, and in this case I fully agree with you. The script kiddies do follow these forums looking for vulnerable sites that are publicly advertised as such. If you must share your URL do so in PM only. Personally I don't think it'll be of any help to us anyway.

    As DrByte stated, your version is really old, which is going to make it very difficult to debug without a lot of information that isn't available to us (and some will only be available to your host).

    The important thing in finding a fix though, is trying to determine what got changed to have caused to problem. You may well be using old code, but it isn't as though the code will 'wear out' - *something* must have changed recently in order to cause this (assumedly) recent problem. If you didn't change anything, then your host did. Ask them!

    Cheers
    Rod
    Sorry, yes, I meant that I am reluctant to share the URL knowing that there are potential issues. I'm not sure it would help in any case, as you rightly point out it seems to be an Apache/PHP thing.

    It seems to have started when we added a display in stock only filter, which appends the URL with: ?stock_filter=in_stock
    , but i can't be sure, I'll have to disable this and check again.

    Our site has been so heavily modified at a code level, there's just no hope of bringing it up to date at this stage.

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: zen id and blank pages for first view...

    there's just no hope of bringing it up to date at this stage.
    Best to do it on your schedule versus getting hacked and being down while you then have to clean it up and then upgrade it

  9. #9
    Join Date
    Apr 2011
    Posts
    8
    Plugin Contributions
    0

    Default Re: zen id and blank pages for first view...

    I hear what everyone is saying, and a new site is already in the making, in the mean time I have managed to fix this issue.

    For reference, the includes/application_top.php includes a parameter check that will throw up a 406 error if the URL sting exceeds 43 characters. A bit short with more modern hash lengths, especially if you have some additional parameters appended to the URL.

    On line 25 (in my version) of the includes/application_top.php, it shows
    Code:
    if (isset($_GET[$key]) && strlen($_GET[$key]) > 43) {
    Change 43 to a more suitable higher number and the 406 error disappears for me.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: zen id and blank pages for first view...

    Keep in mind that changing that number arbitrarily is foolish. Changing it to a SPECIFIC value for SPECIFIC reason and NO LARGER THAN ABSOLUTELY NEEDED is key. Otherwise it totally defeats the purpose of that whole section of code, which is intended to minimize abuse and improve performance even when under attack.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Different Images for listing view and product view
    By MikeBryan90 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Feb 2012, 10:24 PM
  2. Paypal Shipping Address is blank/empty in Admin and My Account view
    By NamSingh in forum PayPal Express Checkout support
    Replies: 0
    Last Post: 7 Apr 2008, 02:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg