WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#3063 closed defect (bug) (duplicate)

Blogger Import failing with Blogger Beta

Reported by: benn333 Owned by:
Milestone: Priority: normal
Severity: major Version:
Component: Administration Keywords:
Focuses: Cc:

Description

Goolge has moved to Google logins with the new Blogger beta. Unfortunately, if someone has upgraded their Blogger account and attempts to import their blog into WordPress they are unable to log in. (It has also been reported here.) The message is "Login failed. Please re-enter your username and password." I have tested this on both my fresh install on my own server and my current free WordPress account with the same result. Can anyone help update this script? I have a bit of PHP experience, and am willing to contribute what I can.

Change History (7)

#1 @darkfate
14 years ago

Can you use the RSS importer to import the Atom feed? I'm pretty sure not.

#2 @benn333
14 years ago

Yeah, the RSS importer won't work for the Atom feed, though adding an Atom import isn't a bad idea.

#3 @darkfate
14 years ago

Yea, but I think that Atom is a lot less popular than RSS. Also, I think that the atom feed is a little customized, so I think just reworking the blogger importer should be the course we go.

#4 @skeltoac
14 years ago

That importer took at least a week to build. The way it works is quite insane and I knew that it would be killed as soon as they updated Blogger. Sorry.

An Atom importer won't include comments (right?) so we'd be back to square one if we went that route. Seems there'll be an API we can use to query all the data right out of Google. Not sure when or how... anybody got a finger on that pulse?

#5 @benn333
14 years ago

I dug up and read through some of Google's documentation on the new Google accounts:
http://code.google.com/apis/gdata/blogger.html#Migrated
http://code.google.com/apis/accounts/AuthForWebApps.html

It looks like blogger.php could be updated with a check if the blog to import is running the old or beta version of Blogger. If the beta is discovered, blogger.php could request a session token. The user will have to be redirected to a Google page to authenticate that it is their account. Once that's done, they can be redirected back to their blog with a Token for further use.

This is as far as I've looked so far. It's possible that the current blogger.php code for pulling down the posts/comments will still work once authentication is passed. I suppose we can cross that bridge once we come to it. (I believe you're right that Atom doesn't include comments.)

#6 @skeltoac
14 years ago

That's not exactly what I had in mind. The current method of WordPress logging in as the user, changing the template, publishing, then scraping HTML needs to be deprecated. There is supposed to be an API to connect with the database behind the blog.

#7 @foolswisdom
13 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Closing as dup of #3719.

Note: See TracTickets for help on using tickets.