Summary

After upgrading, some of the content items have no values except for id.
I found that the problem occurs when the new item has a duplicate alias.

The code responsible for this is migrate_content at line ~172:

if (in_array($row['alias'], $aliases, true)) {
$row['alias'] .= $unique_alias_suffix;
$unique_alias_suffix++;
}
$aliases[] = $row['alias'];

the $aliases[]... should move before the if(), otherwise its useless.

Fix:

$aliases[] = $row['alias'];
if (in_array($row['alias'], $aliases, true)) {
$row['alias'] .= $unique_alias_suffix;
$unique_alias_suffix++;
}
Opened On:
17 Oct 2012, 10:09 by Lior E
Status:
Open

Filed Under

  • 1.5 to 1.6
  • com_jupgrade