Wordpress OpenID login failed: Invalid openid.mode ‘‘. Solved for both Wordpress and Drupal

ioni2.com

Development

OpenID logo

OpenID logo

Upon upgrade for Wordpress 2.8 and sometimes even without it I have encountered an interesting problem: when trying to login using OpenID (or add OpenID via admin panel) I was getting this peculiar message: OpenID login failed: Invalid openid.mode ‘<No mode set>’.

As you know, my Wordpress theme ioni2 is highly customized so I though at some stage that this would be a problem within the code, but the solution was just a few clicks away, really.

What happened?

I would input any OpenID (http or https), be redirected to the OpenID provider site (say, blogspot), confirm my identity and then be redirected back. This is where the blog would give me the error so it was clearly the plugins fault.

Interestingly enough, any similar OpenID plugin would produce the same results. Yadis, Another OpenID plugin – all of them. So I figured out – the problem was not with the ioni2 theme but rather with the underlying server configuration!

Moreover I have seen this problem only and exclusively with Hostgator. For instance Bluehost, where my other projects are hosted, does not seem to have it. Line by line comparison showed that their configurations although difference, are more or less alike. So.. support call!

Solution:

It appears that OpenID was triggering a mod_security rule set by the hosting company:

[*] Rule ID: 340163
[*] URLS Affected: /openid/consumer
[*] Description: Remote File Injection attempt in ARGS (MM)

So the solution was to whitelist the domain within this serverrule. Just request your hosting support something like:

I am running Wordpress and OpenID plugins. OpenID is a well-known standard (you can check it at openid.net) and very secure open-source project, same as Wordpress. However it seems to trigger mod_security as it considers is as a intrusion.

Please whitelist my domain

This should solve the problem of No+mode+Set in OpenID.

Moreover, I believe that the same goes for any server configuration with Drupal, Joomla and any other CMS which relies on this absolutely wonderful DiSO plugin

End of article
Tags: {  ·  ·  }

Total comments: 7

  1. willnorris saysThanks for this. I’ll see about adding this to the FAQ for the plugin. I know a lot of people have random “no mode set” errors, and they are often really difficult to track down.

    Reply
    • ioni2.com saysWell, the specs do not aloow for exact ‘random’ No mode Set errors.
      But this took a while on my side, seriously!

      Including purchase of additional hosting – just to make a point.
      Anyway,this is excellent – and works just fine!

      Reply
  2. Name? saysCan you share how did you manage to make WP-OpenID work with 2.8.x?

    Reply
    • ioni2.com saysNot a single problem
      The solution is: Whitelist the domain within this serverrule. Just request your hosting support to do that for you

      Reply
  3. technix saysНу вот здесь форма доступна…

    Reply

Comment now!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

You can use your OpenID, LiveJournal, Li, Blogger address
Manage you OpenID

To use Name/ URL to leave a comment click here

To use OpenID click here

Check your name and email (and url!) or consider using OpenID. Why bother with OpenID?

Most Popular:

recently said:

'hrefed:

blogroll

social