Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 07-28-2012, 07:04 AM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Time Error and Log In Drop outs

Hi guys,

I have a website: www.supercoachscores.com which has been running really well.

However, in the past few weeks I have issues. My issues are as follows:

1. The time on vbulletin at the bottom of the page is sometimes wrong, ie sometimes it's correct and sometimes it's 15 minutes in the future. However, if it's 15 minutes in the future, I press F5 (ie refresh) a few times it changes the time
2. As a consequence of point 1, sometimes people are logged in at the correct time and sometimes at the incorrect time. Therefore, sometimes people are posting in the future.

I am not sure what's wrong and it's very frustrating. I have looked at the langage, time and timezone settings and it appears correct and I know that the time is different for those logged in and those not logged in.

Any ideas anyone?

Cheers Jay
Reply With Quote
  #2  
Old 07-28-2012, 04:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have any caching on the server? Do you have an .htaccess file that does any caching? (default vbulletin has no default .htaccess file unless you use mod_rewrite urls)

Also, when this happens, login to your server and check the server time and verify it is not off. (If you don't know how to do this, ask your host.)
Reply With Quote
Благодарность от:
ForceHSS
  #3  
Old 07-29-2012, 06:12 AM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne (and everyone),

Just doing some research and this comment exactly explains my situation:
------------------------------------------------------------------------------------------------------------------------------------------------
Article is titled 'vBulletin bug with post time stamp or security token'

There seems to be a bug in the vBulletin forum software (currently at Version 4.0.3) that iTulip uses. Occasionally a new post to a thread gets the wrong time stamp, typically sometime years in the past, causing the post to be misplaced near the top of its thread as an old post. Often at about the same time, one gets an "invalid security token error" when trying to post, which can sometimes be cleared by refreshing the page and trying the post again. That can be annoying if it causes one to lose the text of ones post.

It seems that one can actually track down when such incorrectly time stamped messages have been posted by

1.doing an "Advanced Search",
2.click on "Search Single Content Type",
3.find posts "A Year Ago" and "Older",
4.sort results by "Last Posting Date", "In Ascending Order",
5.show results as "Posts",
6.and click on "Search Now".
Examine results (approximately) #34 through #49 of the search results. These will all be replies dated in the first few months of 2003. Those timestamps are more or less all certainly incorrect. In each of the cases that I examined, when looking at the thread containing one of these 16 posts dated 2003, the thread was rather obviously running in the last year or two (2008 through 2010.)
-----------------------------------------------------------------------------------------------------------------------------------------------

That is if I press F5 it will work but then it will occasionally go to the wrong time and usually about 17 minutes in the future.

Thanks again Lynne, but I'm a newbie in the I.T sector

Cheers

Jay
Reply With Quote
  #4  
Old 07-29-2012, 05:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no bug in default vbulletin that will make the time stamps incorrect. Either your server is having issues, or you have a plugin/modification that is causing the issue.
Reply With Quote
  #5  
Old 07-30-2012, 12:28 PM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
There is no bug in default vbulletin that will make the time stamps incorrect. Either your server is having issues, or you have a plugin/modification that is causing the issue.
Thanks Lynne,

I removed the skin and it still doesn't work. Most of my changes have been on the skin via phrase and style template.

The only mods I have is Change Post Owner and Enabley Custom Css To be Used by Matt ( which I'm not sure what it was). The rest have been disabled.

*** Furthermore, users are being continually logged out when going through threads *** sigh

Cheers

Jay
Reply With Quote
  #6  
Old 07-30-2012, 03:37 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you allow users to login to your site via both http://www.yoursite.com and just yoursite.com (which you do), then you MUST have your cookie domain (AdminCP > Settings > Options > Cookies and HTTP Header Options > Cookie Domain) set to ".yoursite.com" (no quotes, but note the period at the beginning) or your users will have problems. Also, make sure to tell your users to click the Remember Me button when they login.

Try disabling your other modifications and see if you still have the same problem.

Also, you never said anything about checking the actual time on the server when this happens.
Reply With Quote
  #7  
Old 08-02-2012, 09:53 AM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lynne

I did what you said about the cookie domain ie .supercoachscores.com

I then email my service provider and I get this response:

---------------------------------------------------------------------------------------------
Please create a script that tells you the current server time as explained
in this article http://www.w3schools.com/php/php_ref_date.asp and then run
this script when you notice incorrect time just to make sure.

After this you can then reply to this email and show the differences in
the time as well as the posts affected.
-------------------------------------------------------------------------------------------------------
This is giving me a headache
Reply With Quote
  #8  
Old 08-02-2012, 02:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try something like:

- create a file called time.php
- enter:
PHP Code:
<?php
print strftime('%c');
?>
- upload to server
- point browser to script.

I *think* that should work.
Reply With Quote
  #9  
Old 08-13-2012, 01:19 PM
Impromptu Impromptu is offline
 
Join Date: Jun 2012
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Lynne,

I tried all you advised and I 'think' it works. Not sure what I did, but for some reason it works. I think it's this suggestion

'If you allow users to login to your site via both http://www.yoursite.com and just yoursite.com (which you do), then you MUST have your cookie domain (AdminCP > Settings > Options > Cookies and HTTP Header Options > Cookie Domain) set to ".yoursite.com" (no quotes, but note the period at the beginning) or your users will have problems. Also, make sure to tell your users to click the Remember Me button when they login.'

Either way, thank you for your help and the time spent. Cheers, Jay
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04400 seconds
  • Memory Usage 2,247KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (1)post_thanks_box_bit
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete