One-Click Wordpress can't export to Ghost

September 17, 2016 188 views
WordPress Ghost Ubuntu

since blogspot have some issue about API limit,
Blogger to Ghost is not able to export over 150 posts,
So I decide to do a Blogger -> wordpress -> ghost,
all things were going smooth, (export to Wordpress/comments/images... etc)
but when I run 'export to Ghost' at wp-admin, it will export a** 0 byte** js for me to download it.
since I'm not a WordPress/Apache guy, I don't know what is happening,

I've done all the googling I can but I can't find any related threads talk about it.

so if someone know where is the problem it will be awesome. cause wordpress's droplet is still ticking ;P

4 Answers
z3roblock September 18, 2016
Accepted Answer

Found solution,
Seems like "Export to Ghost" plugin won't work from time to time,
It's because XML: not well-formed * I think *, if you trying to locate the problem,
as @xMudrii said, you will need to download wp2ghost.

once you setting wp2ghost up,
you can see from error messages it shows and locate which line is causes the problem.

in my case is an URL have & in it. (e.g. youtube link)
simply replace it with & and you are good to go.

I would check permissions of Wordpress.
Login to your droplet via SSH, go to Wordpress directory. Usually it is located at /var/www/html.
Execute `

  • ls -l

We are using this command to list all files with its permissions, owner and group.
Example output would be:

drwxr-xr-x  2 owner group  4096 Dec 11  2014 wp-admin
-rw-r--r--  1 owner group 17575 Dec 11  2014 wp-config.php

First check owner and group. If owner and/or group is root you could have problem. This can be solved by changing owner to regular user e.g. sammy and group to www-data.

This can be done by following command:

  • sudo chown -R sammy:www-data /var/www/html

This will allow Apache applications (e.g. Wordpress and your script/plugin) to read data of Wordpress folders.

After that try executing your script again. If it's not problem, we will try to find another root of problem, but this comes first to my mind.

  • @xMudrii Thanks for helping!

    total 192
    -rw-r--r--  1 www-data www-data   418 Sep 17 05:18 index.php
    -rw-r--r--  1 www-data www-data    20 Jul 11 02:16 info.php
    -rw-r--r--  1 www-data www-data 19935 Sep 17 05:18 license.txt
    -rw-r--r--  1 www-data www-data  7284 Sep 17 05:20 readme.html
    -rw-r--r--  1 www-data www-data  5456 Sep 17 05:20 wp-activate.php
    drwxr-xr-x  9 www-data www-data  4096 Sep 17 05:18 wp-admin
    -rw-r--r--  1 www-data www-data   364 Sep 17 05:18 wp-blog-header.php
    -rw-r--r--  1 www-data www-data  1477 Sep 17 05:20 wp-comments-post.php
    -rw-r--r--  1 www-data www-data  3133 Sep 17 05:18 wp-config.php
    -rw-r--r--  1 www-data www-data  4046 Sep 17 05:20 wp-config-sample.php
    drwxr-xr-x  7 www-data www-data  4096 Sep 17 09:52 wp-content
    -rw-r--r--  1 www-data www-data  3286 Sep 17 05:18 wp-cron.php
    drwxr-xr-x 17 www-data www-data 12288 Sep 17 05:20 wp-includes
    -rw-r--r--  1 www-data www-data  2382 Sep 17 05:20 wp-links-opml.php
    -rw-r--r--  1 www-data www-data  3353 Sep 17 05:20 wp-load.php
    -rw-r--r--  1 www-data www-data 34057 Sep 17 05:20 wp-login.php
    -rw-r--r--  1 www-data www-data  7786 Sep 17 05:20 wp-mail.php
    -rw-r--r--  1 www-data www-data 13920 Sep 17 05:20 wp-settings.php
    -rw-r--r--  1 www-data www-data 29890 Sep 17 05:20 wp-signup.php
    -rw-r--r--  1 www-data www-data  4035 Sep 17 05:18 wp-trackback.php
    -rw-r--r--  1 www-data www-data  3064 Sep 17 05:20 xmlrpc.php

    seems like owner is correct...
    That was first thing cross my head too, but since it's one-click droplet,
    it's unlikely will happened.

    • I was googling little to check, but I can't really find anything.
      I found only that this plugin know to fails, it's not working everytime.

      Also I read somewhere recommendations to use this: wp2ghost.

      Look at it's description, maybe it can helps you too

Have another answer? Share your knowledge.