Closed kamikazejoe closed 10 years ago
Ok. I haven't upgraded to 1.8 yet so I haven't seen this error yet. I'll setup a 1.8 environment to test it.
This has been fixes in trunk. I'm going to rework the logging before the releasing a final release.
you maybe should add these lines ad the end, so it works with tt-rss :) function api_version() { return 2; }
and there are some strange messages in the system-log: E_STRICT (2048) usr/share/php/Net/LDAP2/Schema.php:493 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context E_STRICT (2048) plugins/auth_ldap/init.php:197 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:295 Non-static method PEAR::isError() should not be called statically
I already added the API function. I must have forgot to push it. I will look into that.
The isError method is odd. What version of PEAR::Net_LDAP2 are you using?
1of16 notifications@github.com wrote:
you maybe should add these lines ad the end, so it works with tt-rss :) function api_version() { return 2; }
and there are some strange messages in the system-log: E_STRICT (2048) usr/share/php/Net/LDAP2/Schema.php:493 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context E_STRICT (2048) plugins/auth_ldap/init.php:197 Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context E_STRICT (2048) usr/share/php/Net/LDAP2/Filter.php:295 Non-static method PEAR::isError() should not be called statically
Reply to this email directly or view it on GitHub: https://github.com/hydrian/TTRSS-Auth-LDAP/issues/2#issuecomment-21407881
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
2.0.12, the last one you can get: http://pear.php.net/package/Net_LDAP2
The isError() warning messages are addressed in issue #4
The isError is a Net_LDAP2 issue not an auth_ldap issue. I've taken out all of the isError() method calls and it is still throwing "Non-static method PEAR::isError() should not be called statically". I must be happening internally. If you don't want to see those errors, I could turn off E_STRICT logging in PHP. It often doesn't affect production. It is good to know in development though.
Plugin stopped working after upgrading tt-rss from 1.7.8 to 1.8. After copying directory for plugin into the 1.8 plugins directory, tt-rss reports this error:
E_USER_WARNING (512) classes/pluginhost.php:141 Plugin auth_ldap is not compatible with current API version (need: 2, got: 1)