vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Wait ~12 million second before posting or searching (https://vborg.vbsupport.ru/showthread.php?t=280364)

erdiyilmaz 03-19-2012 08:18 PM

Wait ~12 million second before posting or searching
 
Hi,

My server time (year) suddenly changed 2012 to 2016. I didn't realize. We used forum about one day with this. Today i changed my server year 2016 to 2012.

When i changed server year 2016 to 2012:

- users can not searching, they encounter: "12... million second wait before search".
- users can not look at last messages, they encounter: "12... million second wait before search".
- users can not sending private message, they encounter: "12... million second wait before posting".

I think, users cookies session time stayed at 2016. Normally time between queries is only 30 sec. or waiting time between posting is 10 sec.

How can i solve this problem?

kh99 03-19-2012 08:49 PM

For searches, I believe you can just truncate the "search" table.

For private messages, it looks like it checks the last entry in pmtext for a given user. Since we
know that Jan 1 2016 is unix timestamp 1451606400, and the difference between 2012 and 2016 is 126230400, you can do this query:

Code:

UPDATE pmtext SET dateline = dateline - 126230400 WHERE dateline > 1451606400

You could also do similar queries on the post and thread tables (not all timestamps are named dateline so you might have figure out which colums are timestamps and run the query multiple times).

It might be a good idea to do a database backup before trying any of this.


All times are GMT. The time now is 06:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01012 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete