WebPixie Posted March 25, 2005 Share Posted March 25, 2005 Not sure how long between deletions, but the old ones are deleted. <{POST_SNAPBACK}> 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. Quote Link to comment Share on other sites More sharing options...
thdt98 Posted March 26, 2005 Share Posted March 26, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2005 Share Posted March 26, 2005 Thierry, I forgot to add them to the language files. Just define them as Active/Bot and Inactive/Bot appropriately. ed Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2005 Share Posted March 26, 2005 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. <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2005 Share Posted March 26, 2005 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 Quote Link to comment Share on other sites More sharing options...
WebPixie Posted March 26, 2005 Share Posted March 26, 2005 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 <{POST_SNAPBACK}> 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.... Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2005 Share Posted March 26, 2005 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 450 - 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 Quote Link to comment Share on other sites More sharing options...
thdt98 Posted March 26, 2005 Share Posted March 26, 2005 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. Quote Link to comment Share on other sites More sharing options...
jas Posted March 26, 2005 Share Posted March 26, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 26, 2005 Share Posted March 26, 2005 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 Quote Link to comment Share on other sites More sharing options...
WebPixie Posted March 26, 2005 Share Posted March 26, 2005 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 <{POST_SNAPBACK}> 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 :( Quote Link to comment Share on other sites More sharing options...
billybrag Posted March 26, 2005 Share Posted March 26, 2005 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 Quote "because it'll hurt more"- the greatest film of all time? Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 :( <{POST_SNAPBACK}> 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. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 <{POST_SNAPBACK}> 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! Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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! <{POST_SNAPBACK}> Check you have not added the same script in twice from some other contribution. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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. <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
PopTheTop Posted March 27, 2005 Share Posted March 27, 2005 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? Quote 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 Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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? <{POST_SNAPBACK}> I would suggest you first look at your config files, because you should not be getting this kind of error at all. John Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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 <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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? <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 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.... <{POST_SNAPBACK}> 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2005 Share Posted March 27, 2005 (edited) 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 <{POST_SNAPBACK}> 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 March 27, 2005 by Gob Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.