Symptoms
Migration from 12.x to Plesk Obsidian fails:
PLESK_ERROR: Line 1134 error: Element ‘wordpress-instance’: This element is not expected.
Warning: Migration could finish successfully, however FTP users, Web users and database users are not migrated.
Cause
Product issue:
-
#PMT-4712 “Migration of WordPress applications from Plesk 12.5 to Plesk Obsidian no longer fails with the “Element ‘wordpress-instance’: This element is not expected.” error.”
Fixed in:- Plesk Migrator 2.20.0 14 October 2020
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following
workaround
-
Login to the target server via SSH;
-
Backup the configuration file:
# cp /usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/plesk/extras/pmm_12_5/PleskX.pm{,.backup}
-
Using text editor comment out (add # sign) line 5221:
# $self->{packer}->setSappWordPressInstance($sapp_id, $sapp, $wpInstance, @wpInstanceProperties);
and in lines 2949 and 5102.
# $self->{packer}->setNonApsWordpressInstance($domainId, $instance, @wpInstanceProperties, 'false');
-
Go to Tools & Settings > Migration & Transfer Manager. Finish and then start a new migration session.