Topic on Extension talk:SSLClientAuthentication

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"