More languages
More actions
(Created page with "'''Warning''': Array to string conversion in '''/var/www/prolewiki/extensions/VisualEditor/includes/Hooks.php''' on line '''889''' Hooks.php stacktrace string(1548) "#0 /var/www/prolewiki/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onSkinEditSectionLinks() #1 /var/www/prolewiki/includes/HookContainer/HookRunner.php(3547): MediaWiki\HookContainer\HookContainer->run() #2 /var/www/prolewiki/includes/skins/Skin.php(1921): Media...") Tag: Visual edit: Switched |
(Added some Wikibase debug notes) Tag: Visual edit: Switched |
||
Line 1: | Line 1: | ||
=== Hooks.php warning === | |||
'''Warning''': Array to string conversion in '''/var/www/prolewiki/extensions/VisualEditor/includes/Hooks.php''' on line '''889''' | '''Warning''': Array to string conversion in '''/var/www/prolewiki/extensions/VisualEditor/includes/Hooks.php''' on line '''889''' | ||
Line 21: | Line 22: | ||
#17 /var/www/prolewiki/index.php(46): wfIndexMain() | #17 /var/www/prolewiki/index.php(46): wfIndexMain() | ||
#18 {main}" | #18 {main}" | ||
=== Wikibase PHP errors === | |||
extensions/Wikibase/lib/includes/LanguageNameLookup.php (40) | |||
<syntaxhighlight lang="php" line start="40" highlight="1"> | |||
public function getName( string $languageCode ): string { | |||
$languageCode = $this->normalize( $languageCode ); | |||
$name = $this->languageNameUtils->getLanguageName( $languageCode, $this->inLanguage ); | |||
if ( $name === '' ) { | |||
return $languageCode; | |||
} | |||
return $name; | |||
} | |||
</syntaxhighlight> | |||
extensions/Wikibase/view/src/SiteLinksView.php (301) | |||
<syntaxhighlight lang="php" line start="280" highlight="3,12,22"> | |||
private function getHtmlForSiteLink( array $siteLinkForTable, $isSpecialGroup ) { | |||
/** @var Site $site */ | |||
$site = $siteLinkForTable['site']; | |||
/** @var SiteLink $siteLink */ | |||
$siteLink = $siteLinkForTable['siteLink']; | |||
if ( $site->getDomain() === '' ) { | |||
return $this->getHtmlForUnknownSiteLink( $siteLink ); | |||
} | |||
$languageCode = $site->getLanguageCode(); | |||
$siteId = $siteLink->getSiteId(); | |||
// FIXME: this is a quickfix to allow a custom site-name for the site groups which are | |||
// special according to the specialSiteLinkGroups setting | |||
if ( $isSpecialGroup ) { | |||
$siteNameMsg = 'wikibase-sitelinks-sitename-' . $siteId; | |||
$siteName = $this->textProvider->has( $siteNameMsg ) ? $this->textProvider->get( $siteNameMsg ) : $siteId; | |||
} else { | |||
// TODO: get an actual site name rather then just the language | |||
$siteName = $this->languageNameLookup->getName( $languageCode ); | |||
} | |||
return $this->templateFactory->render( 'wikibase-sitelinkview', | |||
htmlspecialchars( $siteId ), // ID used in classes | |||
htmlspecialchars( $siteId ), // displayed site ID | |||
htmlspecialchars( $siteName ), | |||
$this->getHtmlForPage( $siteLink, $site ) | |||
); | |||
} | |||
</syntaxhighlight> |
Revision as of 03:49, 26 March 2024
Hooks.php warning
Warning: Array to string conversion in /var/www/prolewiki/extensions/VisualEditor/includes/Hooks.php on line 889
Hooks.php stacktrace
string(1548) "#0 /var/www/prolewiki/includes/HookContainer/HookContainer.php(161): MediaWiki\Extension\VisualEditor\Hooks->onSkinEditSectionLinks() #1 /var/www/prolewiki/includes/HookContainer/HookRunner.php(3547): MediaWiki\HookContainer\HookContainer->run() #2 /var/www/prolewiki/includes/skins/Skin.php(1921): MediaWiki\HookContainer\HookRunner->onSkinEditSectionLinks() #3 /var/www/prolewiki/includes/parser/ParserOutput.php(494): Skin->doEditSectionLink() #4 [internal function]: ParserOutput->{closure}() #5 /var/www/prolewiki/includes/parser/ParserOutput.php(473): preg_replace_callback() #6 /var/www/prolewiki/includes/Output/OutputPage.php(2341): ParserOutput->getText() #7 /var/www/prolewiki/includes/Output/OutputPage.php(2354): MediaWiki\Output\OutputPage->addParserOutputText() #8 /var/www/prolewiki/includes/page/Article.php(831): MediaWiki\Output\OutputPage->addParserOutput() #9 /var/www/prolewiki/includes/page/Article.php(654): Article->doOutputFromParserCache() #10 /var/www/prolewiki/includes/page/Article.php(550): Article->generateContentOutput() #11 /var/www/prolewiki/includes/actions/ViewAction.php(78): Article->view() #12 /var/www/prolewiki/includes/MediaWiki.php(583): ViewAction->show() #13 /var/www/prolewiki/includes/MediaWiki.php(363): MediaWiki->performAction() #14 /var/www/prolewiki/includes/MediaWiki.php(960): MediaWiki->performRequest() #15 /var/www/prolewiki/includes/MediaWiki.php(613): MediaWiki->main() #16 /var/www/prolewiki/index.php(50): MediaWiki->run() #17 /var/www/prolewiki/index.php(46): wfIndexMain() #18 {main}"
Wikibase PHP errors
extensions/Wikibase/lib/includes/LanguageNameLookup.php (40)
public function getName( string $languageCode ): string {
$languageCode = $this->normalize( $languageCode );
$name = $this->languageNameUtils->getLanguageName( $languageCode, $this->inLanguage );
if ( $name === '' ) {
return $languageCode;
}
return $name;
}
extensions/Wikibase/view/src/SiteLinksView.php (301)
private function getHtmlForSiteLink( array $siteLinkForTable, $isSpecialGroup ) {
/** @var Site $site */
$site = $siteLinkForTable['site'];
/** @var SiteLink $siteLink */
$siteLink = $siteLinkForTable['siteLink'];
if ( $site->getDomain() === '' ) {
return $this->getHtmlForUnknownSiteLink( $siteLink );
}
$languageCode = $site->getLanguageCode();
$siteId = $siteLink->getSiteId();
// FIXME: this is a quickfix to allow a custom site-name for the site groups which are
// special according to the specialSiteLinkGroups setting
if ( $isSpecialGroup ) {
$siteNameMsg = 'wikibase-sitelinks-sitename-' . $siteId;
$siteName = $this->textProvider->has( $siteNameMsg ) ? $this->textProvider->get( $siteNameMsg ) : $siteId;
} else {
// TODO: get an actual site name rather then just the language
$siteName = $this->languageNameLookup->getName( $languageCode );
}
return $this->templateFactory->render( 'wikibase-sitelinkview',
htmlspecialchars( $siteId ), // ID used in classes
htmlspecialchars( $siteId ), // displayed site ID
htmlspecialchars( $siteName ),
$this->getHtmlForPage( $siteLink, $site )
);
}