Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Import wordpress xml file to Grav

Started by Shane 5 years ago · 6 replies · 1677 views
5 years ago

I had read there were some ways to import Wordpress XML files, however, I'm not able to locate any. Any help on this would be greatly appreciated. I already exported the Wordpress data in a xml file.

5 years ago

@shane, There have been a few plugins assisting the migration of WP to Grav, but they are kind of old and probably no longer compatible with the current version or WP.

Also, I'm not sure it they offer what you are looking for..

This is what I've found:

5 years ago

Thanks for the info.
The 2015 WP2Grav I tried, and it broke my Wordpress site. I had to manually remove the plugin to be able to get back into my site. So, that one is out.
The 2018 Article, I tried to follow, and like. However, I'm not able to figure out the whole Pelican thing. That one looked the simplest though.
The 2017 option, seems to pull active Wordpress posts into Grav. It seems from the docs, if the Wordpress site is gone, the posts would disappear.
I didn't even touch the 2012... too old.
I do appreciate the links all concisely located in one conversation. Most of these I was able to dig up on a web search.

5 years ago

@shane, Maybe someone else can pull up a rabbit out of the hat...

5 years ago

@shane ,
I saw you opened up this new thread as a followup to this one - so I answer here 😄
as @pamtbaau mentioned, there are already some posts on the topic here.
I can also recommend taking a look at my own WP -> Grav migration story here.

5 years ago

I started working with that plugin, all was going well.
Then I got this error while trying to import my xml file:

Fatal error: Uncaught Error: Call to undefined function Grav\Plugin\Console\str_get_html() in /home/username/foldername/user/plugins/wordpress-import/cli/ImportCommand.php:447
Stack trace:

0 /home/username/foldername/system/src/Grav/Console/ConsoleCommand.php(33): Grav\Plugin\Console\ImportCommand->serve()

1 /home/username/foldername/vendor/symfony/console/Command/Command.php(255): Grav\Console\ConsoleCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

2 /home/username/foldername/vendor/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

3 /home/username/foldername/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Grav\Plugin\Console\ImportCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

4 /home/username in /home/username/foldername/user/plugins/wordpress-import/cli/ImportCommand.php on line 447

I'm not really sure what all that means. However, I seem to be stopped there.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 41 1 week ago
Plugins · by Xavier, 4 weeks ago
2 50 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1178 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 45 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 68 2 months ago