Pablovp
Forum Replies Created
-
The file is
joomla2wp-mig.phpand I’m calling them in about the line 700 after this:wp_update_attachment_metadata( $attach_id, $attach_data ); }Really? But
str_replaceshould return the string with all the occurrences replaced.Forum: Plugins
In reply to: [Tabbed Widgets] [Plugin: Tabbed Widgets] Stopped working after update!I didn’t know it, thanks for the link and for the plugin. Cheers, Pablo.
Forum: Plugins
In reply to: [Tabbed Widgets] [Plugin: Tabbed Widgets] Stopped working after update!I have solved the same problem using that
<?php wp_footer(); ?>Could you explain me why? Thanks a lot Kaspars.Why don’t you want to migrate the authors? What you can do if you don’t want some users is delete them previously in joomla and then migrate to wordpress without comment-out any line.
Hi Christian!
I have the same problem, I have never been working with Joomla so I don’t know how it handle the comments, I’m just migrating one client website from Joomla to WordPress so I’m sorry because I can’t send to you the mysqldump. But seems they need to use some kind of plugin, and in this case I guess it is Content – !JoomlaComment (Could be this chrisDK?).
It has four tables in the database but I guess the only important is jos_comment which have all the info about them:
CREATE TABLE IF NOT EXISTS
jos_comment(
idint(10) NOT NULL AUTO_INCREMENT,
contentidint(10) NOT NULL DEFAULT ‘0’,
componentvarchar(50) NOT NULL DEFAULT ”,
ipvarchar(15) NOT NULL DEFAULT ”,
useridint(11) DEFAULT NULL,
usertypevarchar(25) NOT NULL DEFAULT ‘Unregistered’,
datedatetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’,
namevarchar(30) NOT NULL DEFAULT ”,
emailvarchar(50) NOT NULL DEFAULT ”,
websitevarchar(100) NOT NULL DEFAULT ”,
notifytinyint(1) NOT NULL DEFAULT ‘0’,
titlevarchar(50) NOT NULL DEFAULT ”,
commenttext NOT NULL,
publishedtinyint(1) NOT NULL DEFAULT ‘0’,
voting_yesint(10) NOT NULL DEFAULT ‘0’,
voting_noint(10) NOT NULL DEFAULT ‘0’,
parentidint(10) NOT NULL DEFAULT ‘-1’,
importtablevarchar(30) NOT NULL DEFAULT ”,
importidint(10) NOT NULL DEFAULT ‘0’,
importparentidint(10) NOT NULL DEFAULT ‘-1’,
PRIMARY KEY (id),
KEYcom_contentid(component,contentid)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=12374 ;/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;The other three are jos_comment_captcha, jos_comment_setting and jos_comment_voting.
Cheers, Pablo.
I have looked more into the WordPress code and the problem is that the function wp_insert_user($userdata) check if the email exists with the function email_exists($user_email), so in this case as already exist one user with empty email doesn’t add any of the other users.
So as this shouldn’t be usual (more than one user with the same email or more than one user with empty email), I guess you just have to check in
$ret = wp_create_user( $joomla_user['username'], $random_password, $joomla_user['email'] );that we are really adding the user and not getting WP_Error.Thanks to you for the plugin.
And finally solved adding mail accounts to all this new users, which doesn’t have to much sense as this user’s email is an optional parameter in the function wp_create_user($username, $password, $email = ”).
¡Happy 2011!
But is the function wp_insert_user($userdata) the one who is returning this WP_Error as for some reason is not able to create the new users.
And definitely the mistake is that he plugin is not migrating the new users, just the first five original users and the first one added by hand, but not the other 37 users.
Checking your code I can’t find anything wrong, seems that the function j2wp_mig_users() should work perfectly and insert all the new users to WordPress with the wp_create_user().
Ok, I have found where is the mistake in my side, but I don’t understand why.
I’m not just migrating the system, I’m also modifying the database, so I have checked the plugin step by step and there is no problems with the modifications that I’m making to the categories in the tables jos_categories and jos_content.
But there is a problem when I’m adding authors to jos_users in the way:
INSERT INTO jos_users (name, username, usertype, gid) VALUES ('Pablo', 'Pablo', 'Author', '19');
and updating later jos_content like:
UPDATE jos_content SET created_by = 70 WHERE created_by_alias = 'Pablo';For some reason I guess the plugin doesn’t migrate all this new users added by hand, and then throw that exception.
What do you think? Thanks.
Thank you very much christian! Now is working properly. Happy 2011!