Jump to content
medvid

Who's Online Enhancement 1.4

Recommended Posts

Not sure how long between deletions, but the old ones are deleted.

 

 

Is there anyone who is using beta 1.6 (file sessions NOT mysql) that could show me their session settings? Want to see if maybe it is messed up on my end.

 

I appreciate it.

Share this post


Link to post
Share on other sites

I installed 1.6 it sounds ok so far but I have to let it run for a while to make it sure.

 

 

2 define line of text are missing in the languages files:

 

TEXT_STATUS_ACTIVE_BOT

TEXT_STATUS_INACTIVE_BOT

Share this post


Link to post
Share on other sites
Is there anyone who is using beta 1.6 (file sessions NOT mysql) that could show me their session settings? Want to see if maybe it is messed up on my end.

 

I appreciate it.

Andrea,

 

I am currently set to files and have the following:

Title Value Action 

Session Directory          session 

Force Cookie Use          False 

Check SSL Session ID    False 

Check User Agent          False 

Check IP Address          False 

Prevent Spider Sessions True 

Recreate Session          False

Do you have the permissions on the session directory set to writeable? 666 or 777?

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites
Shane and everyone else!,-------Are you getting the lights?

 

Thanks,

Ed

 

Good suff Ed,

I'm on a different time zone here so better late than never!

 

Yes the lights, cart , the define for the language are all working fine. Added the flags to it as well, it looks great!

 

Thanks a lot for your work

 

Shane

Share this post


Link to post
Share on other sites
Andrea,

 

I am currently set to files and have the following:

 

Do you have the permissions on the session directory set to writeable?  666 or 777?

 

ed

 

 

Yes, it's working for everything but the cart info. I can see the session, see the IP Address and the referer, just no cart :(

 

Tried hard coding the session file path into the whos_online page, but that started giving me a mysql error (??). Don't know why either since it wasn't set to mysql sessions and it shouldn't have been looking for it in mysql.

 

Looked all over the script, still can't find a problem. Only thing I could think of was maybe the whos_online function wasn't adding cart info to the session file so I could see it....

Share this post


Link to post
Share on other sites

Ed

 

I am receiving this error when logged in:

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/trublue/public_html/shop/admin/includes/functions/database.php on line 45

0 -

 

select session_id, time_entry, time_last_click from whos_online where session_id='ac5901e4f8b32b249d0aa8346d82aee4'

 

And when not logged in but have something in the shopping cart:

I was getting another Select Id session error but now for some reason can not reproduce it since logging in the first time.

 

Any ideas?

 

John

Share this post


Link to post
Share on other sites

That is the missing part of the code for the language file

define('TEXT_STATUS_ACTIVE_BOT', 'Active/Bot ');
define('TEXT_STATUS_INACTIVE_BOT', 'Inactive/Bot');

 

There is still a problem with duplicate Ip adress.

If a customer is on the site and browers through, each hit gives an entry.

Why not displaying just the last hit where he is? Storing the history is not that interresting because another contribution Visitors does it fine.

Share this post


Link to post
Share on other sites

Hi all,

 

I'm using the RSS mod to pull products from my oscommerce shop onto some other websites.

 

I don't want these other sites to appear in the who's online list.

 

How can I filter out certain IP's? Also - how can I filter out duplicate IPs?

 

jas

Share this post


Link to post
Share on other sites

Ed

 

P.S. to my post above.

 

Using: Mysql Database Sesions

Force Cookie Use: False

Check SSL Session ID: False

Check User Agent: False

Check IP Address: True

Prevent Spider Sessions: True

Recreate Session: True

 

John

Share this post


Link to post
Share on other sites
Ed

 

I am receiving this error when logged in:

And when not logged in but have something in the shopping cart:

I was getting another Select Id session error but now for some reason can not reproduce it since logging in the first time.

 

Any ideas?

 

John

 

 

That error looks like the same error I was getting when I was using mysql for my sessions. I had to change to file sessions and now I can't see when folks have stuff in their carts. No idea what's causing it though :(

Share this post


Link to post
Share on other sites

does anyone know why i cannot see the last url clicked?

 

i am on a windows server and it used to work befor i moved??

 

more to the point does anyone know a fix??

 

please help i cant get hooked anymore

 

 

mike


"because it'll hurt more"- the greatest film of all time?

Share this post


Link to post
Share on other sites
That error looks like the same error I was getting when I was using mysql for my sessions. I had to change to file sessions and now I can't see when folks have stuff in their carts. No idea what's causing it though :(

 

Andrea

Yes, I had read your post and expected that it was the same or at least similar.

 

I also have just swapped my sessions to file and have the same problem as you, no shopping cart details.

Share this post


Link to post
Share on other sites

P.S To all those unsure about the difference between Sessions stored in Mysql verses File.

 

All I can tell you is that the cart does operate at about twice the speed when set to file.

I've always had it set Mysql previously, but would now like to stay with file.

I will have to keep an eye on the sessions directory to determine it does not grow out of site however.

 

Just my findings.

 

John

Share this post


Link to post
Share on other sites
Sorry folks!

 

I forgot one small change.  Add the following code to the bottom (just before the final ?> tag) of admin\includes\functions\general.php:

 ?function tep_get_ip_address() {
? ?if (isset($_SERVER)) {
? ? ?if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
? ? ? ?$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
? ? ?} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
? ? ? ?$ip = $_SERVER['HTTP_CLIENT_IP'];
? ? ?} else {
? ? ? ?$ip = $_SERVER['REMOTE_ADDR'];
? ? ?}
? ?} else {
? ? ?if (getenv('HTTP_X_FORWARDED_FOR')) {
? ? ? ?$ip = getenv('HTTP_X_FORWARDED_FOR');
? ? ?} elseif (getenv('HTTP_CLIENT_IP')) {
? ? ? ?$ip = getenv('HTTP_CLIENT_IP');
? ? ?} else {
? ? ? ?$ip = getenv('REMOTE_ADDR');
? ? ?}
? ?}

? ?return $ip;
?}

 

I will update the contrib with this in a minute.

 

ed

Share this post


Link to post
Share on other sites
Sorry folks!

 

I forgot one small change.  Add the following code to the bottom (just before the final ?> tag) of admin\includes\functions\general.php:

 ?function tep_get_ip_address() {
? ?if (isset($_SERVER)) {
? ? ?if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
? ? ? ?$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
? ? ?} elseif (isset($_SERVER['HTTP_CLIENT_IP'])) {
? ? ? ?$ip = $_SERVER['HTTP_CLIENT_IP'];
? ? ?} else {
? ? ? ?$ip = $_SERVER['REMOTE_ADDR'];
? ? ?}
? ?} else {
? ? ?if (getenv('HTTP_X_FORWARDED_FOR')) {
? ? ? ?$ip = getenv('HTTP_X_FORWARDED_FOR');
? ? ?} elseif (getenv('HTTP_CLIENT_IP')) {
? ? ? ?$ip = getenv('HTTP_CLIENT_IP');
? ? ?} else {
? ? ? ?$ip = getenv('REMOTE_ADDR');
? ? ?}
? ?}

? ?return $ip;
?}

 

I will update the contrib with this in a minute.

 

ed

 

 

 

Shortly after adding the code above to my file, I started seeing the following error:

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/myradio/public_html/admin/includes/functions/general.php:1332) in /home/myradio/public_html/admin/includes/functions/sessions.php on line 67

 

Any idea what I should do to correct this? Thanks!

Share this post


Link to post
Share on other sites
Shortly after adding the code above to my file, I started seeing the following error:

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/myradio/public_html/admin/includes/functions/general.php:1332) in /home/myradio/public_html/admin/includes/functions/sessions.php on line 67

 

Any idea what I should do to correct this? Thanks!

 

Check you have not added the same script in twice from some other contribution.

Share this post


Link to post
Share on other sites
There is still a problem with duplicate Ip adress.

If a customer is on the site and browers through, each hit gives an entry.

Why not displaying just the last hit where he is? Storing the history is not that interresting because another contribution Visitors does it fine.

Thierry,

 

Check the osCsid on the duplicate, entries. Are they changing? WOL uses the Session ID as the unique identifier. If it changes, a user gets a duplicate entry.

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites
Hi all,

 

I'm using the RSS mod to pull products from my oscommerce shop onto some other websites.

 

I don't want these other sites to appear in the who's online list.

 

How can I filter out certain IP's?  Also - how can I filter out duplicate IPs?

 

jas

Jas,

 

See my comment to Thierry above on duplicate IPs. As for filtering, It would depend on how they showed up. Then you could write some custom code...

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites

Problem...

 

The "Last URL" link is incorrect. When I click on the Last URL link, it takes me to:

 

http://www.popthetop.com/catalog/catalog/p...products_id=258

 

and it SHOULD be:

 

http://www.popthetop.com/catalog/product_i...products_id=258

 

 

How do I get rid of the extra "/catalog/" in the link?


L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Share this post


Link to post
Share on other sites
Problem...

 

The "Last URL" link is incorrect. When I click on the Last URL link, it takes me to:

 

http://www.popthetop.com/catalog/catalog/p...products_id=258

 

and it SHOULD be:

 

http://www.popthetop.com/catalog/product_i...products_id=258

How do I get rid of the extra "/catalog/" in the link?

 

I would suggest you first look at your config files, because you should not be getting this kind of error at all.

 

John

Share this post


Link to post
Share on other sites
does anyone know why i cannot see the last url clicked?

 

i am on a windows server and it used to work befor i moved??

 

more to the point does anyone know a fix??

 

please help i cant get hooked anymore

mike

Mike,

 

Could you test the following? I don't have a Windows server...

 

In catalog/includes/functions/whos_online.php, add the following just above function tep_update_whos_online():

function request_uri() { 

 if (isset($_SERVER['REQUEST_URI'])) { 
   $uri = $_SERVER['REQUEST_URI']; 
 } 
 else { 
   if (isset($_SERVER['argv'])) { 
     $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0]; 
   } 
   else { 
     $uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING']; 
   } 
 } 

 //return check_url($uri);
 return $uri; 
}

Then, find:

$wo_last_page_url = getenv('request_uri');

and replace it with:

$wo_last_page_url = request_uri();

I found some documentation that says request_uri is only available on Linux. This function tries other possible ways to get the URL.

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites
Problem...

 

The "Last URL" link is incorrect. When I click on the Last URL link, it takes me to:

 

http://www.popthetop.com/catalog/catalog/p...products_id=258

 

and it SHOULD be:

 

http://www.popthetop.com/catalog/product_i...products_id=258

How do I get rid of the extra "/catalog/" in the link?

Scott,

 

In the Last URL column, do you see \index.php or \catalog\index.php? The code takes HTTP_SERVER from admin\includes\configure.php and adds whatever is shown in the Last URL column. If there's a "\catalog" in HTTP_SERVER AND Last URL, you need to figure out a way to remove one of them.

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites
Yes, it's working for everything but the cart info. I can see the session, see the IP Address and the referer, just no cart :(

 

Tried hard coding the session file path into the whos_online page, but that started giving me a mysql error (??). Don't know why either since it wasn't set to mysql sessions and it shouldn't have been looking for it in mysql.

 

Looked all over the script, still can't find a problem. Only thing I could think of was maybe the whos_online function wasn't adding cart info to the session file so I could see it....

Andrea,

 

Forget whos online for a minute. Please try the following:

Create directory catalog\sessions - set perms to 777

Set Admin->Configuration->Sessions->Session Directory to "sessions" - no slashes

Edit both catalog\includes\configure.php and admin\includes\configure.php to say: define('STORE_SESSIONS', '');

Browse your shop a few clicks and add something to the cart.

 

I know you've tried this before but please try one more time. Now, check if there are actually session files being created in the catalog\sessions directory. Check their date/time to make sure their new.

 

IF you have current files, check whos online and see if it's working.

IF you don't have current files, the problem is there.

 

ed


Answers to osCommerce's most persistent questions! Tips & Tricks | Configuration | Common Problems.

Seek and ye shall find Contributions.

My Contributions

My Blog

Share this post


Link to post
Share on other sites
Andrea,

 

Forget whos online for a minute.?? Please try the following:

Create directory catalog\sessions - set perms to 777

Set Admin->Configuration->Sessions->Session Directory to "sessions" - no slashes

Edit both catalog\includes\configure.php and admin\includes\configure.php to say: define('STORE_SESSIONS', '');

Browse your shop a few clicks and add something to the cart.

 

I know you've tried this before but please try one more time.? Now, check if there are actually session files being created in the catalog\sessions directory.? Check their date/time to make sure their new.

 

IF you have current files, check whos online and see if it's working.

IF you don't have current files, the problem is there.

 

ed

 

Ed

 

I have tried both configures with sessions above and below /public_html/ in both cases there appears current files in those directories.

In both cases the shopping cart info does not appear, it just reports it as being "Empty".

Edited by Gob

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×