Archive for the ‘Web Site Status’ Category

Disabling Post Revisions: WordPress 3.0.4

Saturday, January 15th, 2011

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0.4, though I had disabled this feature during the last WordPress upgrade.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4404 in the wp-includes/post.php file as follows:

Line 4404 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

Then I deleted all the revisions that had been saved to this point since applying the WordPress upgrade from each blog database, by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = “revision”;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have now been verified to work with WordPress 3.0.2.

That’s all.

Tom Hesley

Related Posts

Disabling Post Revisions: WordPress 3.0.3

Saturday, December 11th, 2010

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0.3, though I had disabled this feature during the last WordPress upgrade.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4404 in the wp-includes/post.php file as follows:

Line 4404 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

Then I deleted all the revisions that had been saved to this point since applying the WordPress upgrade from each blog database, by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = “revision”;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have now been verified to work with WordPress 3.0.2.

That’s all.

Tom Hesley

Related Posts

Today’s Business: 2010-12-04

Saturday, December 4th, 2010

Today’s Activities

  • Shower.  DONE.
  • Cat duty.  DONE.
  • Wash all (2) pending loads of laundry.

Log

09:30 AM: I’m up.  Today looks overcast with occasional bursts of sunshine, with temperatures ranging in the low thirties this morning.  No rain or snow is falling at present.

10:30 AM: Sister Mary Ann called to say that she’s coming to visit Mom later today and that she may have found some cheaper alternatives for some of Mom’s meds.  Hey, we’ll take any help we can find.  :-)   These meds are quite costly at present. 

11:15 AM: Updated all blogs (including:  Tom’s Diary,   Tom’s Love Quest,   Tom’s Views,   and   WPSBC Alumni Association)   to   WordPress 3.0.2.  No problems with either the installation or subsequent blog behavior noted. 

11:45 AM: Posted the   Disabling Post Revisions: WordPress 3.0.2   piece. 

01:00 PM: Completed the weekly web site backups.  Details   here.

05:00 PM: Worked the   Christmas Lighting: 2010   project. 

05:45 PM: Sister Mary Ann arrived, bearing a very tasty supper gift; lasagna.  Mmmmmm!

07:00 PM: Sisters Christine and Diane arrived as well and sister Jojo came later on, and we all hung out in the sitting room with Mom for an hour or so, until it was time for sister Mary Ann to take Catie and Jess to a Christmas show at the Mishler Theater in Altoona.

07:05 PM: Now,   [Emmy]   and I are listening to the Penguins hockey game.  They’re playing the Columbus Blue Jackets this evening. 

07:30 PM: Washed all linens on Mom’s bed (we do this each Saturday). 

10:00 PM: The Pens beat the Blue Jackets, 7 to 2.  I napped a bit during the game in the front room (our new spare bedroom. 

12:35 AM: Watched the 2010-11-14 episode of CBS’s   60 Minutes   news show on the DVR.  I most enjoyed the story about the pros and cons of extracting natural gas from shale here in the US and how this could potentially solve our energy problems for the next twenty years or more.  But they also explored some of the risks of this process, including contaminated drinking water.  Good show. 

01:30 AM: Sat with Mom for an hour in her sitting room to keep her company.  I worry about her back there all by herself for so much of the time, just sitting and watching television.  But she had lots of company today.  So perhaps she considered her solitude afterward pleasurable. 

02:00 AM: Helped Mom to bed.  I’m now going to bed as well.  So good night.  More tomorrow. 

Tom Hesley

Received Mail and Shipments

None today.

Related Posts

Disabling Post Revisions: WordPress 3.0.2

Saturday, December 4th, 2010

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0.2, though I had disabled this feature during the last WordPress upgrade.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4404 in the wp-includes/post.php file as follows:

Line 4404 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = “revision”;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have now been verified to work with WordPress 3.0.2.

That’s all.

Tom Hesley

Related Posts

Disabling Post Revisions: WordPress 3.0.1

Sunday, October 31st, 2010

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0.1, though I had disabled this feature during the last WordPress upgrade.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4404 in the wp-includes/post.php file as follows:

Line 4404 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = ‘revision’;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have now been verified to work with WordPress 3.0.1.

That’s all.

Tom Hesley

Related Posts

Today’s Business: 2010-06-26

Saturday, June 26th, 2010

Today’s Activities

  • Shower.  DONE.
  • Cat duty.  DONE.
  • Do all pending laundry.  DONE.

Log

10:00 AM: I’m up.

10:15 AM: Facebooked a while this morning.  Friend count is now 223.  My official Facebook page I created yesterday has 12 subscribers so far.

11:00 AM: Arranged for someone in Nephew Garrett’s family to drive me to Altoona tomorrow to pick up [Emmy] at the train.

11:15 AM: Helped brother-in-law Richard with a swimming pool heating project he’s working on today.  I have several circulating pumps here, and he  wondered if any of them are big enough to move water between his pool and the solar collectors on his garage roof nearby.  He has a very large pump that would indeed do the job.  But it’s likely too big and would thus cost too much to operate.  Plus, it would pump the water too fast, so that the sun would have insufficient time to warm the water in the collectors before returning it to the pool.  My pumps each offer at most ten feet of head (they can’t pump water higher than ten feet).  But his collectors are higher than that; perhaps thirteen to fifteen feet above ground.  So after Googling around and reading specs on various pumps, we decided that mine here are definitely too small — unless we use two of them in series to extend the head.  He might decide to do this.  But at the moment, he’s looking for a cheaper solution.  Aren’t we always doing that?

11:30 AM: [Emmy] called to say hi and that she’s in the process of packing for her trip here tomorrow.  We’ve all told her: Bring your swimsuit!  :-)

12:40 PM: Got the laundry under way.  Today, there are a couple of Mom’s loads, and the sheets and pillow cases on my bed.

01:05 PM: Completed the weekly system backups (details  here), and the weekly site statistics report (see that   here).

03:00 PM: Just upgraded blogs from WordPress 2.9.2 to 3.0. No major problems; although I must again disable automatic saving of post revisions. If I revise a post 20 times, then 20 copies of it are stored; bloating the DB and slowing performance. But the code has changed significantly in 3.0. So I’ll have to figure out how to turn this off in 3.0. :-( If anyone knows how, I welcome your input. :-)

04:40 PM: I figured out how to disable the saving of post revisions.  See details   here.

05:50 PM: iPodded at the pavilion.  Nice afternoon, and the dogs were quiet too.  :-)

06:10 PM: Watched tonight’s episode of   NBC’s Nightly News   on the DVR.

06:15 PM: Nap time.

07:00 PM: I’m back up again and eating supper now.

10:00 PM: Watched    Larry King   on  CNN tonight, doing his interview with Lady Gaga.  Good show.

12:00 AM: Posted a link entry on my Facebook business page to the   Why So Fast The Fall   piece on the   Tom’s Love Quest   blog.

12:30 AM: Put clean sheets and pillow cases on the bed

01:00 AM: Monitored the site stats over the past 24 hours, and observed a moderate increases in traffic.  But I’ve received no clicks from people visiting my sites; so no revenue yet since the ad campaign began this past Friday.  I’ll continue watching and tuning, and next week, I’ll call Google and take advantage of the free offer of consultation on how to make my campaign more profitable.

02:00 AM: Facebooked some more.  Friend count is now 229.

02:15 AM: Okay, time to get off of here for the night.  May your rest be effective and thus refreshing, and we’ll pick this up again in less than twelve hours.  Take care and good night.

Tom Hesley

Received Mail and Shipments

  • Revised blank prescription FAX forms from Mom’s medical insurance company.  That’s all today.  :-)

Related Posts

Disabling Post Revisions: WordPress 3.0

Saturday, June 26th, 2010

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0, though I had disabled this feature back in March.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4398 in the wp-includes/post.php file as follows:

Line 4398 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = ‘revision’;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have now been verified to work with WordPress 3.0.

That’s all.

Tom Hesley

Related Posts

Disabling Post Revisions: WordPress 2.9.2

Monday, May 10th, 2010

I discovered that WordPress was again saving every revision of every post, though I had disabled this feature back in March.  Click   here   for more details.  But apparently, in the upgrade to 2.9.2, the automatic retention of these revisions became enabled once more. So I turned off this feature by adding the following lines of code to the wp-config.php file at lines 27 and 28 for each of my blogs:

// Disable post revisions.
define(’WP_POST_REVISIONS’, false);

I also changed line 618 in the wp-settings.php file from

$default_constants = array( ‘WP_POST_REVISIONS’ => true );

to

$default_constants = array( ‘WP_POST_REVISIONS’ => false );

Also note that the line number has not changed from what it was in WordPress 2.9.1.

Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:

DELETE FROM wp_posts WHERE post_type = “revision”;

I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked.   These instructions have been verified to work with WordPress 2.9.2.

That’s all.

Tom

Related Posts

Today’s Business: 2010-04-28

Wednesday, April 28th, 2010

Today’s Activities

  • Shower.  DONE.
  • Cat duty.   DONE.
  • Run two loads of laundry for Mom.  DONE.

Log

07:50 AM: I’m up.  

07:55 AM: No weight loss yesterday.  It’s still 173.5 Lbs.    See   here   for a summary of the progress on this goal so far in 2010.

10:00 AM: My phone and Internet went out for several minutes within the past hour or so.  But they’re back now. 

11:35 AM: Added a new category, called   Trust,   to the   Tom’s Love Quest   blog.

12:30 PM: Added a new category, called   Jealousy,   to the   Tom’s Love Quest   blog.

12:47 PM: Added a new category, called   Acceptance,   to the   Tom’s Love Quest   blog.

02:30 PM: Watched today’s episode of    The Young and the Restless   on the DVR.

04:15 PM: Added signature links to the   Recent Revisions   pages on all my blogs.   

04:20 PM: Nap time, with CNN’s Rich Sanchez in the background.

05:00 PM: I’m awake again. 

06:00 PM: A family friend stopped by to visit Mom, and to borrow some moving blankets I have up in storage.  We drove up there, loaded them into her car, then drove back here.  She’ll keep the blankets until late May, when she moves her daughter into a rental home on the south side of Pittsburgh.  Hmmm.  I hope I don’t forget that she has them. 

07:30 PM: Watched today’s episode of   Dr. Phil,   about sex offenders and the controversy surrounding their release back into society.  Can they be rehabilitated?  Surprisingly, the rehab success rates for these felons, particularly the non violent ones, is higher than many other crimes.

08:00 PM: Watched this evening’s episode of   NBC’s Nightly News.

10:15 PM: Talked with [Emmy] on the phone.  Her phone has been very stable the past several days.  It appears that Comcast found out whatever it was that kept interrupting her service during the first month she had it.  I hope it stays good. 

11:00 PM: Throughout today, I revised many posts in the   Tom’s Diary   and   Tom’s Love Quest  blogs to improve their title tags for SEO, eliminate duplicate titles, and added a    Related Posts   section to some that had none.  More of the same tomorrow. 

12:30 AM: Read for the past hour and a half.

01:20 AM: Upgraded all blogs to the new Google Analytics asynchronous tracking code.  This may increase the speed with which all pages from my blogs are rendered in browsers by enabling the tracking processes to run at the same time as the web browser rendering processes. Users of multi-processor computers will likely see the biggest benefit. 

01:25 PM: I’m going to bed (with a little advance     book reading before sleeping).  So good night, and I’ll be here again tomorrow morning.  Pleasant dreams now. 

Tom

Received Mail and Shipments

  • The 2010-04 issue of Consumer Reports.
  • Misc. clothing for Mom.
  • 1 bill.

Related Posts

Today’s Business: 2010-04-21

Wednesday, April 21st, 2010

Today’s Activities

  • Shower.  DONE.
  • Cat duty.   DONE.

Log

04:25 AM: Woke up early.  Read some of the      book overnight.

05:45 AM: Watched the 2010-03-29 and 2010-03-30 episodes of   NBC’s Nightly News   on this failing DVR.

07:00 AM: My weight did not change from yesterday.  It’s still 173.5 Lbs.    See   here   for a summary of the progress on this goal so far in 2010.

11:00 AM: Watched the 2010-03-31 through 2010-04-03 episodes of   NBC’s Nightly News   on this failing DVR.

11:05 AM: Skipped the 2010-04-04 and 2010-04-05 episodes of   NBC’s Nightly News,  because they won’t play due to this defective DVR. 

11:30 AM: Added sidebar links to the  Recent Revisions   pages on all my blogs. 

01:30 PM: Watched today’s episode of   The Young and the Restless.

02:30 PM: Watched the 2010-04-06 through 2010-04-09 episodes of   NBC’s Nightly News   on the DVR.  These played with some problems but viewable for the most part. 

02:35 PM: Headed up the road for a haircut.  Back later. 

03:40 PM: I’m back home.  Continuing to empty out this DVR.  Hopefully it won’t totally break before I watched everything that’s left. 

04:50 PM: Watched today’s episode of    Dr. Phil;  titled:  Meddling Mothers.  Pretty good; McGraw clearly outlined the place where maternal concern crosses the line into overbearing control.  Pretty good show this time. 

05:00 PM: Worked the   Basement Cleanup: 2010   project.

08:10 PM: Worked the   Lawn Maintenance: 2010   project.

09:15 PM: Watched the 2010-04-10 through 2010-04-13 episodes of   NBC’s Nightly News

10:30 PM: Talked with [Emmy], and we listened to the 2010-02-11 episode of   The Young and the Restless   on the DVR.  She missed this one when it originally aired. 

11:15 PM: Watched the 2010-02-14 and 2010-02-15 episodes of   NBC’s Nightly News   on the DVR.

11:20 PM: More tomorrow.  Good night.

Tom

Received Mail and Shipments

  • Coupon and advertisement mail from Bed Bath & Beyond.
  • CJ Banks coupons. 

Related Posts