Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Plugin Contributions
    0

    Default Who's online not working correctly

    Since transferring the site to a new server the who's online feature has not been working properly. Takes ages to load when you click it or refresh it, and shows everyone as having active or inactive carts. I tried to replace the file with one from my original ftp backup but no change. Any suggestions on how to fix this or what is causing it most welcome! :)

  2. #2
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,519
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    It could be your sever that your site is hosted it could be slow. You might need to check with them.

  3. #3
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    I have the same problem. Spider sessions show as 'Inactive no cart', but all others have active or inactive carts, which seems a bit improbable.

    The box showing cart contents is also missing.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online not working correctly

    If you could test your whos_online file by editing the file:
    /admin/whos_online.php

    and around line 45 change the code from:
    Code:
      // longer than 2 minutes light color
      $xx_mins_ago_long = (time() - WHOIS_TIMER_INACTIVE);
    to read:
    Code:
      // longer than 2 minutes light color
      $xx_mins_ago_long = (time() - WHOIS_TIMER_INACTIVE);
    
      echo 'I SEE ' . $which_query->fields['value'] . '<br>';
    then run the file, and see if you see english like text or garbage ...

    If you see garbage, change that code to read:
    Code:
      // longer than 2 minutes light color
      $xx_mins_ago_long = (time() - WHOIS_TIMER_INACTIVE);
    
      echo 'I SEE ' . base64_decode($which_query->fields['value']) . '<br>';
    do you see english like text or garbage?

    If you now see english like text, try changing the code around line 56 to read:
    Code:
        case (strstr(base64_decode($which_query->fields['value']),'"contents";a:0:')):
    and line 63 to read:
    Code:
        case (!strstr(base64_decode($which_query->fields['value']),'"contents";a:0:')):
    If, when the cart has something in it, you cannot see the detail, be sure that you are storing sessions to the database, as you cannot see the content unless you are ...

    If you are storing to the database and still cannot see the content, try to edit the line at 386 from:
    Code:
          $session_data = trim($session_data->fields['value']);
    to read:
    Code:
          $session_data = trim(base64_decode($session_data->fields['value']));
    do these help?

    NOTE: Save a good copy of your current whos_online.php before trying these changes ...

    NOTE: these changes are NOT needed for all servers and should not be made unless there is a problem
    Last edited by Ajeh; 14 Jan 2010 at 09:38 PM.
    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: v1.5.5]
    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. #5
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    Hi Ajeh,

    Thanks for your prompt reply.

    This doesn't appear to be the problem, as the ECHO gave me english text right from the start.

    It actually looks as if it might be some kind of timeout issue, as the page is never completely loaded. Do you know what else I could check?

    Thanks!

  6. #6
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    If, when the cart has something in it, you cannot see the detail, be sure that you are storing sessions to the database, as you cannot see the content unless you are ...
    Perhaps this is the problem? My zen_sessions table only contains 4 rows - is this the table I should be checking?

    If I'm not storing sessions, how do I do so?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online not working correctly

    Check your two configure.php files:
    /includes/configure.php
    /admin/includes/configure.php
    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: v1.5.5]
    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!

  8. #8
    Join Date
    Oct 2008
    Posts
    28
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    Both these files contain the line:

    define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

    Is that what I'm looking for?

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Who's online not working correctly

    That means you are storing the sessions in the database ...

    What version php?

    What version MySQL?

    Also check on your Tools ... Server Info ... for the values of:
    suhosin.session.encrypt
    suhosin.server.encode

    NOTE: You may or may not have those values, depending on the server ...
    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: v1.5.5]
    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!

  10. #10
    Join Date
    Sep 2008
    Posts
    108
    Plugin Contributions
    0

    Default Re: Who's online not working correctly

    I'm having the same problem after I moved my shop, and none of these fixes work for me... I get the "I SEE", but only if nothing's in the cart. It's garbage if there is...

    Checked both configure-files, look good as far as I can see. No suhosin either.

    Any ideas..?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Who's Online not working, no data, no suhosin
    By BigD2013 in forum General Questions
    Replies: 1
    Last Post: 13 Mar 2013, 01:07 AM
  2. Replies: 3
    Last Post: 17 Jul 2012, 07:15 AM
  3. Who's Online, carts not showing
    By psr racing in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 29 Jan 2011, 07:07 AM
  4. Who's Online is not working correctly
    By SpringGal in forum General Questions
    Replies: 4
    Last Post: 16 Dec 2010, 09:27 AM
  5. Who's Online not working right
    By WeFoundEm in forum Basic Configuration
    Replies: 5
    Last Post: 25 Nov 2010, 07:51 PM

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