pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2023-02-01 01:57 am
Entry tags:

Question thread #118

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
solarbird: (Default)

Re: well howdy

[personal profile] solarbird 2023-02-10 05:36 am (UTC)(link)
I haven't - I got busy finishing another project that went well past anticipated work. I'll give it a go tomorrow (Friday).
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: well howdy

[staff profile] denise 2023-02-10 07:20 am (UTC)(link)
I don't necessarily expect it to work but it will help rule out issues with the script!
solarbird: (Default)

Re: well howdy

[personal profile] solarbird 2023-02-11 05:35 am (UTC)(link)
Okay. I haven't been eager to dive in because I know literally nothing about perl. But I found the needed dependencies (via Debian, which was easier than trying to do it in MacOS lol) and it ran to completion and after running again specifying XML (vs. default which I guess means raw which gave me some chonky binary file) I got a 60MB file which on casual inspection seems like it's probably complete.

Which tells me mostly I think that the database on your end is fine as far as your own tools are concerned (which isn't really surprising, I mean, of course it is).

Sadly, from what I've been able to find, there are not tools to import Dreamwidth XML exports to Wordpress - I'm not the first person to try this, I'm just the first person who hasn't bailed and copied everything over by hand. (At least, that's what I was finding in searches before I started trying to adapt the Livejournal importer to Dreamwidth.) As far as I've been able to find, few people have tried to make this work and so far none have succeeded.

I wonder if there's something different in Wordpress's PHP implementation of the XMLRPC libraries? But now I'm just in "whelp I dunno" territory and am guessing.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

Re: well howdy

[staff profile] denise 2023-02-12 12:33 am (UTC)(link)
That ... is really weird and interesting and I was not expecting that result! Okay, yeah, at this point it could be because the PHP XML/RPC libraries may have bitrotted a bit because it's not a very popular format anymore or Wordpress is using a bad version or something. We're way out past the far, far edge of my knowledge too, but my suggestion would be a) check what version of the library Wordpress is using and see if there's a newer one (and that the newer one doesn't break Wordpress, heh), or b) step the module backwards a few versions and keep trying after each regression to see if an older version of it works. Basically, playing around with the versions and seeing if any of them fix the problem. But I don't know PHP or Wordpress, so this is just me guessing too. (We've had a few instances where we have to pin to a particular version of a Perl module for a while because a newer one breaks something, etc.)