zedomax
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5Another note,
Maximize your php.ini server settings for script execution time:
max_execution_time = 90
max_input_time = 95
memory_limit = 128MI had it like this which kept freezing the screen:
max_execution_time = 10
max_input_time = 35
memory_limit = 128MYou can temporarily change the values higher like above during tag import then change it back to your favorite value later.
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5Another note, doing in units of 4000 tags will not freeze your browser…
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5Damn you WordPress developers!
I had to hack your utw.php to import my tags!!!
Well, here’s my hack:
I changed it around so it limites the number of tags you can import at a time and also only fetch 100 tags per MySql Query:(Basically replace the tag2post() function with this one)
(Since the WordPress keeps breaking or freezing on me,
you can change the startvalue and endvalue to do them in small ranges…)
function tag2post ( ) {// get the tags and posts we imported in the last 2 steps
$tags = get_option('utwimp_tags');
$posts = get_option('utwimp_posts');global $wpdb;
$startvalue=0;
$endvalue=5000;
$ct=$startvalue;while($ct<$endvalue) {
$posts_query = "SELECT tag_id, post_id FROM " . $wpdb->prefix . "post2tag"." LIMIT ".$ct.",100";
$posts = $wpdb->get_results($posts_query);if($posts) {
// null out our results
$tags_added = 0;// loop through each post and add its tags to the db
foreach ( $posts as $this_post ) {$the_post = (int) $this_post->post_id;
$the_tag = (int) $this_post->tag_id;// what's the tag name for that id?
$the_tag = $tags[$the_tag];// screw it, just try to add the tag
wp_add_post_tags($the_post, $the_tag);
$tags_added++;
echo "Num: ".$tags_added." - ".$the_tag."";}
}
echo "HACKED by Max Lee from http://zedomax.com yey!";
$ct=$ct+100;
}// that's it, all posts should be linked to their tags properly, pending any errors we just spit out!
return $tags_added;}
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5I am now hacking the utw.php file itself.
It seems like the utw import “hangs” whenever the pages go over 5000.
Trying to make a new version….
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5for others having the “0 tags were added!” problem,
try adding this line to your /etc/my.cnfset-variable = max_allowed_packet=1024M
Then restart the mysqld server:
/sbin/service mysqld restart
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5Well, I got it to actually, get it to this screen and HANG:
Import Ultimate Tag Warrior
Steps may take a few minutes depending on the size of your database. Please be patient.
Adding Tags to Posts…
I think the importer is not made for large database…
Forum: Fixing WordPress
In reply to: Ultimate Tag Warrior Tags not being imported with WordPress 2.5I downgraded to 2.3.1 RC and now I get an extra error message that might help:
WordPress database error: [Got a packet bigger than ‘max_allowed_packet’ bytes]
I do have about 2 years worth of tags…
I’ve also tried changing my.cnf file for max_allowed_packet to 1024M, but still same error….
Forum: Fixing WordPress
In reply to: How do I downgrade from 2.5 to 2.2.3?I keep getting 0 tags were added message whenever I try to import Tag Warrior tags, is there a solution to this so I don’t have to downgrade to 2.2.3?
Done! 27111 tags to post relationships were read.
Done! 0 tags were added!