Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
You mention a Drupal 7 version is forthcoming.
If you have any code ready, please commit a 7.x branch.
I have a project coming up shortly where I should be able to test it out.
Comment | File | Size | Author |
---|---|---|---|
#10 | migrate.png | 99.97 KB | ishanmahajan |
#6 | screenshot.png | 44.02 KB | triple5 |
Comments
Comment #1
ishanmahajan CreditAttribution: ishanmahajan commentedHi,
I'll be create a 7.x branch in a couple of days.
Regards
Comment #2
mlncn CreditAttribution: mlncn commentedHi ishanmahajan,
Any help or motivation needed?
We have a Typo3 to Drupal 7 migration coming up with:
And are greatly looking forward to the incremental migration capabilities to allow cleanup of the content while the site build continues.
That's our situation. Let us know if you could use any help, if you laugh at our trivial needs, or anything else. Thanks!
benjamin, agaric
Comment #3
ishanmahajan CreditAttribution: ishanmahajan commentedHi mlncn,
I haven't been able to upload the D7 branch yet and its long overdue!.
There is new release of the migrate module(Migrate 2.1) with some api changes and I'm working on upgrading the D6 branch also. I will upload the D7 dev branch as soon as it is in a somewhat stable position and create issues for the tasks left.
You can have a look at the issues once they are there and any help would be greatly appreciated :)
Regards
Comment #4
ishanmahajan CreditAttribution: ishanmahajan commentedCommitted a 7.x branch. Some testing is required, after which I'll release a stable version.
Regards
Comment #5
ishanmahajan CreditAttribution: ishanmahajan commentedComment #6
triple5 CreditAttribution: triple5 commentedI tried the import of a typo3 site with standard content.
I tried it in two ways:
The errors were the same, so I wonder about the Problem.
What irritates me are the ":db_condition_placeholder_1" bits. It is obviously an error with the database access but I have done exactly what is asked for in the README.txt:
$: drush migrate-import Typo3BeUser
WD php: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user [error]
'testuser'@'localhost' for table 'be_users': SELECT u.uid AS uid, u.disable AS disable, u.username AS
username, u.admin AS admin, u.usergroup AS usergroup, u.email AS email, u.crdate AS crdate, u.realname AS
realname, u.password AS password, map.destid1 AS migrate_map_destid1, map.needs_update AS needs_update
FROM
{testdatabase.be_users} u
LEFT OUTER JOIN {migrate_map_typo3beuser} map ON uid = map.sourceid1
WHERE (u.deleted = :db_condition_placeholder_0) AND (u.disable IN (:db_condition_placeholder_1)) AND
(map.sourceid1 IS NULL OR map.needs_update = 1)
ORDER BY tstamp desc; Array
(
[:db_condition_placeholder_0] => 0
[:db_condition_placeholder_1] => 0
)
in MigrateSourceSQL->rewind() (line 321 of
/var/www/.../sites/all/modules/migrate/plugins/sources/sql.inc).
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 SELECT command denied to user 'testuser'@'localhost' for table 'be_users': SELECT u.uid AS uid, u.disable AS disable, u.username AS username, u.admin AS admin, u.usergroup AS usergroup, u.email AS email, u.crdate AS crdate, u.realname AS realname, u.password AS password, map.destid1 AS migrate_map_destid1, map.needs_update AS needs_update
FROM
{testdatabase.be_users} u
LEFT OUTER JOIN {migrate_map_typo3beuser} map ON uid = map.sourceid1
WHERE (u.deleted = :db_condition_placeholder_0) AND (u.disable IN (:db_condition_placeholder_1)) AND (map.sourceid1 IS NULL OR map.needs_update = 1)
ORDER BY tstamp desc; Array
(
[:db_condition_placeholder_0] => 0
[:db_condition_placeholder_1] => 0
)
in MigrateSourceSQL->rewind() (line 321 of /var/www/.../sites/all/modules/migrate/plugins/sources/sql.inc).
Drush command terminated abnormally due to an unrecoverable error.
I am using TYPO3_migrate 7.1.2 and as was suggested the migrate module version 7.2.1
with these things (using a clean drupal 7.8)
When using the frontend migrate I basically get the same (see attached screenshot.png)
Comment #7
ishanmahajan CreditAttribution: ishanmahajan commentedHi,
Seems like the user "testuser" doesn't have the necessary MySQL permissions.
Can you do one thing?
Log into MySQL with user "testuser" and run a simple select command on the be_users table. See if it runs properly.
OR
if you have root access to the database then try changing your settings.php to run as root.
Regards
Ishan
Comment #8
triple5 CreditAttribution: triple5 commentedthanks Ishan for the fast reply,
I have tried of course, I have run the command as "testuser" and I have every access to the database as well the drupal tables as on the typo3 tables.
I wonder if this is a problem of the versions.
the original typo3 install is version TYPO3 Ver. 4.5.3
drupal version 7.8
I wonder about the syntax of the sql statement, I tried to run the command in mysql itself (via phpmyadmin) it just gave me a syntax error for this query, no permission error.
My second step was to not put the typo3 tables into a different database but I put it into the same database as the drupal installation itself. I can run any command here as this username/password combo.
Now I have tried to run the query again and modified it:
ended in Syntax errors again.
I just cut of the part after the error message:
This query told me that there was no field u.uid, in my tables the fields were called uid, disable...
there was no map.destid1 and no map.needs_update field either nor a corresponding field, executing the query agan as:
Worked fine and showed me the results. but unfortunately the LEFT OUTER JOIN still seems to be a problem...
Comment #9
ishanmahajan CreditAttribution: ishanmahajan commentedHi,
This could be related to the version of TYPO3. I've tested this module with TYPO3 version 4.1
Can you post here the structure of your "be_users" table. I think there might be some changes in the table structure. Do you have the "deleted" field in your be_users table?
Regards,
Ishan
Comment #10
ishanmahajan CreditAttribution: ishanmahajan commentedI just tested the module with a fresh installation of TYPO3 4.5.3. I was successfully able to migrate be users. Attaching the screenshot of the source query.
Comment #11
triple5 CreditAttribution: triple5 commentedMaybe there are some hidden requirements I just tested this with a minimal setup, trying now with the standard setup / activating all core modules.
I have now tried with a completely fresh install.
Drupal 7.8
Migrate 7.x-2.1
Migrate UI 7.x-2.1
Typo3 Migrate 7.x-1.2
Typo3 News Migrate 7.x-1.2
Typo3 Pages Migrate 7.x-1.2
Typo3 Users Migrate 7.x-1.2
That typo3 Database stems from a 4.5.3 System the structure of "be_users" is as follows:
uid pid tstamp username password admin usergroup disable starttime endtime lang email db_mountpoints options crdate cruser_id realName userMods allowed_languages uc file_mountpoints fileoper_perms workspace_perms lockToDomain disableIPlock deleted TSconfig lastlogin createdByAction usergroup_cached_list workspace_id workspace_preview tt_news_categorymounts tx_dam_mountpoints tx_simulatebe_feuserusername
I have no other modules installed, and tested only activate the module Typo3 Users Migrate (and the migrate modules)
I came across some minor documentation errors in README.txt of the 7.x.2.1 Version of typo3migrate.
line 26: IMPORTANT: Set the source typo3 database name at admin/content/typo3
under admin/content/typo3 I don't find the settings for the database, these settings reside under:
admin/settings/typo3
My steps:
What am I doing wrong?
I have tried to import the examples from the migrate module, - no problem with this, and I was able to rollback completely.
Am I missing to set up some fieldMapping? Or some additional setup in base.inc? I don't actually see any problems here.
Comment #12
triple5 CreditAttribution: triple5 commentedI have made headway...
This proves to me that there are assumptions in the code regarding the table-prefixes (there must be no table prefix in drupal tables)
Comment #13
triple5 CreditAttribution: triple5 commentedI have now tried the same again, over and over and it works mostly. There are some issues, though:
still investigating... should I post my findings to another place?
Comment #14
ishanmahajan CreditAttribution: ishanmahajan commentedHi triple5,
You are absolutely right. I guess this a bug which should be resolved in the next release. Right now the TYPO3_migrate module will not work when table prefix is added to the drupal database. Thank you for pointing this out.
My guess is that this could be due to the value of "group_concat_max_len" MySQL variable. Set this variable to a high value(try 100024) and see.
I'll have to test this one out and see what is causing the problem.
I would request you to create separate issues for the bugs that you find.
Regards,
Ishan
Comment #15
chandrashekhar_srijan CreditAttribution: chandrashekhar_srijan commentedComment #16
chandrashekhar_srijan CreditAttribution: chandrashekhar_srijan commentedComment #17
ishanmahajan CreditAttribution: ishanmahajan commentedclosed due to no activity.