After running migration from D6 to D7, I am getting PHP errors belows. I used Migrate and Migrate D2D to manually map fields using the GUI. The migration ran pretty smoothly with few minor error messages related to field validation errors and missing files at source on some of the contents.

To troubleshoot, I did the following:

  • Installed Variable Check module. However this module reported: No invalid variables found.
  • During migrations, there are few nodes that had field validation error, such as invalid URL or invalid email. I went to each of those fields and manually fixed them with correct URL and email. I cleared cache and Run Cron

All the above troubleshooting steps didn't resolve the issue. I am unsure what is causing the PHP error or track down the source of the problem. Please help.

Notice: unserialize(): Error at offset 0 of 77 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 107 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 51 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 77 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).

I did a Rollback on the migration and during rollback, I saw the following errors. It seems the unserialize() error could be occuring due to missing files during the migrations. However, I am not sure what to do to fix it.

The file public://migrate//IMG_3325.png was not deleted, because it does not exist.
The file public://migrate//IMG_6542.png was not deleted, because it does not exist.
The file public://migrate//untitled.JPG was not deleted, because it does not exist.
The file public://migrate//image3.JPG was not deleted, because it does not exist.
The file public://migrate//photo.jpg was not deleted, because it does not exist.
The file public://migrate//self.PNG was not deleted, because it does not exist.
The file public://migrate//IMG_photo.JPG was not deleted, because it does not exist.
The file public://migrate//Headshot.jpg was not deleted, because it does not exist.
The file public://migrate//headshot.jpg was not deleted, because it does not exist.
The file public://migrate//headshot_0.jpg was not deleted, because it does not exist.
The file public://migrate//image1.jpg was not deleted, because it does not exist.
Notice: unserialize(): Error at offset 0 of 89 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 77 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 107 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 68 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 51 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 77 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 73 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 112 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 71 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 32 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 49 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 106 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 76 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 100 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 72 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 70 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 96 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 73 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 38 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 141 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).
Notice: unserialize(): Error at offset 0 of 88 bytes in _link_load() (line 360 of C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module).

Comments

Zythyr created an issue. See original summary.

zythyr’s picture

Issue summary: View changes
zythyr’s picture

Issue summary: View changes
zythyr’s picture

I did further troubleshooting and managed to get rid of some of the unserialize() errors... Now it seems majority the remaining unserialize() errors are occurring during the migration of Users from D6 to D7. I looked at the message log of the Users migrate task and below is an excerpt where I see the unserialize() errors occurring...

Given the user ID in the error message for which the unserialize() errors are occurring, I went to the user profile in my D6 and D7 site to see if I see any invalid URL or links in their profile. I didn't notice anything abnormal.

I found one way to get rid of the unserialize() error on D7. On the D7 site, I have to go to the user profile of one the users that was giving the unserialize() error, I would see the error displayed on the top. I then have to Edit their profile and click Save. This got the unserialize() errors to go away. How do I know? I flushed cache and loaded the page of the user to see if Drupal again showed the unserialize() error. It didn't anymore for that specific user... It seems I have to do this manually for each of the users.... It would be great if there was a way to automate it?

Another person in a related issue (https://www.drupal.org/node/1448298#comment-5882574 ) for Link module mentioned the following: This issue appears to be related to incorrect default values being set for fields during an upgrade from D6 to D7. Editing and saving the field appears to fix the issue.

I am unsure what is causing this unserialize() errors to occur for those specific user's profile. Can someone please help me troubleshoot.

SOURCE USER IDsort descending
LEVEL
MESSAGE
6	Error	Field validation error for field_user_rank: Rank: this field cannot hold more than 1 values.
8	Informational	unserialize(): Error at offset 0 of 50 bytes File C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360(file: C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360)
9	Error	Field validation error for field_user_rank: Rank: this field cannot hold more than 1 values.
9	Informational	unserialize(): Error at offset 0 of 89 bytes File C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360(file: C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360)
35	Informational	unserialize(): Error at offset 0 of 77 bytes File C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360(file: C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360)
36	Error	Field validation error for field_user_rank: Rank: this field cannot hold more than 1 values.
39	Informational	unserialize(): Error at offset 0 of 107 bytes File C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360(file: C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360)
41	Error	Field validation error for field_user_rank: Rank: this field cannot hold more than 1 values.
41	Informational	unserialize(): Error at offset 0 of 68 bytes File C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360(file: C:\xampp\htdocs\www\my_d7_site\sites\all\modules\link\link.module, line 360)
42	Error	Field validation error for field_user_rank: Rank: this field cannot hold more than 1 values.
zythyr’s picture

Status: Active » Fixed
StatusFileSize
new11.07 KB

Issue fixed.

It turns out I had mistakenly mapped one of the fields for the link in the GUI. As shown in the screen shot, I mapped the URL (from D6) to an attributed field (in D7). The correct mapping should be link attribute (from D6) to link attribute (in D7).

zythyr’s picture

StatusFileSize
new15.79 KB

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.