MU Advanced: Issues and Discussion
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • March 17, 2010, 02:16:28 AM
Home Forums Contact Tags FAQ Links News Login Register
* *
Navigation Menu
Search

Random Quotes
If everything seems to be going well, you have obviously overlooked something.
- Murphy's Law
Pages: [1]   Go Down
  Print  
Author Topic: timestamp issue  (Read 1370 times)
0 Members and 1 Guest are viewing this topic.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« on: September 28, 2008, 07:37:58 PM »

Has anyone seen a problem with time stamps and auto-save in the 2.6 and 2.6.1 versions of mu?

What I am seeing is that a post will get stamped with the time zone of the server (in my case GMT) and does not respect the blog's GMT offset.

I haven't been able to track this down, but it's really annoying me.

I was hoping it was a 2.6 bug that was fixed in 2.6.1 but it seems to still happen to me in 2.6.1... now, it's certainly possible that some other plugin of mine is messing this up... so I'm hoping someone else can tell me if they see this also.

Thanks in advance.
Logged

Yep, that's me... riding my bike 204 miles in one day.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #1 on: September 28, 2008, 07:48:30 PM »

me thinks it is a plugin!

I just tested again with the plain jane 2.6.1. code and it doesn't appear to have this issue.
Logged

Yep, that's me... riding my bike 204 miles in one day.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #2 on: September 28, 2008, 09:00:28 PM »

Any idea which plugin was causing the issue?  I'm sure as soon as I mention it in passing on my own support forums, someone will speak up and let me know they're having the problem.

One of my biggest pet peeves is how theme designers hard code the timestamp output into their themes instead of using the settings within wp.
Logged

ron_r
Key Master
*****

Karma: 4
Offline Offline

Posts: 1058



View Profile WWW
« Reply #3 on: September 28, 2008, 10:36:00 PM »

I was testing some code here tonight and changed the blog's time zone. After that I changed the timestamp on a post. The post_date_gmt was still being saved with the old offset.

Logged

The key to problem solving is identifying the problem.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #4 on: September 28, 2008, 10:37:15 PM »

One of my biggest pet peeves is how theme designers hard code the timestamp output into their themes instead of using the settings within wp.

Interesting clue!

I am now looking to see if this is actually related to themes displaying the timestamp wrong! Thanks for the tip!
Logged

Yep, that's me... riding my bike 204 miles in one day.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #5 on: September 28, 2008, 11:38:21 PM »

Jeez... I am going crazy...

Now I stripped 2.6.1 down to the bare minimum and I think this is still happening...

Here's what I see:

1) Start writing a post
2) Auto-save happens--
    sets post_modified and post_modified_gmt to the expected values.
    sets post_date and post_date_gmt to "0000-00-00 00:00:00". (hmmm, that seems a little odd!)

3) Click Publish:
    sets post_modified and post_modified_gmt to the expected values.
    sets post_date and post_date_gmt to something CRAZY!

It looks like the post_date = post_modified_date -16 hours?!?! and post_date_gmt = post_modified_gmt -16 hours?!?! I mean WTF?!?!!!!

That's crazy...

Note: my local time is set to GMT -7... so there's no way to get this to add up...

Thoughts?!?!

At this point, the only "plugins" I'm running are multi-db... and a custom authentication plugin...

Logged

Yep, that's me... riding my bike 204 miles in one day.
drmike
Gate Keeper
*****

Karma: 3
Offline Offline

Posts: 2228



View Profile WWW
« Reply #6 on: September 29, 2008, 08:47:50 AM »

    sets post_date and post_date_gmt to something CRAZY!

It looks like the post_date = post_modified_date -16 hours?!?! and post_date_gmt = post_modified_gmt -16 hours?!?! I mean WTF?!?!!!!

I was looking at the math as well.  Only thing I can come up with would be it's subtracting a day, adding in the 7 hours and then another hour for daylight savings but this isn't the time of year for that anyway.

I'd open up a trac ticket.

If you really want to debug, I'd start dropping in echos in a number of places just to display the timestamps as you write.  That would be a pain though.
Logged

ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #7 on: September 29, 2008, 10:09:10 AM »

Well, it looks like this might only happen in the 2.6 code... or at least now, after stepping away from the keyboard and going to sleep... the problem does not appear to be happening in the 2.6.1 code base.

I had apache pointing to the wrong directory last night when I thought it was running 2.6.1 it was actually running older code.

So, hopefully, this is not an issue anymore.


Logged

Yep, that's me... riding my bike 204 miles in one day.
ron_r
Key Master
*****

Karma: 4
Offline Offline

Posts: 1058



View Profile WWW
« Reply #8 on: September 29, 2008, 05:21:08 PM »

Where is the server located GMT -7 as well?
Logged

The key to problem solving is identifying the problem.
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #9 on: September 29, 2008, 05:23:04 PM »

LMAO!!!

You guys are gonna love this! Since you all told me to stay away from it...

It turns out this problem was caused by the xcache version of object-cache.php.

Once I got rid of that, all my problems went away. This also explains why it kept thinking it existed in the 2.6.1. code base as well.

Argh!
Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3594



View Profile WWW
« Reply #10 on: September 30, 2008, 08:17:21 AM »

That's interesting.

Were you having the "site admin" link problem with it? Every time I dropped in the xcache object cache, it wouldn't display the site admin link.

I think we're going to end up with the memcached version, once things get settled.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
ZappoMan
Full Member
***

Karma: 1
Offline Offline

Posts: 157



View Profile
« Reply #11 on: September 30, 2008, 12:27:15 PM »

Actually, I've never seen this site admin problem.

Trent has explained it to me... but on my systems I always get the site admin menu appropriately even with xcache running.

What are you waiting for with memcached? Are there known issues with that?

I was just checking out APC as well... I finally pulled xcache because it was segfaulting way too much especially with the 2.6.1 codebase.

Logged

Yep, that's me... riding my bike 204 miles in one day.
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3594



View Profile WWW
« Reply #12 on: September 30, 2008, 12:47:06 PM »

Strange, as I've never had the site admin menu with the xcache based object cache.

As for memcached, it's not issues, it's timing. A few other things have to happen first, and then once those are cleared, it will be added.

Probably 2 servers with 8G of RAM to start.

Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
trent
Jr. Member
**

Karma: 0
Offline Offline

Posts: 82



View Profile WWW
« Reply #13 on: September 30, 2008, 06:49:16 PM »

memcached looks incredibly easy to setup, but what % of memory would most people give it compared to available memory on a box?   As well, do you have to specify the port it is working on or should it use the default port?   Can it work with xcache or an "either/or" type of thing?    Ryan B wrote the plugin for object-cache and memcached correct?   Does it work with the recent versions of WPMU and WP?

Trent
Logged
Luke
Key Master
*****

Karma: 5
Offline Offline

Posts: 3594



View Profile WWW
« Reply #14 on: September 30, 2008, 07:34:40 PM »

memcached looks incredibly easy to setup, but what % of memory would most people give it compared to available memory on a box?

You wouldn't want to run memcached on the same box as anything else. We're getting boxes with bare minimum processors and disks, and a ton of RAM.


As well, do you have to specify the port it is working on or should it use the default port?

Whatever you prefer. We'll be using the default, as the boxes won't have a publicly addressable IP.


Can it work with xcache or an "either/or" type of thing?

It replaces the WP object class, but you could still run xcache on an individual box to cache compiled PHP pages.


Ryan B wrote the plugin for object-cache and memcached correct?

Yes.


Does it work with the recent versions of WPMU and WP?

Yep.
Logged

10 frames?
Heh, that's for Quakers.

Note: This message may be Canadian friendly.

"Pornographic monster on the floor"
Tags: timestamps  new posts  time zone auto-save 

Pages: [1]   Go Up
  Print  
 
Jump to:  


Login
 
 
Recent Posts
Recent Topics
No new topics.
Hot Tags
Whos Online
6 Guests, 0 Users
Home Forums Contact Tags FAQ Links News Login Register