[wp-forums] Requesting back up

James Huff macmanx at gmail.com
Sun Aug 29 20:51:34 UTC 2010


I just wanted to let everyone know that Michael Adams (mdawaffe) found a solution for me last night.

There were so many tags (a couple thousand) that the export page was choking on the tag pull-down menu.  The solution was to remove the code which generated the tag pull-down menu (lines 110-115) of the /wp-admin/export.php file.  This allowed the export page to finish loading and the export button to appear.  

Unfortunately, there were so many posts and pages (about 8,000+ combined) that exporting the whole thing resulted in a blank file, which left us with two choices.  Bumping PHP's memory allocation to 256M via php.ini allowed us to export the whole thing, and (also thanks to Michael) replacing line 78 of /wp-admin/includes/export.php with $tags = (array) wp_get_object_terms( $post_ids, 'post_tag' ); allowed us to export month by month without bumping the memory.

Thanks again to Michael and everyone else who offered to help!

________
James Huff
http://www.macmanx.com
http://weblogtoolscollection.com

On Aug 28, 2010, at 6:59 PM, Michael D Adams wrote:

> On Sat, Aug 28, 2010 at 6:52 PM, James Huff <macmanx at gmail.com> wrote:
>> Yeah, it stops after Categories. There's 537 categories and they're all visible at /edit-tags.php?taxonomy=category
> 
> Back up your database before you do this.
> 
> Put the following script in WordPress's root directory (the one with
> wp-load.php in it).
> http://blogwaffe.com/code/fix-orphans-and-loops-in-taxonomy.phps
> (also available at
> http://blogwaffe.com/code/fix-orphans-and-loops-in-taxonomy.txt if
> that's easier).
> 
> Then go to WordPress' root directory and run:
> 
> php fix-orphans-and-loops-in-taxonomy.php
> 
> from the command line.
> 
> What's the output?  Does the export button show up now?
> _______________________________________________
> wp-forums mailing list
> wp-forums at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-forums



More information about the wp-forums mailing list