Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26
  1. #11
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by carlwhat View Post
    zean, where did you add this code?
    I added that non-syntactical garbage (adfgffdfhf erewererer) to the same file to see if I could get it to produce the myDEBUG-xxxxx-yyyyyy.log file which as I mentioned previously it did. I just did that to confirm I was looking in the right place for the error report which I was.

    Quote Originally Posted by carlwhat View Post
    i tried adding the SESSION_TIMEOUT_CATALOG to my test system and it worked fine
    Well that's baffling.

    Quote Originally Posted by carlwhat View Post
    which means the error is still getting logged to the system PHP logs. do you have access to those logs on your server?
    The problem does not get reported in the cpanel>statistics>Error Logs>PHP error_log

    Quote Originally Posted by carlwhat View Post
    have you tried adding echo statements in the suspect file before the include and right after the include?
    I tried removing the define statement and it sill bombs out with just this . . .
    Code:
    <?php ;
    I even tried adding removing everything from the added file . . . just an empty file and it produced this message in the firefox browser . . .
    Code:
    Content Encoding Error
    
    The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
    
        Please contact the website owners to inform them of this problem.
    and this in IE browser . . .
    Code:
    This page can’t be displayed
    
    •Make sure the web address http://www.mydomain.com is correct.
    •Look for the page with your search engine.
    •Refresh the page in a few minutes.
    
    Fix connection problems
    And, I tried just this code in the added file . . .
    Code:
    <?php echo "Hello" ;
    Which produced the same result as the empty file.

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Keep Shopping Cart From Expiring So Fast

    zean,
    if you go to the admin -> tools -> server/version info and lookup:

    zlib.output_compression

    what is the value?

    i think it is currently off... and you need to turn it on...

    assuming you are on a shared host, you can contact your hosting company about a local version of the your php.ini file and do an override of that value. your hosting company should be able to help you with it....

    it DEFINITELY is a configuration issue on the server, based on your information. and it IS something your hosting company should be able to help resolve with you.

    good luck. let us know how it goes!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by carlwhat View Post
    zean,
    if you go to the admin -> tools -> server/version info and lookup:

    zlib.output_compression

    what is the value?

    i think it is currently off... and you need to turn it on...
    Yes, shared hosting at BlueHost.

    Actually, my zen cart configuration turns GZip Compression on . . .

    admin>configuration>Enable GZip Compression=1

    And here is the zlib.output_compression info from admin>tools>server/version info
    Code:
    Directive	Local Value	Master Value
    zlib.output_compression	On	Off
    zlib.output_compression_level	1	-1
    zlib.output_handler	no value	no value
    I suspect the compression issue firefox is reporting is a result of the problem and not the cause of the problem.

    I think the fundamental question is why does my adding any file with a php extension to /includes/extra_configures/ break my zen cart?
    btw, it does NOT break the admin portion of zen cart. It 'just' breaks it for shoppers.

  4. #14
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by Zean View Post
    I suspect the compression issue firefox is reporting is a result of the problem and not the cause of the problem.

    I think the fundamental question is why does my adding any file with a php extension to /includes/extra_configures/ break my zen cart?
    btw, it does NOT break the admin portion of zen cart. It 'just' breaks it for shoppers.
    zean,
    #1 i think we are trying to find the answer to this fundamental question. and based on your information, i am convinced that there is a server configuration issue that is going on.
    #2 i do not think the admin loads this file, which is why the admin does not break.
    #3 what firefox is reporting is telling us the problem.

    "...The output of your application should only contain one output encoding. If you have multiple chunks that are encoded differently, then the browser will get a result that it is impossible to work with. Hence the encoding error...."

    a few other things to help in the trouble shooting.... i would first try turning off gzip compression in ZC. see what happens then....

    can you send me the URL of your site?

    if you open the developer tools, click on the network tab, and then click on the main script getting loaded, you should be able to see the accepted content-encoding.

    you really need to see the apache logs as opposed to the php logs on your server. the ZC logs report PHP errors, we are not getting a PHP error which is why you do not see a ZC log or a PHP log error. i'm sure there would be an error in the apache log.

    hope that helps. there are multiple compression encodings that seem to be happening at the same time.

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  5. #15
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by DrByte View Post
    Right above your injected code is code that checks whether SESSION_TIMEOUT_CATALOG is defined, and if so, uses that.

    Have you tried simply embracing that? Just create an /includes/extra_configures/my_ultra_long_session_timeout.php file and in it put:
    Code:
    <?php define('SESSION_TIMEOUT_CATALOG', 1441);
    Out of curiosity, I also did this with ZC v1.5.5 and no problems.

    As it can be helpful sometimes to get a second opinion, a site worth Bookmarking is:
    http://checkgzipcompression.com/

    See what it says for your site.

  6. #16
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Keep Shopping Cart From Expiring So Fast

    Sometimes copy-and-pasting from the forum can put hidden markup characters in the text. While that shouldn't normally introduce extra encoding, I've encountered situations where various sites whose markup for displaying source-code text introduces undesired extra characters when pasting. In those cases simply typing the intended code by hand solves the problem. (So does running it thru a "cleaner", but in the case of the code snipped I pasted earlier it's simple to type by hand.)
    Just a thought, to rule out one possible cause of issues.
    .

    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.

  7. #17
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by DrByte View Post
    Right above your injected code is code that checks whether SESSION_TIMEOUT_CATALOG is defined, and if so, uses that.

    Have you tried simply embracing that? Just create an /includes/extra_configures/my_ultra_long_session_timeout.php file and in it put:
    Code:
    <?php define('SESSION_TIMEOUT_CATALOG', 1441);

    Thanks DrByte!
    I finally got this to work just as you suggested. So, I've set it to 14400 (4 hours).
    I'm thinking of setting it to 1 month. Anything I should monitor?

  8. #18
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Keep Shopping Cart From Expiring So Fast

    I have mine set for 365 days, although I'm using keep cart which is excellent and no problem with 1.5.5f

  9. #19
    Join Date
    May 2009
    Posts
    186
    Plugin Contributions
    0

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by lankeeyankee View Post
    I have mine set for 365 days, although I'm using keep cart which is excellent and no problem with 1.5.5f
    Hey lankeeyankee, Good to know! So you've been running your cart with with SESSION_TIMEOUT_CATALOG set to around 1 year. That gives me more confidence to set mine to a month or two. Also, your use of Keep Cart is encouraging. I may try it. Most of my products have lots of attributes so I am mindful of what DrByte said here about cookie limits and possible concerns with an attribute intensive shop running Keep Cart.

  10. #20
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Keep Shopping Cart From Expiring So Fast

    Quote Originally Posted by Zean View Post
    HI am mindful of what DrByte said here about cookie limits and possible concerns with an attribute intensive shop running Keep Cart.
    And I stand corrected, I never saw this so thanks a bunch for pointing it out! Will look at changing since our new launch will have more complex attributes and other features. I didn't realize this was a constraint.

    Zen Cart and it's community are the best!!

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Keep shopping cart, hide prices.
    By computeaholic in forum Managing Customers and Orders
    Replies: 3
    Last Post: 19 Jan 2011, 02:25 PM
  2. I keep creating errors in shopping cart file
    By fishface in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Nov 2009, 11:47 PM
  3. Replies: 1
    Last Post: 10 Sep 2009, 09:14 PM
  4. How to keep site running fast?
    By wickedklown in forum General Questions
    Replies: 9
    Last Post: 8 Jan 2009, 11:03 PM
  5. Replies: 4
    Last Post: 12 Feb 2007, 06:34 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR