Hi
We tried to move the content from K2 to Joomla over 5100 items
the first batch works fine and it auto stop after some time.
tried multiple time and it stop. Increase the memory limit and max execution to highest level does not work
No error.
Further opon checking similar issue on forum and tried re import article again it also not work.
Noticed k2 items alias in Joomla is also not correct
Kindly help for a fix.
Thank you
K2 to Joomla migration failed for large items
saguaros
Hi
The problem is coming with the article alias.
as we have same article alias in k2 for different cateogries.
In Joomla it also allowed when u save article in different categoies but in migration the article alias has been changed and not following the original k2 alias.
example alias : test for 4 items
it making alias as test1
test2
test3 and so on even when the article parent category is not same.
thank you
Hi
Any updates on this? you can try it on normal k2 install as well if needed.
Migration will give same issue.
Thank you
- Edited
Hi, crossi10
I am sorry for late. It takes me time to complete some custom code and update the performance of this plugin for your case.
So I have some notes:
- The migration action will show joomla warning:
Another article from this category has the same alias (remember it may be a trashed item)
when you have k2 items with the same alias and assigned category. - The alias can be the same follows a joomla condiotion: same alias in different categories.
As I checked in your database, in a table: #__k2_items
with ~ 151 records, it showed me some k2 items had the same alias in the same category:
So I wrote some code to make it work through as your requirements. Currently, the k2 items migration flow likes:
- if k2 items has same alias but different assigned category, the alias won't be changed
- otherwise, the alias will be changed to avoid joomla catch error
and will be migrated into joomla content.
I have attached the plugin.zip below, it may take you to run 2-3 times in order to migrate all the k2 items without the errors now. The plugin is still under improvement so you kindly be patience.
Regards,
Vanhs
vangogh
Hi
Some more bugs with above package
Custom fields value is not inserted from K2 to Joomla articles.
Custom fields added but value always empty.
There is 404 error show after some articles imported. if i start again its adding the duplicate items.
Can u fix all and send the package asap? @manhta @saguaros