boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New posts only visible in Post/Edit
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
threeone



Joined: 07 Dec 2002
Posts: 3
Location: Detroit, Michigan

PostPosted: Mon Jan 13, 2003 2:07 am    Post subject: New posts only visible in Post/Edit Reply with quote

Using PHP4 and B2 0.6.1

New posts are only visible in Post/Edit mode, and not from a browswer (e.g. to visitors or myself). I tried commenting out the header lines in blog.header.php, setting IE5.5 to ignore a cache and download the page as new each visit, and I tried viewing the page from another machine running IE6.

I don't see a connection here, but yesterday I installed w.bloggar3 on my Desktop, and tested it. I was able to make a post with it, and I could even view new posts in w.bloggar3's Post/Edit mode-- just can't view them from a browser. Any help is appreciated.

Matthew
http://threeonethree.com/threeone
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
dtdgoomba



Joined: 05 Aug 2002
Posts: 179
Location: Cambridge, MA

PostPosted: Mon Jan 13, 2003 3:54 am    Post subject: Reply with quote

Is the server time and the your local time the same? I've read some of these threads and a few times the problem was that the posts were 'future' posts. Is that all in synch?
Back to top
View user's profile Send private message Visit poster's website
threeone



Joined: 07 Dec 2002
Posts: 3
Location: Detroit, Michigan

PostPosted: Mon Jan 13, 2003 4:33 am    Post subject: Times are in synch. Reply with quote

I double-checked the times/dates. In Post/Edit, the date and time of the post are in the same format as the old posts that are visible.

Matthew
[email protected]
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Tue Jan 14, 2003 1:31 am    Post subject: Reply with quote

Matthew,
it's not the date/time format but the time difference that you need to check.
on the options page there is a field 'Time difference:' which you need to set to the difference between your location and that of your hosting server.

For example, I am in the UK (timezone GMT), but my server is in Indiana, US (timezone GMT -5). So I have to set my time difference to 5 (that's +5)
If I set it back to 0 (I've just tried this) my newest posting disappears, it is suddenly in the future.

Hope this helps,
Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
threeone



Joined: 07 Dec 2002
Posts: 3
Location: Detroit, Michigan

PostPosted: Tue Jan 14, 2003 7:06 pm    Post subject: Still Zero. Reply with quote

No, the time difference is still set to zero, as my host's server is in the same time zone. Actually, no matter if I change the date to a date prior to- or in the range of- visibles posts, new posts are still not visible.

If it turns out that I have to re-install b2, how can I ensure saving of all previous posts, so that that can be imported to the new install? Won't the new b2 overwrite the data in my MySQL db?

Matthew
[email protected]
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Tue Jan 14, 2003 8:47 pm    Post subject: Reply with quote

Hi,

As long as your current version of b2 is recent, like 0.6.x, then you would not have to re-run b2install.php. Its job is to build the b2 needed tables and populate them with an initial set of data. You already have the DB and the b2 tables plus your data.

So just upload a new copy of the b2 files, overlaying your existing set. But keep a copy of your template and your current b2config.php to use in the new b2.

michael e
Back to top
View user's profile Send private message Send e-mail
ryder2



Joined: 30 Jan 2003
Posts: 12

PostPosted: Thu Jan 30, 2003 8:27 pm    Post subject: updating problems Reply with quote

was the date the answer or did you have to upload the b2 files again?
i'm having this same problem.
thanks,
ryder
Back to top
View user's profile Send private message
ryder2



Joined: 30 Jan 2003
Posts: 12

PostPosted: Thu Jan 30, 2003 8:45 pm    Post subject: contents not updating until i empty browser's cache..? Reply with quote

hi,

my posts will only update once i delete the temp files in my browser. i'm on a pc with IE 6.0. this means that user's are seeing old information until they clean their cache... doh!

thoughts?
ryder
Back to top
View user's profile Send private message
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Thu Jan 30, 2003 8:56 pm    Post subject: Reply with quote

Hi,

Look in blog.header.php around line 30+. If you find this:
Code:

/* Sending HTTP headers */
$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate());
@header ("X-Pingback: $pathserver/xmlrpc.php");
@header ("Last-Modified: $last_modified_header");
@header ('ETag: "'.md5($last_modified_header.$pagenow).'"');

Change it to this:
Code:

/* Sending HTTP headers */
$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate());
@header ("X-Pingback: $pathserver/xmlrpc.php");
if (!$is_winIE) {
    @header ("Last-Modified: $last_modified_header");
    @header ('ETag: "'.md5($last_modified_header.$pagenow).'"');
}

and see if the caching issue goes away...

Regards,
michael e
Back to top
View user's profile Send private message Send e-mail
ryder2



Joined: 30 Jan 2003
Posts: 12

PostPosted: Thu Jan 30, 2003 10:12 pm    Post subject: thanks! Reply with quote

thanks Macshack!

i just got it working with a recent post from you at :
http://tidakada.com/board/viewtopic.php?t=2144&highlight=caching

one thing,
in that topic you said to post:

/* Sending HTTP headers */
$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate());
@header ("X-Pingback: $pathserver/xmlrpc.php");
@header("Cache-Control: no-cache, must-revalidate");
@header("Pragma: no-cache");

and in this one you said to post:

/* Sending HTTP headers */
$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate());
@header ("X-Pingback: $pathserver/xmlrpc.php");
if (!$is_winIE) {
@header ("Last-Modified: $last_modified_header");
@header ('ETag: "'.md5($last_modified_header.$pagenow).'"');
}


what's the difference in performance? will the site be quicker with one over the other? ie. do images have to reload etc. for both versions of code? does this affect images at all?

your help is greatly appreciated!
ryder
Back to top
View user's profile Send private message
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Thu Jan 30, 2003 10:23 pm    Post subject: Reply with quote

Hi,

Performance wise there should not be a big difference. This whole thing was an attempt to cut down on extra traffic of b2 pages. But IE wants to act rather funny. So Michel V changed the code to not to the two headers if this was an IE browser.

As far as the images are concerned, those should be fine. Cached as needed, they are retieved by the browser with a seperate request.

So did the change fix the refresh issue for you?

Kind regards,
michael e
Back to top
View user's profile Send private message Send e-mail
KvdnBerg



Joined: 05 Feb 2003
Posts: 4

PostPosted: Wed Feb 05, 2003 4:35 pm    Post subject: Reply with quote

Hi macshack, I had the same problem and tried your fix, seems to work for me.

Thanks!!

Karin
Back to top
View user's profile Send private message
ryder2



Joined: 30 Jan 2003
Posts: 12

PostPosted: Wed Feb 05, 2003 8:45 pm    Post subject: thanks! Reply with quote

thanks Macshack!
yeah, i used the first code and it worked great.
ryder
Back to top
View user's profile Send private message
webzies



Joined: 09 Feb 2003
Posts: 2

PostPosted: Sun Feb 09, 2003 8:29 am    Post subject: Reply with quote

nope, that doesnt work for me. i tried both commenting it out, and doing a lot of other crap. but they still dont work. And my server time IS the same as my blog time.

http://lifeistuff.acnova.com
Back to top
View user's profile Send private message
macshack



Joined: 17 Jul 2002
Posts: 1204
Location: Phoenix, Az

PostPosted: Sun Feb 09, 2003 5:22 pm    Post subject: Reply with quote

Hi webzies,

To avoid any confusion, lets see if I understand your problem.

When you post new entries they are not being displayed in the main template, even with refreshes and what not. But they can be seen in b2edit. Also the post times seem to be correct and you do not have an offset set in the b2 options. Is all this correct?
_________________
Kind Regards,
Michael e
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Bugs All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group