Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

[WP-OpenID] Call to a member function init() on a non-object #128

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 7 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install plugin
2. Test your server
<http://openidenabled.com/resources/openid-test/diagnose-server>

What is the expected output? What do you see instead?
- Expected login to proceed normally.
- Instead an error message is returned:
>> Fatal error: Call to a member function init() on a non-object in
>> [...]/wp-content/plugins/openid/Auth/OpenID/DiffieHellman.php on
>> line 60

Possible relation to issue #101?

What version of the product are you using? On what operating system?
- OpenID 3.2.2
- WordPress 2.8
- Bad Behavior 2.0.28
- PHP 5.2.6
- Apache 2.0.63 (Unix)

Please provide any additional information below.

I mention Bad Behavior because back in April I noticed this problem and
resolved it by deactivating that plugin. However, this no longer works -
I've actually deactivated EVERY plugin save OpenID itself and it makes no
difference. (BB is NOT blocking the OpenID HTTP request, despite its lack
of a header. My server logs show the remote server POSTing to the endpoint.)

I asked BB's developer, Michael Hampton, about this in April. He said:
>> From a quick glance at the source code, it looks like the OpenID plugin
needs some better error checking. I can't imagine why it would fail at
that particular place with Bad Behavior running. Probably something else
is going on, but it's not at all obvious from the error message.

Original issue reported on code.google.com by cont...@steamreview.org on 15 Jun 2009 at 12:47

@GoogleCodeExporter
Copy link
Author

This is also an issue with the Pre-2.8 branch.

Original comment by cont...@steamreview.org on 15 Jun 2009 at 1:10

@GoogleCodeExporter
Copy link
Author

Seems like this might be caused by the Big Integer support failing.

The Troubleshooting page shows that "All Systems Nominal", but further toggle 
shows
that Big Integer support has failed, and that OpenID is operating in Dumb Mode 
and
wants GMP support.

Line 60 of DiffieHellman.php calls: init(Auth_OpenID_getDefaultMod() - and that
function pulls a huge number (line 22). 

Can OpenID provider be run without GMP/BigMath?

Original comment by mikethe...@gmail.com on 17 Jun 2009 at 2:09

@GoogleCodeExporter
Copy link
Author

I don't have GMP on my server, but then I never have, even when the provider 
was working.

Original comment by cont...@steamreview.org on 17 Jun 2009 at 4:05

@GoogleCodeExporter
Copy link
Author

I'm just shooting in the dark here, but could this have anything to do with 
Suhosin? Another OpenID provider 
for Wordpress is phpMyID, and they say that phpMyID can't be run on a PHP 
installation with Suhosin, because 
it needs multiple session support or something. From phpMyID's readme:
Suhosin is a security add-on for PHP which, amongst other things, removes
   PHP's ability to open and access multiple sessions at one time. Simply put,
   phpMyID is reliant upon this feature, and will therefore not work with a
   hardened PHP.

Does WP-OpenID require this feature? I get this problem too, and at first 
thought it was probably GMP not 
being installed. But then I noticed the host I'm with has Suhosin too, and 
thought that might have something 
to do with it.

Original comment by excelsio...@gmail.com on 13 Jul 2009 at 9:27

@GoogleCodeExporter
Copy link
Author

My host doesn't have Suhosin. In fact phpMyID is precisely what I've switched 
to! :-P

Original comment by cont...@steamreview.org on 13 Jul 2009 at 9:39

@GoogleCodeExporter
Copy link
Author

Oh haha... there's that idea gone :P

Anyway to implement GMP as a library in a PHP file? I don't control the server 
I'm using, so installing GMP would 
be a problem...

Original comment by excelsio...@gmail.com on 13 Jul 2009 at 10:12

@GoogleCodeExporter
Copy link
Author

Original comment by wnorris on 7 Sep 2009 at 5:20

  • Added labels: Project-WpOpenID

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant