• Resolved BilalButt

    (@bilalbutt)


    Hi,

    I’m creating a php script which imports data from Joomla database to WordPress database, everything is being imported successfully (even menus) but when I add a new menu item the whole menu structure is destroyed and the parent & child relation/structure is lost.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I recommend you try re-doing doing the migration with CMS2CMS. https://www.ads-software.com/plugins/cms2cms-joomla-to-wp-migration/

    I’ve used them for both Joomla to WordPress and Drupal to WordPress migrations and haven’t had any issues like what you’re describing.

    Regardless of whether you continue to use your own code, or the plugin, you will encounter some issues due to the differences in both platforms. So expect that you may have to reconstruct some contents, including your main menu or page contents. I always keep a backup of the old site whenever I’m doing a migration, especially between different CMSs in case I need to reference the original or repeat the process to recover from an error.

    Thread Starter BilalButt

    (@bilalbutt)

    @radiantfreedom hi, I know that website too but there are few custom things required that need to be done on the Joomla data and then transferred to the WordPress that is why I was developing the script. The data from Joomla (Category & Articles) and K2 (Category & items) are imported without any error. Only menu is giving issues when a new menu item is saved.

    Can you try creating a new main menu and re-create your original menu manually? Shouldn’t take as much work as troubleshooting this problem and re-migrating would if that’s possible. If not, try commenting out the portion of your code that handles the menus and re-import your joomla site, then create your menu by hand, using the original site as a guide.

    Thread Starter BilalButt

    (@bilalbutt)

    @radiantfreedom although your suggestion is correct but the website has around 770 menu items and linking them will take a lot of time. That is why script is being developed.

    WOW, that’s a huge menu. If you don’t get any help on that here, I recommend you try the Stack Exchange, probably either the Stack WordPress or Stack Overflow communities could give you more detailed help, as there are likely to be more php programmers there who could help you.

    Thread Starter BilalButt

    (@bilalbutt)

    @radiantfreedom thank you for your help but I was able to resolve the issue myself. Following was the issue and its fix.

    After looking into it step by step I found the cause of the error. The error was being caused in the table “wp_postmeta” field “_menu_item_menu_item_parent” those item which were parent item were using value of “14” instead of “0”.

    “_menu_item_menu_item_parent” was using “14” due to the script because “14” is the id of the WordPress post that has been marked as “Default” in “Joomla”.

    Setting “0” value for “_menu_item_menu_item_parent” fixed the issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating Joomla to WordPress script’ is closed to new replies.