Migrate to HTML error on a local development site with 368 pages to migrate

Error message in browser popup:

screenshot_ 2025-02-26 um 14.46.35

It seems that a helper function for generate query strings in my functions.php cause this issue:

screenshot_ 2025-02-26 um 14.58.32

Perhaps you could output the migration process with a status list of the processed posts? In this case, the error was relatively easy to find because the error text already clearly indicated the location. But there was nothing to be found in the debug.log.

It would be sufficient to also write this list in a log file so that you have an overview of which pages have already been migrated and which are causing problems.

Hello @Regnalf,

Thank you for your suggestions. We’ll forward this to our channel.

Regarding the error in the screenshot, the $query var in the custom shortcode is null or is undefined, causing the error. Did you put this shortcode in your posts or pages?

Best regards.

Yes, the code was a leftover from a test page where I needed the string for a WpQuery provider. I have removed it for the time being.

But it’s primarily about the entire migration process, which can get stuck for whatever reason. If I can’t see which page is causing problems, the search becomes difficult, as only one counter is running during the process.

2 Likes

We’ll add info on which page error-ed out. Thanks for the suggestion.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.