podlove-publisher
podlove-publisher copied to clipboard
Some episodes not imported during Migration: "All assets for this episode are invalid!"
Hi, I plan to migrate podlove from one wordpress installation to another existing installation on another domain. I used the Wordpress exporter to export wordpress media files & episodes, and the podlove exporter to export episode metadata and tracking. The path to the adio-media files do not change.
Expected behavior
When importing those file on the new I expect all episodes existing with all metadata in place.
Actual behavior
Some episode metadata are not imported. All episodes exists, but o some the podlove-fields are empty, no player is showing up.
In the podlove-logs I see multiple lines with "All assets for this episode are invalid!" for episodes that are missing. But no further information. About 20% of my 240 episodes do not show up correctly, the remaining 80% are fine.
Any idea what the problem might be?
P.S. Bought the paid support last year, but it seems it does not exist anymore?
System information
PHP Version 7.4.3 WordPress Version 5.5.1 Publisher Version 3.0.2
Does the import seem to run through normally, or fail before it finishes?
Are the episodes with missing data the first X, last X, or random?
"All assets for this episode are invalid!"
That means Podlove Publisher can't detect the file size for any of the assets in the episode. However I think this is checked during "asset validation", which is after migration, not during the actual migration process at all.
P.S. Bought the paid support last year, but it seems it does not exist anymore?
Yep I checked, nearly two years ago. I closed the system for renewals / new support packages because it's unfortunately too much work to just keep the support / billing system running.
Thanks for your help!
Does the import seem to run through normally, or fail before it finishes?
No errors, it seems all fine. BTW: Great importer using small jobs. :-) I always ran into execution limits with the default wordpress importer. But maybe this is also a problem here? Max Execution time is 120s but wordpress importer quits even earlier.
Are the episodes with missing data the first X, last X, or random?
They seem to be random. However, the error seems to appear in clusters. Sometimes 2, 3, 5 or even 12 in a row. An in between 3, 8, 20 working episodes... Attached is a screenshot of the podlove dashboard with some examples.
"All assets for this episode are invalid!"
That means Podlove Publisher can't detect the file size for any of the assets in the episode. However I think this is checked during "asset validation", which is after migration, not during the actual migration process at all.
Since all fields are empty including the episode slug, there is nothing to validate...
Okay, I think I found the error.
In episodes that do not work, the post-id of the new installation does not match with the post-id in the exported podlove file. So I suspect that wordpress generates a new post-id when importing (maybe if the imported one is already existing?). And after that the podlove import fails (unfortunately without any errors, or I have not seen them).
Hm, I thought there was some kind of matching code that did not require the ids to be exactly the same -- but it's likely best used on a fresh WordPress. I'll be honest, I'm not sure when I'll find the time to look into this. I had a quick look just now but I feel like that would take a few evenings to track down.
I understand perfectly well, thanks for your efforts so far! Since my target installation is not a fresh Wordpress: Do you have any ideas for a workaround? Search and replace in the podlove XML exports to use the new IDs? I am a bit afraid that this might result in a big mess...