Jump to content

Extension talk:SSLClientAuthentication

About this board

214.18.218.89 (talkcontribs)

Any chance that this extension is going to be updated to be compatible with MW 1.27+

Reply to "Extension update"

Warning: Illegal offset type in /Users/wf/Source/PHP/mediawiki/includes/specials/SpecialSpecialpages.php on line 69

1
WolfgangFahl (talkcontribs)

Debugging the issue with:

 $pageDesc=$page->getDescription();
 if (gettype($pageDesc)!="string") {
   wfErrorLog( "page description is: ".$pageDesc.":".gettype($pageDesc)."\n", '/tmp/wfWikiDebug.log' );
 } else {
   $groups[$group][(string)$pageDesc] = array(
   $page->getPageTitle(),
   $page->isRestricted(),
   $page->isCached()
 );

shows:

page description is: SSL-Client-Authentifizierung aktivieren:object

so we need to modify getDescripton to return a string an not an object:

/source/php/mediawiki/extensions/SSLClientAuthentication>git diff SpecialClientSSL.php 
diff --git a/extensions/SSLClientAuthentication/SpecialClientSSL.php b/extension
index df5c8ff..5f12a5e 100644
--- a/extensions/SSLClientAuthentication/SpecialClientSSL.php
+++ b/extensions/SSLClientAuthentication/SpecialClientSSL.php
@@ -93,7 +93,7 @@ class SpecialClientSSL extends FormSpecialPage {
        function getDescription() {
                // Give grep a chance to find the usages: sslauth-title-enable, 
                $action = $this->enabled ? 'disable' : 'enable';
-               return $this->msg( "sslauth-title-$action" );
+               return (string)$this->msg( "sslauth-title-$action" );
        }
Reply to "Warning: Illegal offset type in /Users/wf/Source/PHP/mediawiki/includes/specials/SpecialSpecialpages.php on line 69"

Configuration for nginx

1
Seb35 (talkcontribs)

To use this extension, SSL standard variables are needed on the Web server. I is easy for Apache, but I didn’t find a equivalent for nginx, so I created this interface layer on https://github.com/Seb35/nginx-ssl-variables. It adds the variables needed for this extension (SSL_CLIENT_*) and all other variables which can be accessed thanks to nginx + Lua-OpenSSL.

Reply to "Configuration for nginx"
There are no older topics