Brooklands
Member
Posted 6 years ago #
WordPress 2.0.1, Apache 2.0.46, PHP 4.3.9
I'm trying to import a blogger blog using the tool provided with WordPress. I get as far as the "Publishing with new template and options stage" and then the import just seems to go into a loop.
I've done a bit of debugging (but i'm not a php expert by any means) and as far as I can see the script is stuck in the publish_blogger function. It seems as though it doesn't pick up the redirect, and so never gets to check the pages which show the progress of the publish operation. It just keeps executing the else clause of the if (!strstr ...) statement. Unfortunately this is about the limit of my php skills. I'd appreciate any suggestions as to what to do next.
Thanks
Brooklands
Brooklands
Member
Posted 6 years ago #
I've managed to solve this problem (actually there were two). The first problem was that as we're behind a proxy server I had to modify the script to get CURL to route through it, and I missed the port number off when setting it in the post_blogger function.
The second problem was that our proxy was rejecting the request to the blogger site when checking the status of the publish operation. It complained of an 'illegal' character in the request, which on examination turned out the be a line-feed between the URL and the HTTP header. I added a line of code to strip any control characters off the URL before using it and everything now works OK.
Brooklands